Bugzilla – Attachment 184501 Details for
Bug 40245
Support option to display firstname in memberresultst
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40245: Add new system preference ShowFirstIfDifferentThanPreferred
Bug-40245-Add-new-system-preference-ShowFirstIfDif.patch (text/plain), 3.75 KB, created by
CJ Lynce
on 2025-07-22 18:56:41 UTC
(
hide
)
Description:
Bug 40245: Add new system preference ShowFirstIfDifferentThanPreferred
Filename:
MIME Type:
Creator:
CJ Lynce
Created:
2025-07-22 18:56:41 UTC
Size:
3.75 KB
patch
obsolete
>From d4b4a7b0fd714ebac6d2c1f2c7ad4f66ab4c1d5e Mon Sep 17 00:00:00 2001 >From: CJ Lynce <cj.lynce@westlakelibrary.org> >Date: Tue, 22 Jul 2025 16:33:07 +0000 >Subject: [PATCH] Bug 40245: Add new system preference > ShowFirstIfDifferentThanPreferred > >Adds a new system preference ShowFirstIfDifferentThanPreferred to allow a > patron's firstname to be shown in search results when different than > their preferred name. >--- > .../data/mysql/atomicupdate/bug_40425.pl | 20 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/patrons.pref | 6 ++++++ > 3 files changed, 27 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_40425.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_40425.pl b/installer/data/mysql/atomicupdate/bug_40425.pl >new file mode 100755 >index 0000000000..e047a4bcb1 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_40425.pl >@@ -0,0 +1,20 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "40425", >+ description => "Add a system preference ShowFirstIfDifferentThanPreferred", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('ShowFirstIfDifferentThanPreferred','0',NULL,'If ON, a patrons firstname will also show in results if different than their preferred name','YesNo') >+ } >+ ); >+ >+ say $out "Added new system preference 'ShowFirstIfDifferentThanPreferred'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index f2b6d940cc..9eb80917ca 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -744,6 +744,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'), > ('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'), > ('ShowComponentRecords', 'nowhere', 'nowhere|staff|opac|both','In which record detail pages to show list of the component records, as linked via 773','Choice'), >+('ShowFirstIfDifferentThanPreferred','0','','If ON, a patrons firstname will also show in results if different than their preferred name','YesNo'), > ('ShowHeadingUse', '0', NULL, 'Show whether MARC21 authority record contains an established heading that conforms to descriptive cataloguing rules, and can therefore be used as a main/added entry, or subject, or series title', 'YesNo'), > ('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'), > ('showLastPatronCount', '10', '', 'How many patrons should showLastPatron remember', 'Integer'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >index 2ca8899ec3..b99a9d92ff 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >@@ -136,6 +136,12 @@ Patrons: > class: integer > - days. Leave empty to disable this behavior. > - "<br><strong>NOTE:</strong> This system preference requires the misc/cronjobs/cleanup_database.pl cronjob. Ask your system administrator to schedule it." >+ - >+ - pref: ShowFirstIfDifferentThanPreferred >+ choices: >+ 1: Show >+ 0: Hide >+ - "a patron's firstname in search results if their preferred name is different." > > Membership expiry: > - >-- >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 40245
:
184501
|
184502
|
184637
|
184638
|
184639