Bugzilla – Attachment 58472 Details for
Bug 17821
due date in intranet search results should use TT date plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17821 - due date in intranet search results should use TT date plugin
Bug-17821---due-date-in-intranet-search-results-sh.patch (text/plain), 3.33 KB, created by
Fridolin Somers
on 2016-12-28 14:42:01 UTC
(
hide
)
Description:
Bug 17821 - due date in intranet search results should use TT date plugin
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2016-12-28 14:42:01 UTC
Size:
3.33 KB
patch
obsolete
>From 3de9f7e70b03f2ea1f4a52e235d45749bb0f2643 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 28 Dec 2016 15:08:42 +0100 >Subject: [PATCH] Bug 17821 - due date in intranet search results should use TT > date plugin > >Intranet search results displays due date from item onloan. >This should use the TT date plugin. > >Test plan : >- set syspref dateformat not on yyyy-mm-dd, for example dd/mm/yyyy >- checkout an item >- at intranet, perform a search where you see the item >=> You must see : "date due : dd/mm/yyyy" >--- > C4/Search.pm | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 4270c82..242a0ac 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -2095,7 +2095,7 @@ sub searchResults { > { > $onloan_count++; > my $key = $prefix . $item->{onloan} . $item->{barcode}; >- $onloan_items->{$key}->{due_date} = output_pref( { str => $item->{onloan}, dateonly => 1 } ); >+ $onloan_items->{$key}->{due_date} = $item->{onloan}; > $onloan_items->{$key}->{count}++ if $item->{$hbranch}; > $onloan_items->{$key}->{branchname} = $item->{branchname}; > $onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 0b3c2d3..7eb6619 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -1,5 +1,6 @@ > [% USE Koha %] > [% USE Biblio %] >+[% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Catalog › [% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -669,7 +670,7 @@ var holdForPatron = function () { > [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname %][% END %] > [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %] > [% IF ( onloan_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[% onloan_items_loo.itemcallnumber |uri %]%22">[% onloan_items_loo.itemcallnumber %]</a>][% END %] >- ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date %] >+ ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %] > [% IF item_level_itypes && onloan_items_loo.description %] > <br/>[% onloan_items_loo.description %] > [% END %] >-- >2.7.4
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 17821
:
58472
|
58567
|
62167