[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Rotating collections › [%- IF ( action == "new" ) %] Add a new collection [% ELSE %] Edit collection [% editColTitle %] [% END -%] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]
[% IF ( previousActionCreate ) %] [% IF ( createSuccess ) %]

Collection [% createdTitle %] added successfully

Return to rotating collections home

[% ELSE %]

Collection [% createdTitle %] 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 %] [% 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 %] updated successfully

Return to rotating collections home

[% ELSE %]

Collection [% updatedTitle %] failed to be updated

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

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

Edit collection [% editColTitle %]

[% ELSE %]

Add new collection

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

Cancel

[% END %]
[% INCLUDE 'tools-menu.inc' %]
[% MACRO jsinclude BLOCK %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]