[Bug 27067] New: Add option to hide branch from opac-library page
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27067 Bug ID: 27067 Summary: Add option to hide branch from opac-library page Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: lucas@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org The OPAC library page (/cgi-bin/koha/opac-library.pl) shows all library branches. Often libraries have branches like WAREHOUSE, STORAGE, OR QUARANTINE that they would rather not show on that page. There should be a way to hide them. Maybe a checkbox option on the branches.tt like "Hide this branch from OPAC"? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27067 --- Comment #1 from Lucas Gass <lucas@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27067 Lisette Scheer <lisetteslatah@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisetteslatah@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27067 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gmcharlt@gmail.com Component|OPAC |System Administration Assignee|oleonard@myacpl.org |koha-bugs@lists.koha-commun | |ity.org -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27067 Sally <sally.healey@cheshiresharedservices.gov.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sally.healey@cheshireshared | |services.gov.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27067 Holly <hc@interleaf.ie> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED CC| |hc@interleaf.ie --- Comment #2 from Holly <hc@interleaf.ie> --- *** This bug has been marked as a duplicate of bug 26834 *** -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org