Bugzilla – Attachment 182969 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: Control display of serial pubdate on detail pages
Bug-40070-Control-display-of-serial-pubdate-on-det.patch (text/plain), 2.71 KB, created by
Marcel de Rooy
on 2025-06-05 08:34:28 UTC
(
hide
)
Description:
Bug 40070: Control display of serial pubdate on detail pages
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-06-05 08:34:28 UTC
Size:
2.71 KB
patch
obsolete
>From 0f101dbf3610e64f51981eceeece6bb636cae367 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 4 Jun 2025 16:24:54 +0200 >Subject: [PATCH] Bug 40070: Control display of serial pubdate on detail pages >Content-Type: text/plain; charset=utf-8 > >Test plan: >Add a serial that creates items. >Receive an issue. >Toggle pref DisplayPublishedDate and verify that publisheddate >is shown or hidden. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../html_helpers/tables/items/catalogue_detail.inc | 8 +++++--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- > 2 files changed, 6 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >index 67440510e6..97db30af20 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc >@@ -498,9 +498,11 @@ > } else if ( serial && serial.serialseq ) { > nodes += '<span class="serialseq">%s</span>'.format(escape_str(serial.serialseq)); > } >- if ( serial && serial.publisheddate ) { >- nodes += ' <span class="pubdate">(%s)</span>'.format($date(serial.publisheddate)); >- } >+ [% IF Koha.Preference('DisplayPublishedDate') %] >+ if ( serial && serial.publisheddate ) { >+ nodes += ' <span class="pubdate">(%s)</span>'.format($date(serial.publisheddate)); >+ } >+ [% END %] > return nodes; > } > }, >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 2cfad9d451..4e58f196d4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -1461,7 +1461,7 @@ > [% ELSIF serial.serialseq %] > <span class="serialseq">[% serial.serialseq | html %]</span> > [% END %] >- [% IF ( serial.publisheddate ) %] >+ [% IF ( Koha.Preference('DisplayPublishedDate') && serial.publisheddate ) %] > <span class="pubdate">([% serial.publisheddate | $KohaDates %])</span> > [% END %] > </td> >-- >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