X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fadmin%2Fbranches.tt;h=7a5f22a69188e26e734458db3047d7a9c64e21cc;hb=afe3fa1d071aae2078cd3c52ad1b7e242ddcf3ef;hp=15e806423a665c0fd62318baaab0399298786fb0;hpb=6e60986819e9c37e3d41584b89fbddbf68e7484d;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 15e806423a..7a5f22a691 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -1,371 +1,397 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › Libraries and groups -[% IF ( editcategory ) %] - ›[% IF ( categorycode ) %]Edit group [% categorycode %][% ELSE %]New group[% END %] -[% ELSIF ( delete_category ) %] - › Confirm deletion of group [% categorycode %] -[% ELSIF ( add ) %] - ›[% IF ( heading_branches_add_branch_p ) %]New library[% ELSE %]Modify library [% branchcode %][% END %] -[% ELSIF ( delete_confirm ) %] - › Confirm deletion of library '[% branchcode %]' +[% IF op == 'editcategory' %] + ›[% IF category.categorycode %]Edit group [% category.categorycode%][% ELSE %]New group[% END %] +[% ELSIF op == 'delete_confirm_category' %] + › Confirm deletion of group [% category.categorycode %] +[% ELSIF op == 'add_form' %] + ›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] +[% ELSIF op == 'delete_confirm' %] + › Confirm deletion of library '[% library.branchcode %]' [% END %] [% INCLUDE 'doc-head-close.inc' %] - - - - + [% INCLUDE 'header.inc' %] -[% INCLUDE 'cat-search.inc' %] +[% INCLUDE 'prefs-admin-search.inc' %]
- -
-
-
- [% IF ( else ) %] -
- -
+[% IF op == 'list' %] + [% END %] -[% IF ( add ) %] - [% IF ( ERROR1 ) %]
Library with that code already exists — Please enter a unique code
[% END %] -

[% IF ( heading_branches_add_branch_p ) %]New library[% ELSE %]Modify library[% END %]

-
-
- - [% IF ( heading_branches_add_branch_p ) %] - - [% ELSE %] - - [% END %] -
  1. - [% IF ( heading_branches_add_branch_p ) %] - - - [% ELSE %] - - - [% branchcode %] +[% IF op == 'add_form' %] +

    [% IF library %]Modify library[% ELSE %]New library[% END %]

    + +
    + + [% IF library %] + [% END %] -
  2. -
  3. - -   -
  4. -
-
- [% IF ( categoryloop ) %]
Group(s): -
    - [% FOREACH categoryloo IN categoryloop %] -
  1. - [% IF ( categoryloo.checked ) %] - - [% ELSE %] - - [% END %] - [% categoryloo.codedescription %] -
  2. +
      +
    1. + [% IF library %] + Library code: + + [% library.branchcode %] + [% ELSE %] + + + Required + [% END %] +
    2. +
    3. + + + Required +
    4. +
    +
+ [% IF categories %] +
Group(s): +
    + [% FOREACH category IN categories %] +
  1. + + [% IF category and selected_categorycodes.grep(category.categorycode).size %] + + [% ELSE %] + + [% END %] + [% category.codedescription %] +
  2. + [% END %] +
+
[% END %] - -[% END %] -
-
    -
  1. -
  2. -
  3. -
  4. -
  5. -
  6. -
  7. -
  8. -
  9. -
  10. -
  11. -
  12. -
  13. Can be entered as a single IP, or a subnet such as 192.168.1.*
  14. - -
  15. -
+
+
    +
  1. +
  2. +
  3. +
  4. +
  5. +
  6. +
  7. +
  8. +
  9. +
  10. +

  11. Default: ReplyToDefault system preference
  12. +

  13. Default: ReturnpathDefault system preference
  14. +
  15. +
  16. +
  17. Can be entered as a single IP, or a subnet such as 192.168.1.*
  18. +
  19. +
+
+
+ + Cancel
-
Cancel
[% END %] -[% IF ( delete_confirm ) %] -
-
Confirm deletion of [% branchname %] ([% branchcode %])? - - -
Cancel
-
+[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%] +
+
+

