Lines 51-56
$(document).ready(function(){
Link Here
|
51 |
}); |
51 |
}); |
52 |
}); |
52 |
}); |
53 |
|
53 |
|
|
|
54 |
$("#addnewitem").click(function(){ |
55 |
if ( confirm(_("Are you sure you want to add a new item? Any changes made on this page will be lost.")) ){ |
56 |
window.location.href = "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]"; |
57 |
} |
58 |
}); |
59 |
|
54 |
var columns_settings = [% ColumnsSettings.GetColumns( 'cataloguing', 'additem', 'itemst', 'json' ) %] |
60 |
var columns_settings = [% ColumnsSettings.GetColumns( 'cataloguing', 'additem', 'itemst', 'json' ) %] |
55 |
// Skip the first column |
61 |
// Skip the first column |
56 |
columns_settings.unshift( { cannot_be_toggled: "1" } ); |
62 |
columns_settings.unshift( { cannot_be_toggled: "1" } ); |
Lines 355-361
function confirm_deletion() {
Link Here
|
355 |
<input type="hidden" name="tag" value="[% itemtagfield %]" /> |
361 |
<input type="hidden" name="tag" value="[% itemtagfield %]" /> |
356 |
<input type="hidden" name="subfield" value="[% itemtagsubfield %]" /> |
362 |
<input type="hidden" name="subfield" value="[% itemtagsubfield %]" /> |
357 |
<input type="hidden" name="field_value" value="[% itemnumber %]" /> |
363 |
<input type="hidden" name="field_value" value="[% itemnumber %]" /> |
358 |
<input type="submit" value="Save changes" onclick="return Check(this.form)" /> |
364 |
<input type="submit" value="Save changes" onclick="return Check(this.form)"> |
|
|
365 |
<input type="button" id="addnewitem" value="Add a new item"> |
366 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">Cancel</a> |
359 |
[% END %]</fieldset> |
367 |
[% END %]</fieldset> |
360 |
|
368 |
|
361 |
[%# Fields for fast cataloging %] |
369 |
[%# Fields for fast cataloging %] |
362 |
- |
|
|