Bug 12034: standardize alerts referring to lists and list items
authorOwen Leonard <oleonard@myacpl.org>
Thu, 3 Apr 2014 12:38:08 +0000 (08:38 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 14 Jul 2014 11:26:44 +0000 (07:26 -0400)
The staff client lists template contains a warning which differs from
the same warning in the OPAC. The OPAC version is correct because it
refers to a list rather than a shelf. This patch copies the OPAC version
to the staff client template.

This patch also corrects a few of other instances where the incorrect
term "shelf" is used.

To test, apply the patch and view a list in the staff client which is
populated with items. Check the box next to one or more items on the
list and click the "Remove selected" button. You should see the message,
"Are you sure you want to remove these items from the list?"

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Work as described, no koha-qa errors

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 0f7b89633ed9e5be611a4d6c981bf3065670ba1a)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 6e4b91178d692778978b0273ddb8ba961fcf1e0f)

koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt

index 7594d67..0b83c32 100644 (file)
@@ -6,7 +6,7 @@
 //<![CDATA[ 
 
 var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
-var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these records from the shelf?");
+var MSG_REMOVE_FROM_LIST = _("Are you sure you want to remove these items from the list?");
 var MSG_CONFIRM_DELETE_LIST = _("Are you sure you want to remove this list?");
 
 $(document).ready(function(){
@@ -159,7 +159,7 @@ function placeHold () {
         [% IF ( paramsloo.already ) %]<div class="dialog alert">A List named [% paramsloo.already %] already exists!</div>[% END %]
                [% IF ( paramsloo.status ) %]<div class="dialog alert">[% paramsloo.string %]</div>[% END %]
                [% IF ( paramsloo.nobarcode ) %]<div class="dialog alert">ERROR: No barcode given.</div>[% END %] 
-               [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No shelfnumber given.</div>[% END %] 
+        [% IF ( paramsloo.noshelfnumber ) %]<div class="dialog alert">ERROR: No list number given.</div>[% END %]
                [% IF ( paramsloo.need_confirm ) %]
                <div class="dialog alert">The list <i>[% paramsloo.need_confirm %]</i> is not empty.
                        <br />It has <b>[% paramsloo.count %]</b> entries.
@@ -176,10 +176,10 @@ function placeHold () {
                <div class="dialog alert">A record matching barcode <b>[% paramsloo.duplicatebiblio %]</b> has already been added.</div>
                [% END %]
                 [% IF ( paramsloo.nothingdeleted) %]
-                      <div class="dialog message">Warning: You could not delete any selected items from this shelf.</div>
+                      <div class="dialog message">Warning: You could not delete any of the selected items from this list.</div>
                 [% END %]
                 [% IF ( paramsloo.somedeleted) %]
-                      <div class="dialog message">Warning: You could not delete all selected items from this shelf.</div>
+                      <div class="dialog message">Warning: You could not delete all selected items from this list.</div>
                 [% END %]
                 [% IF ( paramsloo.modifyfailure) %]
                       <div class="dialog message">ERROR: List could not be modified.</div>