[Koha-bugs] [Bug 25571] "Bibliographic record not found" when click on Edit item table

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 27 20:25:33 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25571

--- Comment #7 from Marjorie Barry-Vila <marjorie.barry-vila at collecto.ca> ---
(In reply to Jonathan Druart from comment #6)
> 1. Do you see a JS error in the console?
> 
> 2. Does the "Delete item" work?
> 
> 3. The biblionumber value is retrieved in JS:
>  18     var biblionumber = $("input[name='biblionumber']").attr("value");
> from koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js
> 
> Can you edit the source code of the page and search for
>     <input type="hidden" name="biblionumber" value="XXX" />
> (for me at line 866)
> 
> You can also copy the whole source code and attach it here.

Hi,

Sorry to have bothered you for nothing!

Looking at the javascript codes in the intranetuserjs system preference, I saw
that the code that I had adapted from this
https://wiki.koha-community.org/wiki/JQuery_Library#Add_ability_to_search_authority_records_through_ID
for this page brought the problem.

This code worked very well before 19.05.

if (location.pathname.indexOf('cataloguing/addbooks.pl')>-1 ||
location.pathname.indexOf('cataloguing/additem.pl')>-1) {
    $('#breadcrumbs').before('<form
action="/cgi-bin/koha/catalogue/detail.pl"><div id="biblionumber">Rechercher
par numéro de notice: <input size="8" name="biblionumber"> <input
value="Rechercher" type="submit"></div></form>');
$('#biblionumber').css('margin-left','200px');
}


I will modify it so that it no longer brings the error.

thanks again
Marjorie

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list