[Koha-bugs] [Bug 31654] Hide non-public libraries from MastheadLibraryPulldown

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 24 16:09:26 CEST 2022


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

sandboxes at biblibre.com <sandboxes at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #141335|0                           |1
        is obsolete|                            |

--- Comment #11 from sandboxes at biblibre.com <sandboxes at biblibre.com> ---
Created attachment 142514
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142514&action=edit
Bug 31654: Hide non-public libraries from MastheadLibraryPulldown
(bug_31654_hide_nonpublic_libs)

Do not list library in masthead and advanced search if branches.public is false

Test Plan:

* Set OpacAddMastheadLibraryPulldown to "Add"
* Go to Administration -> Libraries, edit "Fairfield", set "public" = "no" (at
the end of the form)
* Or connect to DB and run
  update branches set public = 0 where branchcode like 'F%';
  This will set all three libraries starting with F to non-public
* open OPAC
* The "All libraries" Pulldown in the Header (between search slot and search
button) still shows the non-public libraries
* Go to OPAC -> Advanced Search, scroll to "Location and availability": The
selectbox still shows the non-public libraries

Now apply the patch

* Open OPAC
* The "All libraries" Pulldown in the Header now should not contain the
libraries set to "public = no"
* And in the Advanced Search "Location and availability" pulldown those
libraries should also not be shown.

Sponsored-by: Steiermärkische Landesbibliothek

Signed-off-by: Claude <claude.demeure at mailo.com>

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


More information about the Koha-bugs mailing list