View | Details | Raw Unified | Return to bug 12403
Collapse All | Expand All

(-)a/installer/data/mysql/updatedatabase.pl (-1 / +1 lines)
Lines 8897-8903 if ( CheckVersion($DBversion) ) { Link Here
8897
        INSERT INTO permissions (module_bit, code, description) VALUES
8897
        INSERT INTO permissions (module_bit, code, description) VALUES
8898
          (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)')
8898
          (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)')
8899
    |);
8899
    |);
8900
    print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdelitem)\n";
8900
    print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdel)\n";
8901
    SetVersion($DBversion);
8901
    SetVersion($DBversion);
8902
}
8902
}
8903
8903
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-8 / +8 lines)
Lines 7-13 Link Here
7
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
7
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
8
<script type="text/javascript">
8
<script type="text/javascript">
9
//<![CDATA[
9
//<![CDATA[
10
var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently issued");
10
var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
11
$(document).ready(function() {
11
$(document).ready(function() {
12
  $("#selectall").click(function(e){
12
  $("#selectall").click(function(e){
13
    e.preventDefault();
13
    e.preventDefault();
Lines 145-154 $(document).ready(function() { Link Here
145
    [% IF records %]
145
    [% IF records %]
146
      [% IF recordtype == 'biblio' %]
146
      [% IF recordtype == 'biblio' %]
147
        <div id="toolbar">
147
        <div id="toolbar">
148
          <a id="selectall" href="#">Select All</a>
148
          <a id="selectall" href="#">Select all</a>
149
          | <a id="clearall" href="#">Clear All</a>
149
          | <a id="clearall" href="#">Clear all</a>
150
          | <a id="selectwithoutitems" href="#">Select without items</a>
150
          | <a id="selectwithoutitems" href="#">Select without items</a>
151
          | <a id="selectnotreserved" href="#">Select not reserved</a>
151
          | <a id="selectnotreserved" href="#">Select without holds</a>
152
        </div>
152
        </div>
153
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
153
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
154
          <table id="biblios" class="records">
154
          <table id="biblios" class="records">
Lines 158-164 $(document).ready(function() { Link Here
158
                <th>Biblionumber</th>
158
                <th>Biblionumber</th>
159
                <th>Title</th>
159
                <th>Title</th>
160
                <th>Items</th>
160
                <th>Items</th>
161
                <th>Reserves</th>
161
                <th>Holds</th>
162
                <th>Issues</th>
162
                <th>Issues</th>
163
              </tr>
163
              </tr>
164
            </thead>
164
            </thead>
Lines 178-186 $(document).ready(function() { Link Here
178
          <div class="note">Reminder: this action will delete all selected biblios, attached subscriptions, existing holds and items!</div>
178
          <div class="note">Reminder: this action will delete all selected biblios, attached subscriptions, existing holds and items!</div>
179
      [% ELSE %]
179
      [% ELSE %]
180
        <div id="toolbar">
180
        <div id="toolbar">
181
          <a id="selectall" href="#">Select All</a>
181
          <a id="selectall" href="#">Select all</a>
182
          | <a id="clearall" href="#">Clear All</a>
182
          | <a id="clearall" href="#">Clear all</a>
183
          | <a id="clearlinkedtobiblio" href="#">Clear linked to biblio </a>
183
          | <a id="clearlinkedtobiblio" href="#">Clear used authorities</a>
184
        </div>
184
        </div>
185
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
185
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post">
186
          <table id="authorities" class="records">
186
          <table id="authorities" class="records">
(-)a/tools/batch_delete_records.pl (-2 / +1 lines)
Lines 38-44 my ($template, $loggedinuser, $cookie) = get_template_and_user({ Link Here
38
        query => $input,
38
        query => $input,
39
        type => "intranet",
39
        type => "intranet",
40
        authnotrequired => 0,
40
        authnotrequired => 0,
41
        flagsrequired => { tools => 'biblio_batchdel' },
41
        flagsrequired => { tools => 'records_batchdel' },
42
});
42
});
43
43
44
my @records;
44
my @records;
45
- 

Return to bug 12403