Summary: | Add option to hide branch from opac-library page | ||
---|---|---|---|
Product: | Koha | Reporter: | Lucas Gass (lukeg) <lucas> |
Component: | System Administration | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | gmcharlt, hc, lisettepalouse+koha, sally.healey |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Lucas Gass (lukeg)
2020-11-20 16:54:32 UTC
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(); }) } |