[% USE raw %] [% USE Asset %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% t("Manage items") | html %] › [% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %] › [% t("Rotating collections") | html %] › [% t("Tools") | html %] › [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'cat-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] Tools [% END %] [% WRAPPER breadcrumb_item %] Rotating collections [% END %] [% WRAPPER breadcrumb_item %] [% tx("Collection '{collection_title}'", { collection_title = colTitle }) | html %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] Manage items [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %]
[% IF ( ! colId ) %]

Invalid collection id

Return to rotating collections home

[% ELSE %] [% INCLUDE 'rotating-collections-toolbar.inc' %]

[% tx("Manage items for '{collection_title}'", { collection_title = colTitle }) | html %]

[% IF ( previousActionAdd ) %] [% IF ( addSuccess ) %]
Item with barcode '[% barcode | html %]' added successfully
[% ELSE %]

Failed to add item with barcode [% barcode | html %]:

[% IF failureMessage == "NO_ITEM" %] No item with matching barcode found [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %] Item is already in a different rotating collection [% ELSIF failureMessage == "IN_COLLECTION" %] Item is already in this collection [% ELSE %] [% failureMessage | html %] [% END %]

[% END %] [% END %] [% IF ( previousActionRemove ) %] [% IF ( removeSuccess ) %]
Item with barcode [% barcode | html %] removed successfully
[% ELSE %]
Failed to remove item with barcode [% barcode | html %]:

[% IF failureMessage == "NO_ITEM" %] No item with matching barcode found [% ELSIF failureMessage == "NOT_IN_COLLECTION" %] Item is not in this collection [% ELSE %] [% failureMessage | html %] [% END %]

[% END %] [% END %]
Add or remove items
  1. [% IF ( removeChecked ) %] [% ELSE %] [% END %]
[% IF ( collectionItemsLoop ) %]

Items in collection

Total items: [% collectionItemsLoop.size | html%]

[% FOREACH collectionItemsLoo IN collectionItemsLoop %] [% END %]
Title Call number Barcode  
[% INCLUDE 'biblio-title.inc' biblio=collectionItemsLoo link = 1 %] [% collectionItemsLoo.itemcallnumber | html %] [% collectionItemsLoo.barcode | html %] Remove
[% ELSE %]
There are no items in this collection.
[% END %]
[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("js/rotating-collections.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]