[% INCLUDE 'virtualshelves-toolbar.inc' %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'error_on_update' %]
An error occurred when updating this list.
[% CASE 'error_on_insert' %]
An error occurred when creating this list.
[% CASE 'error_on_delete' %]
An error occurred when deleting this list.
[% CASE 'error_on_add_biblio' %]
[% IF m.item_barcode %]
The item ([% m.item_barcode | html %]) has not been added to the list. Please verify it is not already in the list.
[% ELSE %]
The record ([% m.bibnum | html %]) has not been added to the list. Please verify it is not already in the list.
[% END %]
[% CASE 'success_on_update' %]
List updated.
[% CASE 'success_on_insert' %]
List created.
[% CASE 'success_on_delete' %]
List deleted.
[% CASE 'success_on_add_biblio' %]
[% IF m.item_barcode %]
The item ([% m.item_barcode | html %]) has been added to the list.
[% ELSE %]
The record ([% m.bibnum | html %]) has been added to the list.
[% END %]
[% CASE 'success_on_remove_biblios' %]
The item has been removed from the list.
[% CASE 'does_not_exist' %]
This list does not exist.
[% CASE 'item_does_not_exist' %]
[% IF m.item_barcode %]
The item ([% m.item_barcode | html %]) does not exist.
[% ELSE %]
The record ([% m.bibnum | html %]) does not exist.
[% END %]
[% CASE 'unauthorized_on_view' %]
You do not have permission to view this list.
[% CASE 'unauthorized_on_update' %]
You do not have permission to update this list.
[% CASE 'unauthorized_on_delete' %]
You do not have permission to delete this list.
[% CASE 'unauthorized_on_add_biblio' %]
You do not have permission to add a record to this list.
[% CASE 'no_biblio_removed' %]
No record was removed.
[% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %]
An error occurred when creating this list. The name [% shelfname | html %] already exists.
[% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %]
List could not be created. (Do not use the database administrator account.)
[% CASE 'DBIx::Class::Exception' %]
[% m.msg | html %]
[% CASE %]
[% m.code | html %] [% m.msg | html %]
[% END %]
[% END %]
[% IF op == 'view' %]
[% IF itemsloop %]
Contents of [% shelf.shelfname | html %]
[% pagination_bar | $raw %]
[% END %]
[% END %]
[% IF op == 'add_form' OR op == 'edit_form' %]
[% END %]
[% IF op == 'list' %]
Lists
[% END %]