Bug 7310 Followup: Warnings for nothingdeleted and somedeleted for staff client.
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 23 Feb 2012 13:36:54 +0000 (14:36 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 21 Mar 2012 15:47:33 +0000 (16:47 +0100)
Test this patch by trying to delete items from a public list that someone else created (so you do not have sufficient permissions). Check the warning.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Ian Walls <koha.sekjal@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt

index 389ce2b..0eb0d02 100644 (file)
@@ -146,7 +146,13 @@ function placeHold () {
                [% END %] 
                [% IF ( paramsloo.duplicatebiblio ) %]
                <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
-               [% END %] 
+               [% END %]
+                [% IF ( paramsloo.nothingdeleted) %]
+                      <div class="dialog message">Warning: You could not delete any selected items from this shelf.</div>
+                [% END %]
+                [% IF ( paramsloo.somedeleted) %]
+                      <div class="dialog message">Warning: You could not delete all selected items from this shelf.</div>
+                [% END %]
        </div>
 </div>
 [% END %]