(13, 'upload_local_cover_images', 'Eigene Coverbilder hochladen'),
(13, 'manage_patron_lists', 'Benutzerlisten anlegen, bearbeiten und löschen'),
(13, 'marc_modification_templates', 'Templates für MARC-Modifikationen verwalten'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Ablauf eines Abonnements prüfen'),
(15, 'claim_serials', 'Fehlende Hefte reklamieren'),
(15, 'create_subscription', 'Neue Abonnements anlegen'),
(13, 'upload_local_cover_images', 'Upload local cover images'),
(13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
(13, 'marc_modification_templates', 'Manage marc modification templates'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Check the expiration of a serial'),
(15, 'claim_serials', 'Claim missing serials'),
(15, 'create_subscription', 'Create a new subscription'),
(13, 'upload_local_cover_images', 'Upload local cover images'),
(13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
(13, 'marc_modification_templates', 'Manage marc modification templates'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Check the expiration of a serial'),
(15, 'claim_serials', 'Claim missing serials'),
(15, 'create_subscription', 'Create a new subscription'),
(13, 'items_batchdel', 'Supprimer les exemplaires par lot'),
(13, 'upload_local_cover_images', 'Téléchargement des images de couverture'),
(13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Contrôler l''expiration d''un périodique'),
(15, 'claim_serials', 'Réclamer les périodiques manquants'),
(15, 'create_subscription', 'Créer de nouveaux abonnements'),
(13, 'upload_local_cover_images', 'Carica copertine in locale'),
(13, 'manage_patron_lists', 'Aggiungi, modifica e cancella le liste utenti e i loro contenuti'),
(13, 'marc_modification_templates', 'Gestisci le modifiche sulle griglie di catalogazione MARC'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Controlla la scadenza di una risora in continuazione'),
(15, 'claim_serials', 'Richiedi i fascicoli non arrivati'),
(15, 'create_subscription', 'Crea un nuovo abbonamento'),
(13, 'upload_local_cover_images', 'Laste opp lokale omslagsbilder'),
(13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
(13, 'marc_modification_templates', 'Manage marc modification templates'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Sjekke utløpsdato for et periodikum'),
(15, 'claim_serials', 'Purre manglende tidsskrifthefter'),
(15, 'create_subscription', 'Opprette abonnementer'),
(13, 'rotating_collections', 'Manage rotating collections'),
(13, 'upload_local_cover_images', 'Upload local cover images'),
(13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Check the expiration of a serial'),
(15, 'claim_serials', 'Claim missing serials'),
(15, 'create_subscription', 'Create a new subscription'),
(13, 'upload_local_cover_images', 'Upload local cover images'),
(13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
(13, 'marc_modification_templates', 'Manage marc modification templates'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Check the expiration of a serial'),
(15, 'claim_serials', 'Claim missing serials'),
(15, 'create_subscription', 'Create a new subscription'),
(13, 'upload_local_cover_images', 'Upload local cover images'),
(13, 'manage_patron_lists', 'Add, edit and delete patron lists and their contents'),
(13, 'marc_modification_templates', 'Manage marc modification templates'),
- (13, 'records_batchdel', 'Perform batch deletion of records (biblios or authorities)'),
+ (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'),
(15, 'check_expiration', 'Check the expiration of a serial'),
(15, 'claim_serials', 'Claim missing serials'),
(15, 'create_subscription', 'Create a new subscription'),
if ( CheckVersion($DBversion) ) {
$dbh->do(q|
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 (bibliographic or authority)')
|);
- print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdel)\n";
+ print "Upgrade to $DBversion done (Bug 12403: Add permission tools_records_batchdelitem)\n";
SetVersion($DBversion);
}
window.opener.location = newloc;
window.close();
}
+[% IF CAN_user_tools_records_batchdel %]
+function batchDelete(){
+ var checkedItems = $("input:checkbox:checked");
+ if ($(checkedItems).size() == 0) {
+ alert(MSG_NO_RECORD_SELECTED);
+ return false;
+ }
+ var newloc;
+
+ var bibs = "";
+ $(checkedItems).each(function() {
+ var bib = $(this).val();
+ bibs += bib + "/";
+ });
+
+ newloc = "/cgi-bin/koha/tools/batch_delete_records.pl?op=list&type=biblio&bib_list=" + bibs;
+ window.opener.location = newloc;
+ window.close();
+}
+[% END %]
$(document).ready(function(){
$("#items-popover").popover();
$("#CheckAll").click(function(){
[% END %]
</ul>
</div>
- <div class="btn-group">
- <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#" id="actioncart"><i class="icon-play"></i> Actions <span class="caret"></span> </a>
- <ul class="dropdown-menu">
- <li><a href="/cgi-bin/koha/tools/batch_delete_records.pl?op=list&bib_list=[% bib_list %]&type=biblio">Delete</a></li>
- </ul>
- </div>
<a class="btn btn-small" href="basket.pl" onclick="printBasket(); return false;"><i class="icon-print"></i> Print</a>
<a class="btn btn-small" href="basket.pl" onclick="delBasket('popup'); return false;"><i class="icon-trash"></i> Empty and close</a>
<a class="btn btn-small close" href="basket.pl"><i class="icon-remove-sign"></i> Hide window</a>
| <a href="#" onclick="placeHold(); return false;">Place hold</a>
[% END %]
+[% IF CAN_user_tools_records_batchdel %]
+ | <a href="#" onclick="batchDelete(); return false;">Batch delete</a>
+[% END %]
+
</p>[% END %]
<form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
[% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
| <a href="#" onclick="placeHold(); return false;">Place hold</a>
[% END %]
+[% IF CAN_user_tools_records_batchdel %]
+ | <a href="#" onclick="batchDelete(); return false;">Batch delete</a>
+[% END %]
+
[% END %]
</p>
$(this).attr('title', MSG_CANNOT_BE_DELETED)
$(this).attr('disabled', true);
$(this).attr('checked', false);
- $(this).parents('tr').find('td').css('background-color', 'red');
+ $(this).parents('tr').find('td').css('background-color', '#ffff99');
});
[% END %]
[% ELSIF message.code == 'authority_not_exists' %]
The authority id [% message.authid %] does not exist in the database.
[% ELSIF message.code == 'item_issued' %]
- At least one item issued for the biblio [% message.biblionumber %].
+ At least one item is checked out on bibliographic record [% message.biblionumber %].
[% ELSIF message.code == 'reserve_not_cancelled' %]
- The biblio [% message.biblionumber %] has not been deleted. A reserve (reserve_id [% message.reserve_id %]) caused an error on cancel.
+ Bibliographic record [% message.biblionumber %] was not deleted. A hold could not be canceled (reserve_id [% message.reserve_id %]).
[% ELSIF message.code == 'item_not_deleted' %]
- The biblio [% message.biblionumber %] has not been deleted. An item (itemnumber [% message.itemnumber %]) caused an error on delete.
+ The bibliographic record [% message.biblionumber %] was not deleted. An error was encountered when deleting an item (itemnumber [% message.itemnumber %]).
[% ELSIF message.code == 'biblio_not_deleted' %]
- The biblio [% message.biblionumber %] has not been deleted. An error occurred on deleting it.
+ Bibliographic record [% message.biblionumber %] was not deleted. An error occurred.
[% ELSIF message.code == 'authority_not_deleted' %]
- The authority [% message.authid %] has not been deleted. An error occurred on deleting it.
+ Authority record [% message.authid %] was not deleted. An error occurred.
[% ELSIF message.code == 'biblio_deleted' %]
- The biblio [% message.biblionumber %] has successfully been deleted.
+ Bibliographic record [% message.biblionumber %] has been deleted successfully.
[% ELSIF message.code == 'authority_deleted' %]
- The authority [% message.authid %] has successfully been deleted.
+ Authority [% message.authid %] has been deleted successfully.
[% END %]
[% IF message.error %]
- (The error was: [% message.error%], see the Koha logfile for more information).
+ (The error was: [% message.error%], see the Koha log file for more information).
[% END %]
</div>
[% END %]
<fieldset class="rows">
<legend>Record type</legend>
<ol>
- <li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
+ <li><label for="biblio_type">Bibliographic: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li>
<li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
</ol>
</fieldset>
<th>Title</th>
<th>Items</th>
<th>Holds</th>
- <th>Issues</th>
+ <th>Checkouts</th>
</tr>
</thead>
<tbody>
[% FOR biblio IN records %]
<tr>
- <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>
- <td>[% biblio.biblionumber %]</td>
- <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></td>
+ <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>
+ <td><label for="record_id_[% biblio.biblionumber %]">[% biblio.biblionumber %]</label></td>
+ <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>
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.itemnumbers.size %]</a></td>
<td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.reserves.size %]</a></td>
<td><a href="/cgi-bin/koha/catalogue/issuehistory.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.issues_count %]</a></td>
[% END %]
</tbody>
</table>
- <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 bibliographic records, attached subscriptions, existing holds, and attached items!</div>
[% ELSE %]
<div id="toolbar">
<a id="selectall" href="#">Select all</a>
<td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td>
<td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td>
<td>[% PROCESS authresult summary=authority.summary %]</td>
- <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>
+ <td><a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% authority.authid %]">[% authority.count_usage %] record(s)</a></td>
</tr>
[% END %]
</tbody>
</fieldset>
</form>
[% ELSE %]
- There is no record ids defined.
+ There are no record ids defined.
[% END %]
[% ELSIF op == 'report' %]
[% IF report.total_records == report.total_success %]
- All records have successfully been deleted!
+ All records have been deleted successfully!
[% ELSIF report.total_success == 0 %]
- No record has been deleted, some errors occurred.
+ No record has been deleted. An error occurred.
[% ELSE %]
- [% report.total_success %] / [% report.total_records %] records have successfully been deleted but some errors occurred.
+ [% report.total_success %] / [% report.total_records %] records have been deleted successfully but some errors occurred.
[% END %]
<p><a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
[% ELSE %]
[% IF CAN_user_tools_records_batchdel %]
<dt><a href="/cgi-bin/koha/tools/batch_delete_records.pl">Batch record deletion</a></dt>
- <dd>Delete a batch of records (biblios or authorities)</dd>
+ <dd>Delete a batch of records (bibliographic or authority)</dd>
[% END %]
[% IF ( CAN_user_tools_export_catalog ) %]
};
next;
}
+ my $record = &GetMarcBiblio( $record_id );
+ $biblio->{subtitle} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $record_id ) );
$biblio->{itemnumbers} = C4::Items::GetItemnumbersForBiblio( $record_id );
$biblio->{reserves} = C4::Reserves::GetReservesFromBiblionumber({ biblionumber => $record_id });
$biblio->{issues_count} = C4::Biblio::CountItemsIssued( $record_id );