Bugzilla – Attachment 182970 Details for
Bug 40070
Make appending published date to serial enumeration optional on detail pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40070: Add new preference DisplayPublishedDate
Bug-40070-Add-new-preference-DisplayPublishedDate.patch (text/plain), 3.45 KB, created by
Marcel de Rooy
on 2025-06-05 08:45:47 UTC
(
hide
)
Description:
Bug 40070: Add new preference DisplayPublishedDate
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-06-05 08:45:47 UTC
Size:
3.45 KB
patch
obsolete
>From 6a05d8e58ab7ebb7b03cfc74eb7db5d01e58e807 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 5 Jun 2025 08:47:40 +0200 >Subject: [PATCH] Bug 40070: Add new preference DisplayPublishedDate >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run install or update >Check new preference under Administration > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../data/mysql/atomicupdate/bug_40070.pl | 19 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/serials.pref | 6 ++++++ > 3 files changed, 26 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_40070.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_40070.pl b/installer/data/mysql/atomicupdate/bug_40070.pl >new file mode 100755 >index 0000000000..59a998ffea >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_40070.pl >@@ -0,0 +1,19 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "40070", >+ description => "Add pref DisplayPublishedDate", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('DisplayPublishedDate', '1', NULL, 'Display serial publisheddate on detail pages', 'YesNo') >+ } >+ ); >+ say_success( $out, "Added new system preference DisplayPublishedDate" ); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 09b8afd6fd..69a06fba51 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -227,6 +227,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('DisplayMultiItemHolds','0','','Display the ability to place holds on different items at the same time in staff interface and OPAC','YesNo'), > ('DisplayMultiPlaceHold','1','','Display the ability to place multiple holds or not','YesNo'), > ('DisplayOPACiconsXSLT','1','','If ON, displays the format, audience, and material type icons in XSLT MARC21 results and detail pages in the OPAC.','YesNo'), >+('DisplayPublishedDate', '1', NULL, 'Display serial publisheddate on detail pages', 'YesNo'), > ('DumpSearchQueryTemplate',0,'','Add the search query being passed to the search engine into the template for debugging','YesNo'), > ('DumpTemplateVarsIntranet', '0', NULL , 'If enabled, dump all Template Toolkit variable to a comment in the html source for the staff intranet.', 'YesNo'), > ('DumpTemplateVarsOpac', '0', NULL , 'If enabled, dump all Template Toolkit variable to a comment in the html source for the opac.', 'YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref >index 800a174813..d91b408336 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/serials.pref >@@ -1,5 +1,11 @@ > Serials: > Features: >+ - >+ - pref: DisplayPublishedDate >+ choices: >+ 1: Show >+ 0: "Don't show" >+ - date published for a serial issue (item) on OPAC or staff detail page. > - > - Show > - pref: opacSerialDefaultTab >-- >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 40070
:
182968
|
182969
| 182970 |
182971