Bugzilla – Attachment 178774 Details for
Bug 37883
Add a filter for staff search results to filter by library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference
Bug-37883-Add-FilterSearchResultsByLoggedInBranch-.patch (text/plain), 4.46 KB, created by
Lucas Gass (lukeg)
on 2025-02-26 23:11:15 UTC
(
hide
)
Description:
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-02-26 23:11:15 UTC
Size:
4.46 KB
patch
obsolete
>From b6e131e084914139d37e13f9a7afa8d93f0839bf Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 10 Sep 2024 19:40:20 +0000 >Subject: [PATCH] Bug 37883: Add FilterSearchResultsByLoggedInBranch system > preference > >Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> >--- > .../data/mysql/atomicupdate/bug_37883.pl | 21 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 3 ++- > .../admin/preferences/staff_interface.pref | 8 ++++++- > 3 files changed, 30 insertions(+), 2 deletions(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_37883.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_37883.pl b/installer/data/mysql/atomicupdate/bug_37883.pl >new file mode 100644 >index 00000000000..ba14a6b278b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_37883.pl >@@ -0,0 +1,21 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "37883", >+ description => "Add system preference FilterSearchResultsByLoggedInBranch", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) >+ VALUES ('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo') >+ } >+ ); >+ >+ say $out "Added new system preference 'FilterSearchResultsByLoggedInBranch'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index c4bb3ca9a7d..5db702211b2 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -277,6 +277,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('FallbackToSMSIfNoEmail', 0, 'Enable|Disable', 'Send messages by SMS if no patron email is defined', 'YesNo'), > ('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo'), > ('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'), >+('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo'), > ('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'), > ('FinePaymentAutoPopup','0',NULL,'If enabled, automatically display a print dialog for a payment receipt when making a payment.','YesNo'), > ('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'), >@@ -874,4 +875,4 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'), > ('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'), > ('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea') >-; >+; >\ No newline at end of file >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >index 8da36fceb14..a1e5398f72b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref >@@ -134,6 +134,12 @@ Staff interface: > - Open Document Spreadsheet (ODS) as download format in reports. > > Options: >+ - >+ - pref: FilterSearchResultsByLoggedInBranch >+ choices: >+ 1: Do >+ 0: "Don't" >+ - add a filter to the location column on staff interface search results to filter items by the logged in user branch. > - > - pref: viewMARC > choices: >@@ -216,4 +222,4 @@ Staff interface: > "enforced": Enforce > "enabled": Enable > "disabled": "Don't enable" >- - two-factor authentication (2FA) for staff members. >+ - two-factor authentication (2FA) for staff members. >\ No newline at end of file >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37883
:
171256
|
171257
|
171261
|
171286
|
171287
|
171289
|
171291
|
171406
|
171407
|
171408
|
171409
|
171410
|
171411
|
176697
|
177306
|
177784
|
177785
|
177786
|
177787
|
177788
|
177789
|
177790
|
177791
|
178772
|
178773
| 178774 |
178775
|
178776
|
178777