From 54a615c7b56dc8f8ba2ee68f57803a1f02202693 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 21 Jan 2016 15:34:51 +0000 Subject: [PATCH] Bug 15584: Example --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index b0bdabc..01ab58b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -319,6 +319,12 @@ function placeHold () { [% FOR m IN messages %] + + [% IF m.code == 'Koha::Exceptions::Virtualshelves::DuplicateObject' %] +
+ An error occurred when inserting this list. The name [% shelf.shelfname %] already exists. +
+ [% ELSE %]
[% SWITCH m.code %] [% CASE 'error_on_update' %] @@ -353,8 +359,6 @@ function placeHold () { You do not have permission to add a biblio to this list. [% CASE 'no_biblio_removed' %] No biblio has been removed. - [% CASE 'Koha::Exceptions::Virtualshelves::DuplicateObject' %] - An error occurred when inserting this list. The name [% shelfname %] already exists. [% CASE 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' %] List could not be created. (Do not use the database administrator account.) [% CASE 'DBIx::Class::Exception' %] @@ -363,6 +367,7 @@ function placeHold () { [% m.code %] [% END %]
+ [% END %] [% END %] [% IF op == 'view' %] -- 2.1.0