Bug 12403: Follow-up - fixing a few typos

- 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>
This commit is contained in:
Katrin Fischer 2014-10-26 22:10:00 +01:00 committed by Tomas Cohen Arazi
parent 2b284f7e14
commit ee836ebb64
3 changed files with 10 additions and 10 deletions

View file

@ -9415,7 +9415,7 @@ if ( CheckVersion($DBversion) ) {
INSERT INTO permissions (module_bit, code, description) VALUES INSERT INTO permissions (module_bit, code, description) VALUES
(13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)') (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); SetVersion($DBversion);
} }

View file

@ -7,7 +7,7 @@
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![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() { $(document).ready(function() {
$("#selectall").click(function(e){ $("#selectall").click(function(e){
e.preventDefault(); e.preventDefault();
@ -145,10 +145,10 @@ $(document).ready(function() {
[% IF records %] [% IF records %]
[% IF recordtype == 'biblio' %] [% IF recordtype == 'biblio' %]
<div id="toolbar"> <div id="toolbar">
<a id="selectall" href="#">Select All</a> <a id="selectall" href="#">Select all</a>
| <a id="clearall" href="#">Clear All</a> | <a id="clearall" href="#">Clear all</a>
| <a id="selectwithoutitems" href="#">Select without items</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> </div>
<form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post"> <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
<table id="biblios" class="records"> <table id="biblios" class="records">
@ -158,7 +158,7 @@ $(document).ready(function() {
<th>Biblionumber</th> <th>Biblionumber</th>
<th>Title</th> <th>Title</th>
<th>Items</th> <th>Items</th>
<th>Reserves</th> <th>Holds</th>
<th>Issues</th> <th>Issues</th>
</tr> </tr>
</thead> </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> <div class="note">Reminder: this action will delete all selected biblios, attached subscriptions, existing holds and items!</div>
[% ELSE %] [% ELSE %]
<div id="toolbar"> <div id="toolbar">
<a id="selectall" href="#">Select All</a> <a id="selectall" href="#">Select all</a>
| <a id="clearall" href="#">Clear All</a> | <a id="clearall" href="#">Clear all</a>
| <a id="clearlinkedtobiblio" href="#">Clear linked to biblio </a> | <a id="clearlinkedtobiblio" href="#">Clear used authorities</a>
</div> </div>
<form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post"> <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
<table id="authorities" class="records"> <table id="authorities" class="records">

View file

@ -38,7 +38,7 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user({
query => $input, query => $input,
type => "intranet", type => "intranet",
authnotrequired => 0, authnotrequired => 0,
flagsrequired => { tools => 'biblio_batchdel' }, flagsrequired => { tools => 'records_batchdel' },
}); });
my @records; my @records;