View | Details | Raw Unified | Return to bug 36320
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-1 / +1 lines)
Lines 60-66 Link Here
60
            [% END %]
60
            [% END %]
61
61
62
            [% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
62
            [% IF CAN_user_editcatalogue_edit_items or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
63
                <li><a class="dropdown-item" id="edititems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber | html %]">Edit items</a></li>
63
                <li><a class="dropdown-item" id="manageitems" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber | html %]">Manage items</a></li>
64
            [% END %]
64
            [% END %]
65
65
66
            [% IF ( CAN_user_tools_items_batchmod ) %]
66
            [% IF ( CAN_user_tools_items_batchmod ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (+1 lines)
Lines 77-82 Link Here
77
                    </div>
77
                    </div>
78
                [% END %]
78
                [% END %]
79
<h1>Items for [% biblio.title | html %] [% IF ( biblio.author ) %] by [% biblio.author | html %][% END %] (Record #[% biblio.biblionumber | html %])</h1>
79
<h1>Items for [% biblio.title | html %] [% IF ( biblio.author ) %] by [% biblio.author | html %][% END %] (Record #[% biblio.biblionumber | html %])</h1>
80
<a id="newitem_jump" href="#additema"><i class="fa fa-arrow-down"></i> Jump to add item form</a>
80
81
81
[% IF ( barcode_not_unique ) %]<div class="alert alert-warning"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %]
82
[% IF ( barcode_not_unique ) %]<div class="alert alert-warning"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %]
82
[% IF ( no_next_barcode ) %]<div class="alert alert-warning"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %]
83
[% IF ( no_next_barcode ) %]<div class="alert alert-warning"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div>[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js (-1 / +13 lines)
Lines 138-143 $(document).ready(function(){ Link Here
138
            return $("#" + $(this).data("item") + "-delete-item-form").submit();
138
            return $("#" + $(this).data("item") + "-delete-item-form").submit();
139
        }
139
        }
140
    }) ;
140
    }) ;
141
142
    /* On page load, check for location.hash in the page URL */
143
    /* If present the location hash will be used to scroll to the relevant anchor */
144
    var hash = location.hash;
145
    var hashPieces = hash.split('?');
146
    if( hashPieces[0] !== "" ){
147
        $( hashPieces[0] )[0].scrollIntoView();
148
    }
149
150
    $("#newitem_jump").on("click", function(e){
151
        e.preventDefault();
152
        document.getElementById("additema").scrollIntoView();
153
    });
141
});
154
});
142
155
143
function CheckTemplateForm(f) {
156
function CheckTemplateForm(f) {
144
- 

Return to bug 36320