From 23850f8e35550a4583c4c09c6d9d9215f2d9e1b7 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 20 Feb 2025 08:14:22 +0000 Subject: [PATCH] Bug 32051: Rename Library to Contact for one public library Content-Type: text/plain; charset=utf-8 Note: I am using $rs in the script to prevent searching branches again unneeded. And pass public_count to opac-library.tt to prevent another call of Branches.all (for bread crumbs), like masthead already does btw. Test plan: [1] Have two (or more) public libraries. Verify that you see Libraries on the OPAC home page and that when clicking Libraries, you first have the library list. Are the bread crumbs as expected? Click a library on that list. Do you get its details? Are the bread crumbs as expected? [2] Now have only one public library. Verify that you see Contact on the home page. And that when clicking Contact you go directly to the library details without the intermediate library list. Are the bread crumbs still as expected (with Contact instead of Libraries)? Signed-off-by: Marcel de Rooy --- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt | 6 +++++- opac/opac-library.pl | 9 +++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index e624134bf5..911c774de6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -427,7 +427,7 @@