[% INCLUDE 'doc-head-open.inc' %] Koha › Administration › Libraries and groups [% 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 'datatables.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% FOR m IN messages %]
[% SWITCH m.code %] [% CASE 'error_on_update' %] An error occurred when updating this library. Perhaps it already exists. [% CASE 'error_on_insert' %] An error occurred when adding this library. The branchcode might already exist. [% CASE 'error_on_delete' %] An error occurred when deleting this library. Check the logs. [% CASE 'success_on_update' %] Library updated successfully. [% CASE 'success_on_insert' %] Library added successfully. [% CASE 'success_on_delete' %] Library deleted successfully. [% CASE 'cannot_delete_library' %] This library cannot be deleted. Patrons or items are still using it [% IF m.data.patrons_count and m.data.items_count %] ([% m.data.patrons_count %] patrons and [% m.data.items_count %] items). [% ELSIF m.data.patrons_count %] ([% m.data.patrons_count %] patrons). [% ELSIF m.data.items_count %] ([% m.data.items_count %] items). [% END %] [% CASE 'error_on_update_category' %] An error occurred when updating this library category. Perhaps it already exists. [% CASE 'error_on_insert_category' %] An error occurred when adding this library category. The categorycode might already exist. [% CASE 'error_on_delete_category' %] An error occurred when deleting this library category. Check the logs. [% CASE 'success_on_update_category' %] Library category updated successfully. [% CASE 'success_on_insert_category' %] Library category added successfully. [% CASE 'success_on_delete_category' %] Library category deleted successfully. [% CASE 'cannot_delete_category' %] This library category cannot be deleted. [% m.data.libraries_count %] libraries are still using it. [% CASE %] [% m.code %] [% END %]
[% END %] [% IF op == 'list' %] [% END %] [% IF op == 'add_form' %]

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

[% IF library %] [% END %]
  1. [% IF library %] Library code: [% library.branchcode %] [% ELSE %] Required [% END %]
  2. Required
[% 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 %]
  1. Can be entered as a single IP, or a subnet such as 192.168.1.*
Cancel
[% END %] [% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
Confirm deletion of [% library.branchname %] ([% library.branchcode %])?
Cancel
[% END %] [% IF op == 'list' %]

Libraries

[% IF libraries %] [% FOREACH library IN libraries %] [% END %]
Name Code Address Properties IP    
[% 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 %]
There are no libraries defined. Start defining libraries.
[% END %] [% 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 %] [% FOREACH category IN group_type.categories %] [% END %]
Name Code Description    
[% 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 %] Add a new group. [% END %] [% 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 %] [% END %]
  2. [% IF category.show_in_pulldown %] [% ELSE %] [% END %]
[% END %] [% IF op == 'delete_confirm_category' %]
Are you sure you want to delete the group '[% category.codedescription %]' ([% category.categorycode %])?
Cancel
[% END %]
[% INCLUDE 'admin-menu.inc' %]
[% INCLUDE 'intranet-bottom.inc' %]