[% USE raw %] [% USE Asset %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% IF ( action == "new" ) %] [% t("Add a new collection") | html %] [% ELSIF ( action == "delete" ) %] [% t("Collection deleted") | html %] [% ELSE %] [% t("Edit collection") | html %] › [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %] [% END %] › [% 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 %] [%- IF ( action == "new" ) %] [% WRAPPER breadcrumb_item bc_active= 1 %] Add a new collection [% END %] [% ELSIF ( action == "delete" ) %] [% WRAPPER breadcrumb_item bc_active= 1 %] Collection deleted [% END %] [% ELSE %] [% WRAPPER breadcrumb_item %] [% tx("Collection '{collection_title}'", { collection_title = editColTitle }) | html %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% t("Edit collection") | html %] [% END %] [% END -%] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %]
[% IF ( previousActionCreate ) %] [% IF ( createSuccess ) %]

Collection [% createdTitle | html %] added successfully

Return to rotating collections home

[% ELSE %]

Collection [% createdTitle | html %] failed to be added

[% IF failureMessage == "NO_TITLE" %] No title entered. [% ELSIF failureMessage == "DUPLICATE_TITLE" %] Title already in use. [% ELSIF failureMessage == "NO_DESCRIPTION" %] No description entered. [% ELSE %] [% failureMessage | html %] [% END %]

[% END %] [% END %] [% IF ( previousActionDelete ) %] [% IF ( deleteSuccess ) %]

Collection deleted successfully

Return to rotating collections home

[% ELSE %]
Collection failed to be deleted
[% END %] [% END %] [% IF ( previousActionUpdate ) %] [% IF ( updateSuccess ) %]

Collection [% updatedTitle | html %] updated successfully

Return to rotating collections home

[% ELSE %]

Collection [% updatedTitle | html %] failed to be updated

[% IF failureMessage == "NO_ID" %] No collection id given. [% ELSIF failureMessage == "DUPLICATE_TITLE" %] Title already in use. [% ELSE %] [% failureMessage | html %] [% END %]

[% END %] [% END %]
[% IF action == "new" || action == "edit" %] [% IF ( previousActionEdit ) %]

Edit collection [% editColTitle | html %]

[% ELSE %]

Add new collection

[% END %]
[% IF ( previousActionEdit ) %] [% ELSE %] [% END %]
  1. [% IF ( editColTitle ) %] Required [% ELSE %] Required [% END %]
  2. [% IF (editColDescription ) %] [% ELSE %] [% END %]

Cancel

[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("js/rotating-collections.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]