bug 10356: improve display of serial issue dates in staff bib details page
This patch adds the date published to the subscriptions tab in the staff interface bib display and renames the former "Date" column to "Date arrived". Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
7010fd1d29
commit
97bbf04757
|
|
@ -841,7 +841,7 @@ sub GetLatestSerials {
|
|||
my $dbh = C4::Context->dbh;
|
||||
|
||||
# status = 2 is "arrived"
|
||||
my $strsth = "SELECT serialid,serialseq, status, planneddate, notes
|
||||
my $strsth = "SELECT serialid,serialseq, status, planneddate, publisheddate, notes
|
||||
FROM serial
|
||||
WHERE subscriptionid = ?
|
||||
AND (status =2 or status=4)
|
||||
|
|
@ -853,6 +853,7 @@ sub GetLatestSerials {
|
|||
while ( my $line = $sth->fetchrow_hashref ) {
|
||||
$line->{ "status" . $line->{status} } = 1; # fills a "statusX" value, used for template status select list
|
||||
$line->{"planneddate"} = format_date( $line->{"planneddate"} );
|
||||
$line->{"publisheddate"} = format_date( $line->{"publisheddate"} );
|
||||
push @serials, $line;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -631,7 +631,8 @@ function verify_images() {
|
|||
<table>
|
||||
<tr>
|
||||
<th>Issue #</th>
|
||||
<th>Date</th>
|
||||
<th>Date arrived</th>
|
||||
<th>Date published</th>
|
||||
<th>Status</th>
|
||||
<th>Note</th>
|
||||
</tr>
|
||||
|
|
@ -639,6 +640,7 @@ function verify_images() {
|
|||
<tr>
|
||||
<td>[% latestserial.serialseq %]</td>
|
||||
<td>[% latestserial.planneddate %]</td>
|
||||
<td>[% latestserial.publisheddate%]</td>
|
||||
<td>
|
||||
[% IF ( latestserial.status1 ) %]Expected[% END %]
|
||||
[% IF ( latestserial.status2 ) %]Arrived[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue