|
Lines 27-33
Link Here
|
| 27 |
function addToShelf() { window.open('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber=[% biblionumber %]','Add_to_virtualshelf','width=500,height=400,toolbar=false,scrollbars=yes'); |
27 |
function addToShelf() { window.open('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber=[% biblionumber %]','Add_to_virtualshelf','width=500,height=400,toolbar=false,scrollbars=yes'); |
| 28 |
} |
28 |
} |
| 29 |
function printBiblio() {window.print(); } |
29 |
function printBiblio() {window.print(); } |
| 30 |
[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
30 |
[% IF CAN_user_editcatalogue_edit_catalogue or CAN_user_editcatalogue_delete_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
| 31 |
function confirm_deletion() { |
31 |
function confirm_deletion() { |
| 32 |
var count = [% count %]; |
32 |
var count = [% count %]; |
| 33 |
var holdcount = [% holdcount %]; |
33 |
var holdcount = [% holdcount %]; |
|
Lines 60-71
Link Here
|
| 60 |
if ( count > 0 || holdcount > 0 ){ |
60 |
if ( count > 0 || holdcount > 0 ){ |
| 61 |
return false; |
61 |
return false; |
| 62 |
} else { |
62 |
} else { |
| 63 |
window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&biblionumber=[% biblionumber %]"; |
63 |
deleteBiblio([% biblionumber %]); |
| 64 |
} |
64 |
} |
| 65 |
} else { |
65 |
} else { |
| 66 |
return false; |
66 |
return false; |
| 67 |
} |
67 |
} |
| 68 |
} |
68 |
} |
|
|
69 |
function deleteBiblio (biblionumber) { |
| 70 |
$.ajax({ |
| 71 |
"cache": false, |
| 72 |
"headers": {}, |
| 73 |
"method": "delete", |
| 74 |
"type":"delete", |
| 75 |
"url": "/api/v1/biblios/"+biblionumber, |
| 76 |
"dataType": "json", |
| 77 |
"success": function (data, textStatus, jqXHR) { |
| 78 |
window.location="/cgi-bin/koha/catalogue/search.pl"; |
| 79 |
}, |
| 80 |
"error": function (jqXHR, textStatus, errorThrown) { |
| 81 |
var errorObject = $.parseJSON( jqXHR.responseText ); |
| 82 |
if (!errorObject || !errorObject.error) { |
| 83 |
alert(jqXHR.responseText); |
| 84 |
} |
| 85 |
else { |
| 86 |
alert(errorObject.error); |
| 87 |
} |
| 88 |
} |
| 89 |
}); |
| 90 |
} |
| 69 |
[% END %] |
91 |
[% END %] |
| 70 |
|
92 |
|
| 71 |
[% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
93 |
[% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
|
Lines 135-141
Link Here
|
| 135 |
|
157 |
|
| 136 |
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || |
158 |
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || |
| 137 |
CAN_user_serials_create_subscription ) %] |
159 |
CAN_user_serials_create_subscription ) %] |
| 138 |
<div class="btn-group"> |
160 |
<div id="newDropdownContainer" class="btn-group"> |
| 139 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New <span class="caret"></span></button> |
161 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-plus"></i> New <span class="caret"></span></button> |
| 140 |
<ul class="dropdown-menu"> |
162 |
<ul class="dropdown-menu"> |
| 141 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
163 |
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %] |
|
Lines 159-166
CAN_user_serials_create_subscription ) %]
Link Here
|
| 159 |
</div> |
181 |
</div> |
| 160 |
[% END %] |
182 |
[% END %] |
| 161 |
|
183 |
|
| 162 |
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items || CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel ) or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
184 |
[% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_delete_catalogue || CAN_user_editcatalogue_edit_items || CAN_user_tools_items_batchmod || CAN_user_tools_items_batchdel ) or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
| 163 |
<div class="btn-group"> |
185 |
<div id="editDropdownContainer" class="btn-group"> |
| 164 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-pencil"></i> Edit <span class="caret"></span></button> |
186 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-pencil"></i> Edit <span class="caret"></span></button> |
| 165 |
<ul class="dropdown-menu"> |
187 |
<ul class="dropdown-menu"> |
| 166 |
[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
188 |
[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
|
Lines 197-203
CAN_user_serials_create_subscription ) %]
Link Here
|
| 197 |
<li><a href="#" id="z3950copy">Replace record via Z39.50/SRU</a></li> |
219 |
<li><a href="#" id="z3950copy">Replace record via Z39.50/SRU</a></li> |
| 198 |
[% END %] |
220 |
[% END %] |
| 199 |
|
221 |
|
| 200 |
[% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
222 |
[% IF CAN_user_editcatalogue_edit_catalogue or CAN_user_editcatalogue_delete_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] |
| 201 |
[% IF ( count ) %] |
223 |
[% IF ( count ) %] |
| 202 |
<li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% count %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a></li> |
224 |
<li class="disabled"><a id="deletebiblio" data-toggle="tooltip" data-placement="left" title="[% count %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a></li> |
| 203 |
[% ELSE %] |
225 |
[% ELSE %] |
|
Lines 217-223
CAN_user_serials_create_subscription ) %]
Link Here
|
| 217 |
</div> |
239 |
</div> |
| 218 |
[% END %] |
240 |
[% END %] |
| 219 |
|
241 |
|
| 220 |
<div class="btn-group"> |
242 |
<div id="saveDropdownContainer" class="btn-group"> |
| 221 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-download-alt"></i> Save <span class="caret"></span></button> |
243 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="icon-download-alt"></i> Save <span class="caret"></span></button> |
| 222 |
<ul class="dropdown-menu"> |
244 |
<ul class="dropdown-menu"> |
| 223 |
<li><a href="/cgi-bin/koha/catalogue/export.pl?format=bibtex&op=export&bib=[% biblionumber %]">BIBTEX</a></li> |
245 |
<li><a href="/cgi-bin/koha/catalogue/export.pl?format=bibtex&op=export&bib=[% biblionumber %]">BIBTEX</a></li> |
|
Lines 232-238
CAN_user_serials_create_subscription ) %]
Link Here
|
| 232 |
</div> |
254 |
</div> |
| 233 |
|
255 |
|
| 234 |
[% IF ( virtualshelves && intranetbookbag ) %] |
256 |
[% IF ( virtualshelves && intranetbookbag ) %] |
| 235 |
<div class="btn-group"> |
257 |
<div id="addtoDropdownContainer" class="btn-group"> |
| 236 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">Add to <span class="caret"></span></button> |
258 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">Add to <span class="caret"></span></button> |
| 237 |
<ul class="dropdown-menu"> |
259 |
<ul class="dropdown-menu"> |
| 238 |
<li><a href="#" id="addtocart">Cart</a></li> |
260 |
<li><a href="#" id="addtocart">Cart</a></li> |
|
Lines 250-256
CAN_user_serials_create_subscription ) %]
Link Here
|
| 250 |
[% IF ( CAN_user_reserveforothers ) %] |
272 |
[% IF ( CAN_user_reserveforothers ) %] |
| 251 |
[% UNLESS ( norequests ) %] |
273 |
[% UNLESS ( norequests ) %] |
| 252 |
[% IF ( holdfor ) %] |
274 |
[% IF ( holdfor ) %] |
| 253 |
<div class="btn-group"> |
275 |
<div id="placeholdDropdownContainer" class="btn-group"> |
| 254 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"> |
276 |
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"> |
| 255 |
<i class="icon-hold"></i> |
277 |
<i class="icon-hold"></i> |
| 256 |
Place hold |
278 |
Place hold |