Bugzilla – Attachment 138471 Details for
Bug 29983
Display the return claims column in the circulation overdues page (overdue.tt)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29983: Format dates in templates using KohaDates (and display the time part)
Bug-29983-Format-dates-in-templates-using-KohaDate.patch (text/plain), 2.93 KB, created by
Jonathan Druart
on 2022-08-01 14:00:26 UTC
(
hide
)
Description:
Bug 29983: Format dates in templates using KohaDates (and display the time part)
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-08-01 14:00:26 UTC
Size:
2.93 KB
patch
obsolete
>From 87dfd97a042353e585fcb54dd45520c4ccd90454 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 1 Aug 2022 15:43:51 +0200 >Subject: [PATCH] Bug 29983: Format dates in templates using KohaDates (and > display the time part) > >The time part is displayed on the checkout list > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > circ/overdue.pl | 7 +------ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt | 2 +- > 2 files changed, 2 insertions(+), 7 deletions(-) > >diff --git a/circ/overdue.pl b/circ/overdue.pl >index 9e96c4c0130..69750c6bcd2 100755 >--- a/circ/overdue.pl >+++ b/circ/overdue.pl >@@ -311,11 +311,6 @@ if ($noreport) { > my $pattrs = $borrowernumber_to_attributes{$data->{borrowernumber}} || {}; # patron attrs for this borrower > # $pattrs is a hash { attrcode => [ [value,displayvalue], [value,displayvalue]... ] } > >- my $return_claim_created_on = $data->{return_claim_created_on}; >- if ( defined $return_claim_created_on ) { >- $return_claim_created_on = output_pref({ dt => dt_from_string($return_claim_created_on ) }); >- } >- > my @patron_attr_value_loop; # template array [ {value=>v1}, {value=>v2} ... } ] > for my $pattr_filter (grep { ! $_->{isclone} } @patron_attr_filter_loop) { > my @displayvalues = map { $_->[1] } @{ $pattrs->{$pattr_filter->{code}} }; # grab second value from each subarray >@@ -355,7 +350,7 @@ if ($noreport) { > itemcallnumber => $data->{itemcallnumber}, > replacementprice => $data->{replacementprice}, > itemnotes_nonpublic => $data->{itemnotes_nonpublic}, >- return_claim_created_on => $return_claim_created_on, >+ return_claim_created_on => $data->{return_claim_created_on}, > return_claim_id => $data->{return_claim_id}, > enumchron => $data->{enumchron}, > itemtype => $data->{itype}, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >index 3926f80d0b2..04b43cd2107 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >@@ -122,7 +122,7 @@ > <td>[% overdueloo.itemnotes_nonpublic | html %]</td> > <td> > [% IF ( overdueloo.return_claim_created_on ) %] >- <span class="badge">[% overdueloo.return_claim_created_on | html %]</span> >+ <span class="badge">[% overdueloo.return_claim_created_on | $KohaDates with_hours => 1 %]</span> > [% ELSIF Koha.Preference('ClaimReturnedLostValue') %] > <a class="btn btn-default btn-xs claim-returned-btn" data-itemnumber=[% overdueloo.itemnum | html %]> > <i class="fa fa-exclamation-circle"></i> Claim returned >-- >2.25.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 29983
:
130004
|
130036
|
130037
|
130121
|
130240
|
134223
|
136334
|
138470
| 138471 |
138472
|
138801