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&op=do_search&idx=an,phr&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 errors 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 %] |