[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
Wed Nov 18 21:50:57 CET 2020


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

--- Comment #11 from Mark Hofstetter <koha at trust-box.at> ---
until the patch is in core you may use

    // "if" statment may/has to be removed when 
    // https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27029
    // is in koha
    var biblionumber = $("div#catalogue_detail_biblio").data("biblionumber");
    if (!biblionumber) {
            var x = document.getElementsByClassName("unapi-id")[0]
                        .getAttribute("title");
            biblionumber = x.split(':')[2];
    }

see https://github.com/HKS3/koha-plugin-subordinate-items/

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


More information about the Koha-bugs mailing list