[Koha-bugs] [Bug 27067] Add option to hide branch from opac-library page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 20 17:57:29 CET 2020


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

--- Comment #1 from Lucas Gass <lucas at bywatersolutions.com> ---
In the short term I am using this jQuery in OPACUserJS to hide unwanted
branches:


if ( $('#opac-library').length ) {
    let branches_to_hide = ['STORAGE' , 'OUTREACH' , 'BOOKMOBILE'];
    branches_to_hide.forEach(function(item){
        $('a[href*="'+item+'"]').parent().hide();
        $('a[href*="'+item+'"]').parent().next('div').hide();
        $('a[href*="'+item+'"]').parent().prev('hr').hide();
    })
}

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


More information about the Koha-bugs mailing list