Are you sure you want to delete [% library.branchname %] ([% library.branchcode %])?

+ + + + +
+
+ +
+
[% END %] -[% IF ( else ) %] +[% IF op == 'list' %]

Libraries

- [% IF ( message ) %]
- [% message %]
[% END %] - [% IF ( MESSAGE1 ) %]
Library not saved — code and/or name missing
[% END %] - [% IF ( MESSAGE2 ) %]
Library saved
[% END %] - [% IF ( MESSAGE3 ) %]
Library deleted
[% END %] - [% IF ( MESSAGE4 ) %]
Library category added
[% END %] - [% IF ( MESSAGE5 ) %]
Library category modified
[% END %] - [% IF ( MESSAGE6 ) %]
Library category deleted
[% END %] - [% IF ( MESSAGE7 ) %]
Library cannot be deleted because there are patrons and items using that library
[% END %] - [% IF ( MESSAGE8 ) %]
Category cannot be deleted because there are libraries using that category
[% END %] - [% IF ( MESSAGE9 ) %]
Category cannot be added, categorycode already exists
[% END %] - [% IF ( MESSAGE10 ) %]
Library cannot be deleted because there are items held by that library
[% END %] - [% IF ( MESSAGE11 ) %]
Library cannot be deleted because there are patrons registered at that library
[% END %] -[% IF ( branches ) %] -
-[% INCLUDE 'table-pager.inc' perpage='10' %] -
- - - - - - - - - - - [% FOREACH branche IN branches %] - [% IF ( loop.odd ) %] - - [% ELSE %] - - [% END %] - - - - - - - - - - [% END %] -
NameCodeAddressPropertiesIP 
[% branche.branch_name |html %][% branche.branch_code |html %] - [% IF ( branche.address_empty_p ) %] - (nothing entered) - [% ELSE %] - [% IF ( branche.branchaddress1 ) %] - [% branche.branchaddress1 |html %][% END %] - [% IF ( branche.branchaddress2 ) %] -
[% branche.branchaddress2 |html %][% END %] - [% IF ( branche.branchaddress3 ) %] -
[% branche.branchaddress3 |html %][% END %] - [% IF ( branche.branchcity ) %] -
[% branche.branchcity |html %][% END %][% IF ( branche.branchstate ) %], - [% branche.branchstate |html %][% END %] - [% IF ( branche.branchzip ) %] - [% branche.branchzip |html %][% END %] - [% IF ( branche.branchcountry ) %] -
[% branche.branchcountry |html %][% END %] - [% IF ( branche.branchphone ) %] -
Ph: [% branche.branchphone |html %][% END %] - [% IF ( branche.branchfax ) %] -
Fax: [% branche.branchfax |html %][% END %] - [% IF ( branche.branchemail ) %] -
[% branche.branchemail |html %][% END %] - [% IF ( branche.branchurl ) %] -
[% branche.branchurl |html %][% END %] - [% IF ( branche.opac_info ) %] -
OPAC Info:
[% branche.opac_info %]
[% END %] - [% IF ( branche.branchnotes ) %] -
Notes: [% branche.branchnotes |html %][% END %] - [% END %] -
- [% UNLESS ( branche.no_categories_p ) %] - [% FOREACH category_lis IN branche.category_list %] - [% category_lis.categoryname %]
- [% END %] - [% END %] -
- [% branche.branchip %] - - Edit - - Delete -
- [% ELSE %] -
There are no libraries defined. Start defining libraries.
- [% END %] - - [% IF ( branchcategories ) %] - [% FOREACH branchcategorie IN branchcategories %] -

Group(s): [% IF ( branchcategorie.properties ) %]Properties[% ELSE %][% IF ( branchcategorie.searchdomain ) %]Search domain[% END %][% END %]

