Bug 12403: Follow-up - fixing a few typos
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 26 Oct 2014 21:10:00 +0000 (22:10 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Nov 2014 18:25:55 +0000 (15:25 -0300)
- Fixes the permission on the tools page
- Fixes some capitalization
- Changes 'Reserves' to 'Holds'

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt
tools/batch_delete_records.pl

index 5531faf..33c936e 100755 (executable)
@@ -9415,7 +9415,7 @@ if ( CheckVersion($DBversion) ) {
         INSERT INTO permissions (module_bit, code, description) VALUES
           (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)')
     |);
-    print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdelitem)\n";
+    print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdel)\n";
     SetVersion($DBversion);
 }
 
index f7fa79e..6afc7bf 100644 (file)
@@ -7,7 +7,7 @@
 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
 <script type="text/javascript">
 //<![CDATA[
-var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently issued");
+var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
 $(document).ready(function() {
   $("#selectall").click(function(e){
     e.preventDefault();
@@ -145,10 +145,10 @@ $(document).ready(function() {
     [% IF records %]
       [% IF recordtype == 'biblio' %]
         <div id="toolbar">
-          <a id="selectall" href="#">Select All</a>
-          | <a id="clearall" href="#">Clear All</a>
+          <a id="selectall" href="#">Select all</a>
+          | <a id="clearall" href="#">Clear all</a>
           | <a id="selectwithoutitems" href="#">Select without items</a>
-          | <a id="selectnotreserved" href="#">Select not reserved</a>
+          | <a id="selectnotreserved" href="#">Select without holds</a>
         </div>
         <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
           <table id="biblios" class="records">
@@ -158,7 +158,7 @@ $(document).ready(function() {
                 <th>Biblionumber</th>
                 <th>Title</th>
                 <th>Items</th>
-                <th>Reserves</th>
+                <th>Holds</th>
                 <th>Issues</th>
               </tr>
             </thead>
@@ -178,9 +178,9 @@ $(document).ready(function() {
           <div class="note">Reminder: this action will delete all selected biblios, attached subscriptions, existing holds and items!</div>
       [% ELSE %]
         <div id="toolbar">
-          <a id="selectall" href="#">Select All</a>
-          | <a id="clearall" href="#">Clear All</a>
-          | <a id="clearlinkedtobiblio" href="#">Clear linked to biblio </a>
+          <a id="selectall" href="#">Select all</a>
+          | <a id="clearall" href="#">Clear all</a>
+          | <a id="clearlinkedtobiblio" href="#">Clear used authorities</a>
         </div>
         <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
           <table id="authorities" class="records">
index 7bb8489..8376d60 100755 (executable)
@@ -38,7 +38,7 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user({
         query => $input,
         type => "intranet",
         authnotrequired => 0,
-        flagsrequired => { tools => 'biblio_batchdel' },
+        flagsrequired => { tools => 'records_batchdel' },
 });
 
 my @records;