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

(-)a/installer/data/mysql/de-DE/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 50-56 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
50
   (13, 'upload_local_cover_images', 'Eigene Coverbilder hochladen'),
50
   (13, 'upload_local_cover_images', 'Eigene Coverbilder hochladen'),
51
   (13, 'manage_patron_lists', 'Benutzerlisten anlegen, bearbeiten und löschen'),
51
   (13, 'manage_patron_lists', 'Benutzerlisten anlegen, bearbeiten und löschen'),
52
   (13, 'marc_modification_templates', 'Templates für MARC-Modifikationen verwalten'),
52
   (13, 'marc_modification_templates', 'Templates für MARC-Modifikationen verwalten'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
54
   (15, 'check_expiration', 'Ablauf eines Abonnements prüfen'),
54
   (15, 'check_expiration', 'Ablauf eines Abonnements prüfen'),
55
   (15, 'claim_serials', 'Fehlende Hefte reklamieren'),
55
   (15, 'claim_serials', 'Fehlende Hefte reklamieren'),
56
   (15, 'create_subscription', 'Neue Abonnements anlegen'),
56
   (15, 'create_subscription', 'Neue Abonnements anlegen'),
(-)a/installer/data/mysql/en/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 50-56 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
50
   (13, 'upload_local_cover_images', 'Upload local cover images'),
50
   (13, 'upload_local_cover_images', 'Upload local cover images'),
51
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
51
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
52
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
52
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
54
   (15, 'check_expiration', 'Check the expiration of a serial'),
54
   (15, 'check_expiration', 'Check the expiration of a serial'),
55
   (15, 'claim_serials', 'Claim missing serials'),
55
   (15, 'claim_serials', 'Claim missing serials'),
56
   (15, 'create_subscription', 'Create a new subscription'),
56
   (15, 'create_subscription', 'Create a new subscription'),
(-)a/installer/data/mysql/es-ES/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 50-56 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
50
   (13, 'upload_local_cover_images', 'Upload local cover images'),
50
   (13, 'upload_local_cover_images', 'Upload local cover images'),
51
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
51
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
52
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
52
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
54
   (15, 'check_expiration', 'Check the expiration of a serial'),
54
   (15, 'check_expiration', 'Check the expiration of a serial'),
55
   (15, 'claim_serials', 'Claim missing serials'),
55
   (15, 'claim_serials', 'Claim missing serials'),
56
   (15, 'create_subscription', 'Create a new subscription'),
56
   (15, 'create_subscription', 'Create a new subscription'),
(-)a/installer/data/mysql/fr-FR/1-Obligatoire/userpermissions.sql (-1 / +1 lines)
Lines 50-56 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
50
   (13, 'items_batchdel', 'Supprimer les exemplaires par lot'),
50
   (13, 'items_batchdel', 'Supprimer les exemplaires par lot'),
51
   (13, 'upload_local_cover_images', 'Téléchargement des images de couverture'),
51
   (13, 'upload_local_cover_images', 'Téléchargement des images de couverture'),
52
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
52
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
54
   (15, 'check_expiration', 'Contrôler l''expiration d''un périodique'),
54
   (15, 'check_expiration', 'Contrôler l''expiration d''un périodique'),
55
   (15, 'claim_serials', 'Réclamer les périodiques manquants'),
55
   (15, 'claim_serials', 'Réclamer les périodiques manquants'),
56
   (15, 'create_subscription', 'Créer de nouveaux abonnements'),
56
   (15, 'create_subscription', 'Créer de nouveaux abonnements'),
(-)a/installer/data/mysql/it-IT/necessari/userpermissions.sql (-1 / +1 lines)
Lines 50-56 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
50
   (13, 'upload_local_cover_images', 'Carica copertine in locale'),
50
   (13, 'upload_local_cover_images', 'Carica copertine in locale'),
51
   (13, 'manage_patron_lists', 'Aggiungi, modifica e cancella le liste utenti e i loro contenuti'),
51
   (13, 'manage_patron_lists', 'Aggiungi, modifica e cancella le liste utenti e i loro contenuti'),
52
   (13, 'marc_modification_templates', 'Gestisci le modifiche sulle griglie di catalogazione MARC'),
52
   (13, 'marc_modification_templates', 'Gestisci le modifiche sulle griglie di catalogazione MARC'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
53
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
54
   (15, 'check_expiration', 'Controlla la scadenza di una risora in continuazione'),
54
   (15, 'check_expiration', 'Controlla la scadenza di una risora in continuazione'),
55
   (15, 'claim_serials', 'Richiedi i fascicoli non arrivati'),
55
   (15, 'claim_serials', 'Richiedi i fascicoli non arrivati'),
56
   (15, 'create_subscription', 'Crea un nuovo abbonamento'),
56
   (15, 'create_subscription', 'Crea un nuovo abbonamento'),
(-)a/installer/data/mysql/nb-NO/1-Obligatorisk/userpermissions.sql (-1 / +1 lines)
Lines 70-76 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
70
   (13, 'upload_local_cover_images', 'Laste opp lokale omslagsbilder'),
70
   (13, 'upload_local_cover_images', 'Laste opp lokale omslagsbilder'),
71
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
71
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
72
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
72
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
73
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
73
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
74
   (15, 'check_expiration', 'Sjekke utløpsdato for et periodikum'),
74
   (15, 'check_expiration', 'Sjekke utløpsdato for et periodikum'),
75
   (15, 'claim_serials', 'Purre manglende tidsskrifthefter'),
75
   (15, 'claim_serials', 'Purre manglende tidsskrifthefter'),
76
   (15, 'create_subscription', 'Opprette abonnementer'),
76
   (15, 'create_subscription', 'Opprette abonnementer'),
(-)a/installer/data/mysql/pl-PL/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 51-57 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
51
   (13, 'rotating_collections', 'Manage rotating collections'),
51
   (13, 'rotating_collections', 'Manage rotating collections'),
52
   (13, 'upload_local_cover_images', 'Upload local cover images'),
52
   (13, 'upload_local_cover_images', 'Upload local cover images'),
53
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
53
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
54
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
54
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
55
   (15, 'check_expiration', 'Check the expiration of a serial'),
55
   (15, 'check_expiration', 'Check the expiration of a serial'),
56
   (15, 'claim_serials', 'Claim missing serials'),
56
   (15, 'claim_serials', 'Claim missing serials'),
57
   (15, 'create_subscription', 'Create a new subscription'),
57
   (15, 'create_subscription', 'Create a new subscription'),
(-)a/installer/data/mysql/ru-RU/mandatory/permissions_and_user_flags.sql (-1 / +1 lines)
Lines 76-82 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
76
   (13, 'upload_local_cover_images', 'Upload local cover images'),
76
   (13, 'upload_local_cover_images', 'Upload local cover images'),
77
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
77
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
78
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
78
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
79
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
79
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
80
   (15, 'check_expiration',            'Check the expiration of a serial'),
80
   (15, 'check_expiration',            'Check the expiration of a serial'),
81
   (15, 'claim_serials',               'Claim missing serials'),
81
   (15, 'claim_serials',               'Claim missing serials'),
82
   (15, 'create_subscription',         'Create a new subscription'),
82
   (15, 'create_subscription',         'Create a new subscription'),
(-)a/installer/data/mysql/uk-UA/mandatory/permissions_and_user_flags.sql (-1 / +1 lines)
Lines 76-82 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
76
   (13, 'upload_local_cover_images', 'Upload local cover images'),
76
   (13, 'upload_local_cover_images', 'Upload local cover images'),
77
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
77
   (13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
78
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
78
   (13, 'marc_modification_templates', 'Manage marc modification templates'),
79
   (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
79
   (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
80
   (15, 'check_expiration',            'Check the expiration of a serial'),
80
   (15, 'check_expiration',            'Check the expiration of a serial'),
81
   (15, 'claim_serials',               'Claim missing serials'),
81
   (15, 'claim_serials',               'Claim missing serials'),
82
   (15, 'create_subscription',         'Create a new subscription'),
82
   (15, 'create_subscription',         'Create a new subscription'),
(-)a/installer/data/mysql/updatedatabase.pl (-2 / +2 lines)
Lines 8896-8904 $DBversion = "3.15.00.XXX"; Link Here
8896
if ( CheckVersion($DBversion) ) {
8896
if ( CheckVersion($DBversion) ) {
8897
    $dbh->do(q|
8897
    $dbh->do(q|
8898
        INSERT INTO permissions (module_bit, code, description) VALUES
8898
        INSERT INTO permissions (module_bit, code, description) VALUES
8899
          (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)')
8899
          (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)')
8900
    |);
8900
    |);
8901
    print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdel)\n";
8901
    print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdelitem)\n";
8902
    SetVersion($DBversion);
8902
    SetVersion($DBversion);
8903
}
8903
}
8904
8904
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-6 / +28 lines)
Lines 40-46 function placeHold () { Link Here
40
    window.opener.location = newloc;
40
    window.opener.location = newloc;
41
    window.close();
41
    window.close();
42
}
42
}
43
[% IF CAN_user_tools_records_batchdel %]
44
function batchDelete(){
45
    var checkedItems = $("input:checkbox:checked");
46
    if ($(checkedItems).size() == 0) {
47
        alert(MSG_NO_RECORD_SELECTED);
48
        return false;
49
    }
50
    var newloc;
51
52
    var bibs = "";
53
    $(checkedItems).each(function() {
54
        var bib = $(this).val();
55
        bibs += bib + "/";
56
    });
57
58
    newloc = "/cgi-bin/koha/tools/batch_delete_records.pl?op=list&type=biblio&bib_list=" + bibs;
43
59
60
    window.opener.location = newloc;
61
    window.close();
62
}
63
[% END %]
44
	$(document).ready(function(){
64
	$(document).ready(function(){
45
                $("#items-popover").popover();
65
                $("#items-popover").popover();
46
		$("#CheckAll").click(function(){
66
		$("#CheckAll").click(function(){
Lines 101-112 function placeHold () { Link Here
101
        [% END %]
121
        [% END %]
102
        </ul>
122
        </ul>
103
    </div>
123
    </div>
104
    <div class="btn-group">
105
        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#" id="actioncart"><i class="icon-play"></i> Actions <span class="caret"></span> </a>
106
        <ul class="dropdown-menu">
107
            <li><a href="/cgi-bin/koha/tools/batch_delete_records.pl?op=list&amp;bib_list=[% bib_list %]&amp;type=biblio">Delete</a></li>
108
        </ul>
109
    </div>
110
    <a class="btn btn-small" href="basket.pl" onclick="printBasket(); return false;"><i class="icon-print"></i> Print</a>
124
    <a class="btn btn-small" href="basket.pl" onclick="printBasket(); return false;"><i class="icon-print"></i> Print</a>
111
    <a class="btn btn-small" href="basket.pl" onclick="delBasket('popup'); return false;"><i class="icon-trash"></i> Empty and close</a>
125
    <a class="btn btn-small" href="basket.pl" onclick="delBasket('popup'); return false;"><i class="icon-trash"></i> Empty and close</a>
112
    <a class="btn btn-small close" href="basket.pl"><i class="icon-remove-sign"></i> Hide window</a>
126
    <a class="btn btn-small close" href="basket.pl"><i class="icon-remove-sign"></i> Hide window</a>
Lines 126-131 function placeHold () { Link Here
126
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
140
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
127
[% END %]
141
[% END %]
128
142
143
[% IF CAN_user_tools_records_batchdel %]
144
    | <a href="#" onclick="batchDelete(); return false;">Batch delete</a>
145
[% END %]
146
129
</p>[% END %]
147
</p>[% END %]
130
            <form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
148
            <form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
131
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
149
    [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
Lines 294-299 function placeHold () { Link Here
294
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
312
     | <a href="#" onclick="placeHold(); return false;">Place hold</a>
295
[% END %]
313
[% END %]
296
314
315
[% IF CAN_user_tools_records_batchdel %]
316
    | <a href="#" onclick="batchDelete(); return false;">Batch delete</a>
317
[% END %]
318
297
[% END %]
319
[% END %]
298
320
299
</p>
321
</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-20 / +20 lines)
Lines 37-43 $(document).ready(function() { Link Here
37
      $(this).attr('title', MSG_CANNOT_BE_DELETED)
37
      $(this).attr('title', MSG_CANNOT_BE_DELETED)
38
      $(this).attr('disabled', true);
38
      $(this).attr('disabled', true);
39
      $(this).attr('checked', false);
39
      $(this).attr('checked', false);
40
      $(this).parents('tr').find('td').css('background-color', 'red');
40
      $(this).parents('tr').find('td').css('background-color', '#ffff99');
41
    });
41
    });
42
  [% END %]
42
  [% END %]
43
43
Lines 92-113 $(document).ready(function() { Link Here
92
    [% ELSIF message.code == 'authority_not_exists' %]
92
    [% ELSIF message.code == 'authority_not_exists' %]
93
      The authority id [% message.authid %] does not exist in the database.
93
      The authority id [% message.authid %] does not exist in the database.
94
    [% ELSIF message.code == 'item_issued' %]
94
    [% ELSIF message.code == 'item_issued' %]
95
      At least one item issued for the biblio [% message.biblionumber %].
95
      At least one item is checked out on bibliographic record [% message.biblionumber %].
96
    [% ELSIF message.code == 'reserve_not_cancelled' %]
96
    [% ELSIF message.code == 'reserve_not_cancelled' %]
97
      The biblio [% message.biblionumber %] has not been deleted. A reserve (reserve_id [% message.reserve_id %]) caused an error on cancel.
97
      Bibliographic record [% message.biblionumber %] was not deleted. A hold could not be canceled (reserve_id [% message.reserve_id %]).
98
    [% ELSIF message.code == 'item_not_deleted' %]
98
    [% ELSIF message.code == 'item_not_deleted' %]
99
      The biblio [% message.biblionumber %] has not been deleted. An item (itemnumber [% message.itemnumber %]) caused an error on delete.
99
      The bibliographic record [% message.biblionumber %] was not deleted. An error was encountered when deleting an item (itemnumber [% message.itemnumber %]).
100
    [% ELSIF message.code == 'biblio_not_deleted' %]
100
    [% ELSIF message.code == 'biblio_not_deleted' %]
101
      The biblio [% message.biblionumber %] has not been deleted. An error occurred on deleting it.
101
      Bibliographic record [% message.biblionumber %] was not deleted. An error occurred.
102
    [% ELSIF message.code == 'authority_not_deleted' %]
102
    [% ELSIF message.code == 'authority_not_deleted' %]
103
      The authority [% message.authid %] has not been deleted. An error occurred on deleting it.
103
      Authority record [% message.authid %] was not deleted. An error occurred.
104
    [% ELSIF message.code == 'biblio_deleted' %]
104
    [% ELSIF message.code == 'biblio_deleted' %]
105
      The biblio [% message.biblionumber %] has successfully been deleted.
105
      Bibliographic record [% message.biblionumber %] has been deleted successfully.
106
    [% ELSIF message.code == 'authority_deleted' %]
106
    [% ELSIF message.code == 'authority_deleted' %]
107
      The authority [% message.authid %] has successfully been deleted.
107
      Authority [% message.authid %] has been deleted successfully.
108
    [% END %]
108
    [% END %]
109
    [% IF message.error %]
109
    [% IF message.error %]
110
      (The error was: [% message.error%], see the Koha logfile for more information).
110
      (The error was: [% message.error%], see the Koha log file for more information).
111
    [% END %]
111
    [% END %]
112
    </div>
112
    </div>
113
  [% END %]
113
  [% END %]
Lines 116-122 $(document).ready(function() { Link Here
116
      <fieldset class="rows">
116
      <fieldset class="rows">
117
        <legend>Record type</legend>
117
        <legend>Record type</legend>
118
        <ol>
118
        <ol>
119
          <li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
119
          <li><label for="biblio_type">Bibliographic: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
120
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
120
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
121
        </ol>
121
        </ol>
122
      </fieldset>
122
      </fieldset>
Lines 159-173 $(document).ready(function() { Link Here
159
                <th>Title</th>
159
                <th>Title</th>
160
                <th>Items</th>
160
                <th>Items</th>
161
                <th>Holds</th>
161
                <th>Holds</th>
162
                <th>Issues</th>
162
                <th>Checkouts</th>
163
              </tr>
163
              </tr>
164
            </thead>
164
            </thead>
165
            <tbody>
165
            <tbody>
166
              [% FOR biblio IN records %]
166
              [% FOR biblio IN records %]
167
                <tr>
167
                <tr>
168
                  <td><input type="checkbox" name="record_id" value="[% biblio.biblionumber %]" data-items="[% biblio.itemnumbers.size %]" data-issues="[% biblio.issues_count %]" data-reserves="[% biblio.reserves.size %]" /></td>
168
                  <td><input type="checkbox" name="record_id" id="record_id_[% biblio.biblionumber %]" value="[% biblio.biblionumber %]" data-items="[% biblio.itemnumbers.size %]" data-issues="[% biblio.issues_count %]" data-reserves="[% biblio.reserves.size %]" /></td>
169
                  <td>[% biblio.biblionumber %]</td>
169
                  <td><label for="record_id_[% biblio.biblionumber %]">[% biblio.biblionumber %]</label></td>
170
                  <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></td>
170
                  <td>[% INCLUDE 'biblio-default-view.inc' biblionumber=biblio.biblionumber %][% biblio.title %][% IF ( biblio.subtitle ) %][% FOREACH subtitle IN biblio.subtitle %] [% subtitle.subfield |html %][% END %][% END %]</a></td>
171
                  <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.itemnumbers.size %]</a></td>
171
                  <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.itemnumbers.size %]</a></td>
172
                  <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.reserves.size %]</a></td>
172
                  <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.reserves.size %]</a></td>
173
                  <td><a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.issues_count %]</a></td>
173
                  <td><a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.issues_count %]</a></td>
Lines 175-181 $(document).ready(function() { Link Here
175
              [% END %]
175
              [% END %]
176
            </tbody>
176
            </tbody>
177
          </table>
177
          </table>
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 bibliographic records, attached subscriptions, existing holds, and attached 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>
Lines 198-204 $(document).ready(function() { Link Here
198
                  <td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td>
198
                  <td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td>
199
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td>
199
                  <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td>
200
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
200
                  <td>[% PROCESS authresult summary=authority.summary %]</td>
201
                  <td><a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% authority.authid %]">[% authority.count_usage %] biblio(s)</a></td>
201
                  <td><a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;idx=an,phr&amp;q=[% authority.authid %]">[% authority.count_usage %] record(s)</a></td>
202
                </tr>
202
                </tr>
203
              [% END %]
203
              [% END %]
204
            </tbody>
204
            </tbody>
Lines 213-227 $(document).ready(function() { Link Here
213
        </fieldset>
213
        </fieldset>
214
      </form>
214
      </form>
215
    [% ELSE %]
215
    [% ELSE %]
216
      There is no record ids defined.
216
      There are no record ids defined.
217
    [% END %]
217
    [% END %]
218
  [% ELSIF op == 'report' %]
218
  [% ELSIF op == 'report' %]
219
    [% IF report.total_records == report.total_success %]
219
    [% IF report.total_records == report.total_success %]
220
      All records have successfully been deleted!
220
      All records have been deleted successfully!
221
    [% ELSIF report.total_success == 0 %]
221
    [% ELSIF report.total_success == 0 %]
222
      No record has been deleted, some errors occurred.
222
      No record has been deleted. An error occurred.
223
    [% ELSE %]
223
    [% ELSE %]
224
      [% report.total_success %] / [% report.total_records %] records have successfully been deleted but some errors occurred.
224
      [% report.total_success %] / [% report.total_records %] records have been deleted successfully but some errors occurred.
225
    [% END %]
225
    [% END %]
226
    <p><a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
226
    <p><a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
227
  [% ELSE %]
227
  [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-1 / +1 lines)
Lines 124-130 Link Here
124
124
125
    [% IF CAN_user_tools_records_batchdel %]
125
    [% IF CAN_user_tools_records_batchdel %]
126
      <dt><a href="/cgi-bin/koha/tools/batch_delete_records.pl">Batch record deletion</a></dt>
126
      <dt><a href="/cgi-bin/koha/tools/batch_delete_records.pl">Batch record deletion</a></dt>
127
      <dd>Delete a batch of records (biblios or authorities)</dd>
127
      <dd>Delete a batch of records (bibliographic or authority)</dd>
128
    [% END %]
128
    [% END %]
129
129
130
    [% IF ( CAN_user_tools_export_catalog ) %]
130
    [% IF ( CAN_user_tools_export_catalog ) %]
(-)a/tools/batch_delete_records.pl (-1 / +2 lines)
Lines 77-82 if ( $op eq 'form' ) { Link Here
77
                };
77
                };
78
                next;
78
                next;
79
            }
79
            }
80
            my $record = &GetMarcBiblio( $record_id );
81
            $biblio->{subtitle} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $record_id ) );
80
            $biblio->{itemnumbers} = C4::Items::GetItemnumbersForBiblio( $record_id );
82
            $biblio->{itemnumbers} = C4::Items::GetItemnumbersForBiblio( $record_id );
81
            $biblio->{reserves} = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $record_id });
83
            $biblio->{reserves} = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $record_id });
82
            $biblio->{issues_count} = C4::Biblio::CountItemsIssued( $record_id );
84
            $biblio->{issues_count} = C4::Biblio::CountItemsIssued( $record_id );
83
- 

Return to bug 12403