[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Rotating collections › [%- IF ( action == "new" ) %] Add a new collection [% ELSE %] Edit collection [% editColTitle | html %] [% END -%] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.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' %]