Revert "Bug 36320: Clicking Edit items from catalogue/detail.pl leads to 'Add item' screen"
This reverts commit 71f0dd6ba9.
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
0acc0dffb1
commit
4ac03f9d87
|
|
@ -60,7 +60,7 @@
|
|||
[% END %]
|
||||
|
||||
[% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
|
||||
<li><a class="dropdown-item" id="manageitems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber | html %]">Manage items</a></li>
|
||||
<li><a id="edititems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber | html %]">Edit items</a></li>
|
||||
[% END %]
|
||||
|
||||
[% IF ( CAN_user_tools_items_batchmod ) %]
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@
|
|||
</div>
|
||||
[% END %]
|
||||
<h1>Items for [% biblio.title | html %] [% IF ( biblio.author ) %] by [% biblio.author | html %][% END %] (Record #[% biblio.biblionumber | html %])</h1>
|
||||
<a id="newitem_jump" href="#additema"><i class="fa fa-arrow-down"></i> Jump to add item form</a>
|
||||
|
||||
[% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %]
|
||||
[% IF ( no_next_barcode ) %]<div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %]
|
||||
|
|
|
|||
|
|
@ -138,19 +138,6 @@ $(document).ready(function(){
|
|||
return $("#" + $(this).data("item") + "-delete-item-form").submit();
|
||||
}
|
||||
}) ;
|
||||
|
||||
/* On page load, check for location.hash in the page URL */
|
||||
/* If present the location hash will be used to scroll to the relevant anchor */
|
||||
var hash = location.hash;
|
||||
var hashPieces = hash.split('?');
|
||||
if( hashPieces[0] !== "" ){
|
||||
$( hashPieces[0] )[0].scrollIntoView();
|
||||
}
|
||||
|
||||
$("#newitem_jump").on("click", function(e){
|
||||
e.preventDefault();
|
||||
document.getElementById("additema").scrollIntoView();
|
||||
});
|
||||
});
|
||||
|
||||
function CheckTemplateForm(f) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue