Bug 33040: Add "Date published (text)" to serials tab on record view (detail.pl)

Some libraries would like to see the "Date published (text)" in the serials tab on the "Normal" record view ( aka catalogue/detail.pl ).

Test Plan:
1) View the serials tab on detail.pl for a subscription where the latest
   serial has a "Date published (text)" field populated.
2) Apply this patch
3) Restart all the thigns!
4) Browse to detail.pl for that record
5) View the Subscriptions tab
6) Note the "Date published (text)" column exists now!

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b3b33960da)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
This commit is contained in:
Kyle Hall 2023-02-22 10:55:41 -05:00 committed by Jacob O'Mara
parent 5de9cb41df
commit e640ddc20e
2 changed files with 3 additions and 1 deletions

View File

@ -746,7 +746,7 @@ sub GetLatestSerials {
my $dbh = C4::Context->dbh;
my $statuses = join( ',', ( ARRIVED, MISSING_STATUSES ) );
my $strsth = "SELECT serialid,serialseq, status, planneddate, publisheddate, notes
my $strsth = "SELECT serialid,serialseq, status, planneddate, publisheddate, publisheddatetext, notes
FROM serial
WHERE subscriptionid = ?
AND status IN ($statuses)

View File

@ -795,6 +795,7 @@ Note that permanent location is a code, and location may be an authval.
<th>Issue #</th>
<th>Date arrived</th>
<th>Date published</th>
<th>Date published (text)</th>
<th>Status</th>
<th>Note</th>
</tr>
@ -803,6 +804,7 @@ Note that permanent location is a code, and location may be an authval.
<td>[% latestserial.serialseq | html %]</td>
<td data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
<td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
<td>[% latestserial.publisheddatetext | html %]</td>
<td>
[% IF ( latestserial.status1 ) %]<span>Expected</span>[% END %]
[% IF ( latestserial.status2 ) %]<span>Arrived</span>[% END %]