[Koha-bugs] [Bug 27029] Detail page missing Javascript accessible biblionumber value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 16 01:31:04 CET 2020


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

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Cook from comment #1)
> <div id="catalogue_detail_biblio" class="maincontent" data-biblionumber="29">
> 

Then you can grab the biblionumber as easily as doing the following:

document.querySelector("div#catalogue_detail_biblio").dataset.biblionumber;

Or jquery:

$("div#catalogue_detail_biblio").attr("data-biblionumber");

$("div#catalogue_detail_biblio").data("biblionumber");

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


More information about the Koha-bugs mailing list