Bugzilla – Attachment 173001 Details for
Bug 15728
Hide component parts from search result
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15728: Add system preference ShowComponentRecordsFacet
Bug-15728-Add-system-preference-ShowComponentRecor.patch (text/plain), 3.98 KB, created by
Lari Taskula
on 2024-10-19 13:35:16 UTC
(
hide
)
Description:
Bug 15728: Add system preference ShowComponentRecordsFacet
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2024-10-19 13:35:16 UTC
Size:
3.98 KB
patch
obsolete
>From f6982c38fddfc8c812364b65b0741317c09475ba Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Fri, 18 Oct 2024 20:56:58 +0000 >Subject: [PATCH] Bug 15728: Add system preference ShowComponentRecordsFacet > >This controls the visibility of component records facet both in OPAC >and staff interface. >--- > ...8-add-showcomponentrecordsfacet-syspref.pl | 22 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../admin/preferences/cataloguing.pref | 9 +++++++- > 3 files changed, 31 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug-15728-add-showcomponentrecordsfacet-syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug-15728-add-showcomponentrecordsfacet-syspref.pl b/installer/data/mysql/atomicupdate/bug-15728-add-showcomponentrecordsfacet-syspref.pl >new file mode 100755 >index 0000000000..6a509236c4 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug-15728-add-showcomponentrecordsfacet-syspref.pl >@@ -0,0 +1,22 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "15728", >+ description => "Add an option to hide component records from search results.", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences >+ (`variable`, `value`, `options`, `explanation`, `type` ) >+ VALUES >+ ('ShowComponentRecordsFacet', 'nowhere', 'nowhere|staff|opac|both', 'Where should we display component records facet', 'Choice') >+ } >+ ); >+ >+ say $out "Added new system preference 'ShowComponentRecordsFacet'"; >+ }, >+}; >\ No newline at end of file >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 66c7b008f2..854c2cdda1 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -719,6 +719,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'), >+('ShowComponentRecordsFacet', 'nowhere', 'nowhere|staff|opac|both','Where should we display component records facet','Choice'), > ('ShowHeadingUse', '0', NULL, 'Show whether 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/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref >index ffd9b7e549..a00c644218 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref >@@ -324,7 +324,14 @@ Cataloging: > staff: "staff interface" > opac: "OPAC" > both: "both staff interface and OPAC" >- - "record detail pages." >+ - "record detail pages and display facet in" >+ - pref: ShowComponentRecordsFacet >+ choices: >+ nowhere: "nowhere" >+ staff: "staff interface" >+ opac: "OPAC" >+ both: "both staff interface and OPAC" >+ - "search results." > - "A maximum of" > - pref: MaxComponentRecords > - "records will be displayed." >-- >2.34.1
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 15728
: 173001 |
173002
|
173003
|
173004
|
173005
|
173007
|
173008