From 6186c5477c5ad51e15465b8e7801ac7318a9c2df Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 25 Apr 2023 21:34:28 +0000 Subject: [PATCH] Bug 33612: Fix cat-search.inc and remove home-search.inc To test: 1. Setup a staff member with staff access permission but no circulate permissions. 2. Log in as that and on the intranet-home page notice that 'Search patron' bar across the top is not visible by default. 3. Click the 'Search patrons' link at the top, now you see the search bar. 4. This is also true on the item search page. 5. Apply patch 6. Try looking at the intranet home and item search pages again, the search bar should be expanded by default. 7. git grep 'home-search.inc' , this include should be gone along with all references to it. 8. Log in as a superlibrarian and make sure the top search bars still seem correct and default to the correct ones. https://bugs.koha-community.org/show_bug.cgi?id=33584 --- .../prog/en/includes/cat-search.inc | 5 +++ .../prog/en/includes/home-search.inc | 40 ------------------- .../prog/en/modules/catalogue/itemsearch.tt | 2 +- .../prog/en/modules/intranet-main.tt | 2 +- 4 files changed, 7 insertions(+), 42 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc index 513cf06b3e..89cc2841e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc @@ -24,6 +24,11 @@ Renew [% END %] + [% IF ( CAN_user_borrowers_edit_borrowers ) %] +
  • + Search patrons +
  • + [% END %] [% IF ( CAN_user_catalogue ) %]