- [% IF ( branchcategorie.catloop ) %] - - - - - - - - - - - - [% FOREACH catloo IN branchcategorie.catloop %] - - - - - - - - [% END %] - -
NameCodeDescription  
[% catloo.categoryname %][% catloo.categorycode %][% catloo.codedescription %] - Edit - - Delete -
+ [% IF libraries.count %] + + + + + + + + + + + + + [% FOREACH library IN libraries %] + + + + + + + + + [% END %] + +
NameCodeAddressPropertiesIPActions
[% library.branchname |html %][% library.branchcode |html %] + [% IF library.branchaddress1 %] + [% library.branchaddress1 |html %][% END %] + [% IF library.branchaddress2 %] +
[% library.branchaddress2 |html %][% END %] + [% IF library.branchaddress3 %] +
[% library.branchaddress3 |html %][% END %] + [% IF library.branchcity %] +
[% library.branchcity |html %][% END %][% IF ( library.branchstate ) %], + [% library.branchstate |html %][% END %] + [% IF library.branchzip %] + [% library.branchzip |html %][% END %] + [% IF library.branchcountry %] +
[% library.branchcountry |html %][% END %] + [% IF library.branchphone %] +
Ph: [% library.branchphone |html %][% END %] + [% IF library.branchfax %] +
Fax: [% library.branchfax |html %][% END %] + [% IF library.branchemail %] +
[% library.branchemail |html %][% END %] + [% IF library.branchurl %] +
[% library.branchurl |html %][% END %] + [% IF library.opac_info %] +
OPAC Info:
[% library.opac_info %]
[% END %] + [% IF library.branchnotes %] +
Notes: [% library.branchnotes |html %][% END %] +
+ [% FOREACH category IN library.get_categories %] + [% category.categoryname %]
+ [% END %] +
[% library.branchip %] + Edit + Delete +
[% ELSE %] - No [% IF ( branchcategorie.properties ) %]properties[% ELSIF ( branchcategorie.searchdomain ) %]search domain[% END %] defined. Add a new group. +
There are no libraries defined. Start defining libraries.
[% END %] - [% END %] - [% ELSE %] -

No groups defined.

- [% END %] -[% END %] -[% IF ( editcategory ) %] -

[% IF ( categorycode ) %]Edit group [% categorycode %][% ELSE %]Add group[% END %]

-
- - [% IF ( categorycode ) %] - - [% ELSE %] - - [% END %] -
- -
  1. - [% IF ( categorycode ) %] - Category code: - - [% categorycode %] - [% ELSE %] - - + [% IF group_types %] + [% FOREACH group_type IN group_types %] +

    [% IF group_type.categorytype == 'properties' %]Properties[% ELSIF group_type.categorytype == 'searchdomain' %]Search domain[% END %]

    + [% IF group_type.categories.size %] + + + + + + + + + + + [% FOREACH category IN group_type.categories %] + + + + + + + [% END %] + +
    NameCodeDescriptionActions
    [% category.categoryname %][% category.categorycode %][% category.codedescription %] + Edit + Delete +
    + [% ELSE %] + [% IF group_type.categorytype == 'properties' %] + No properties defined. + [% ELSIF group_type.categorytype == 'searchdomain' %] + No search domain defined. [% END %] -
  2. -
  3. - - -
  4. -
  5. - - -
  6. -
  7. - - -
  8. -
-
-
+ [% END %] + [% ELSE %] +

No groups defined.

+ [% END %] +[% END %] + +[% IF op == 'add_form_category' %] +

[% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]Add group[% END %]

+ + + [% IF category.categorycode %] + + [% END %] +
+
    +
  1. + [% IF category.categorycode %] + Category code: + + [% category.categorycode %] + [% ELSE %] + + + Required + [% END %] +
  2. +
  3. + + + Required +
  4. +
  5. + + +
  6. +
  7. + + +
  8. +
  9. + + [% IF category.show_in_pulldown %] + + [% ELSE %] + + [% END %] +
  10. +
+
+
+ + Cancel +
[% END %] -[% IF ( delete_category ) %] - [% UNLESS ( MESSAGE8 ) %] -
- Confirm delete: -
- - - +[% IF op == 'delete_confirm_category' %] +
+

Are you sure you want to delete the group '[% category.codedescription %]' ([% category.categorycode %])?

+ + + + -
- + +
- [% END %] [% END %]