From 1c0faeb7b2f4bccad2670c203e03ecfca9e0e74b Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Mon, 19 Nov 2018 11:25:24 +0000 Subject: [PATCH] Bug 20600: (follow-up) Rebase on current master Significant things have changed in master due to ILL enhancement patches being pushed. This patch rebases this bug on top of them Signed-off-by: Katrin Fischer --- Koha/REST/V1/Illrequests.pm | 29 +- .../prog/en/modules/ill/ill-requests.tt | 541 +-------------------- 2 files changed, 35 insertions(+), 535 deletions(-) diff --git a/Koha/REST/V1/Illrequests.pm b/Koha/REST/V1/Illrequests.pm index aeb25b8578..8746bf17f7 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -56,22 +56,6 @@ sub list { # Get all requests my @requests = Koha::Illrequests->as_list; - # Create new "formatted" columns for each date column - # that needs formatting - foreach $req(@requests) { - foreach my $field(@format_dates) { - if (defined $req->{$field}) { - $req->{$field . "_formatted"} = format_sqldatetime( - $req->{$field}, - undef, - undef, - 1 - ); - } - } - - } - # Identify patrons & branches that # we're going to need and get them my $to_fetch = { @@ -126,6 +110,19 @@ sub list { foreach my $req(@requests) { my $to_push = $req->unblessed; $to_push->{id_prefix} = $req->id_prefix; + # Create new "formatted" columns for each date column + # that needs formatting + foreach my $field(@format_dates) { + if (defined $to_push->{$field}) { + $to_push->{$field . "_formatted"} = format_sqldatetime( + $to_push->{$field}, + undef, + undef, + 1 + ); + } + } + foreach my $p(@{$patron_arr}) { if ($p->{borrowernumber} == $req->borrowernumber) { $to_push->{patron} = { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 60db7c3926..f4357ec49e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -7,518 +7,7 @@ [% INCLUDE 'doc-head-open.inc' %] Koha › ILL requests [% INCLUDE 'doc-head-close.inc' %] -[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] [% Asset.css("css/datatables.css") | $raw %] -[% INCLUDE 'datatables.inc' %] -[% INCLUDE 'calendar.inc' %] - @@ -979,6 +468,7 @@ Updated on Request number Comments + Patron barcode @@ -1004,6 +494,7 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'calendar.inc' %] + [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]