Bugzilla – Attachment 8308 Details for
Bug 7748
Date not formatted on "Add orders from iso2709 file" page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch #1
0001-Bug-7748-use-of-TT-date-filter-on-addorderiso2709.patch (text/plain), 2.83 KB, created by
Adrien SAURAT
on 2012-03-19 16:12:56 UTC
(
hide
)
Description:
proposed patch #1
Filename:
MIME Type:
Creator:
Adrien SAURAT
Created:
2012-03-19 16:12:56 UTC
Size:
2.83 KB
patch
obsolete
>From 770a25235818e581ad88bcbe5e1ecac2482a1bf3 Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Mon, 19 Mar 2012 17:10:16 +0100 >Subject: [PATCH] Bug 7748: use of TT date filter on addorderiso2709 > >--- > acqui/addorderiso2709.pl | 5 +++-- > .../prog/en/modules/acqui/addorderiso2709.tt | 3 ++- > 2 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl >index 660d633..8d9c0e3 100755 >--- a/acqui/addorderiso2709.pl >+++ b/acqui/addorderiso2709.pl >@@ -41,7 +41,6 @@ use C4::Koha; > use C4::Budgets; > use C4::Acquisition; > use C4::Bookseller qw/GetBookSellerFromId/; >-use C4::Dates; > use C4::Suggestions; # GetSuggestion > use C4::Branch; # GetBranches > use C4::Members; >@@ -343,11 +342,13 @@ sub import_batches_list { > # check if there is at least 1 line still staged > my $stagedList=GetImportBibliosRange($batch->{'import_batch_id'}, undef, undef, 'staged'); > if (scalar @$stagedList) { >+ my ($staged_date, $staged_hour) = split (/ /, $batch->{'upload_timestamp'}); > push @list, { > import_batch_id => $batch->{'import_batch_id'}, > num_biblios => $batch->{'num_biblios'}, > num_items => $batch->{'num_items'}, >- upload_timestamp => $batch->{'upload_timestamp'}, >+ staged_date => $staged_date, >+ staged_hour => $staged_hour, > import_status => $batch->{'import_status'}, > file_name => $batch->{'file_name'}, > comments => $batch->{'comments'}, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index 9b85af3..3e49f1c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -1,3 +1,4 @@ >+[% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Acquisitions › Order Staged MARC Records > [% IF ( batch_details ) %] >@@ -90,7 +91,7 @@ > <td>[% batch_lis.file_name %]</td> > <td>[% batch_lis.comments %]</td> > <td>[% batch_lis.import_status %]</td> >- <td>[% batch_lis.upload_timestamp %]</td> >+ <td>[% batch_lis.staged_date | $KohaDates %] [% batch_lis.staged_hour %]</td> > <td>[% batch_lis.num_biblios %]</td> > <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]">Add orders</a></td> > </tr> >-- >1.7.4.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 7748
: 8308