Bugzilla – Attachment 8282 Details for
Bug 7743
Use KohaDates TT plugin in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Update opac-tags.pl to use KohaDates TT plugin
0002-Bug-7743-Update-opac-tags.pl-to-use-KohaDates-TT-plu.patch (text/plain), 1.98 KB, created by
Julian Maurice
on 2012-03-19 14:46:30 UTC
(
hide
)
Description:
Update opac-tags.pl to use KohaDates TT plugin
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-03-19 14:46:30 UTC
Size:
1.98 KB
patch
obsolete
>From 270013a93358fcbcd90b0cc5e73582cb8559f0d7 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 19 Mar 2012 14:01:14 +0100 >Subject: [PATCH 2/8] Bug 7743: Update opac-tags.pl to use KohaDates TT plugin > >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt | 4 +++- > opac/opac-tags.pl | 2 -- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt >index e93e00a..c1ec044 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt >@@ -1,3 +1,5 @@ >+[% USE KohaDates %] >+ > [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Tags > [% INCLUDE 'doc-head-close.inc' %] > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> >@@ -117,7 +119,7 @@ > </td> > <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% MY_TAG.biblionumber %]"> > [% MY_TAG.bib_summary |html %]</a></td> >- <td>[% MY_TAG.date_created_display %]</td> >+ <td>[% MY_TAG.date_created | $KohaDates %]</td> > <td><input type="submit" name="del[% MY_TAG.tag_id %]" value="Delete" /></td> > </tr> > [% END %]</tbody> >diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl >index b5ce340..0953f82 100755 >--- a/opac/opac-tags.pl >+++ b/opac/opac-tags.pl >@@ -39,7 +39,6 @@ use C4::Auth qw(:DEFAULT check_cookie_auth); > use C4::Context; > use C4::Debug; > use C4::Output 3.02 qw(:html :ajax pagination_bar); >-use C4::Dates qw(format_date); > use C4::Scrubber; > use C4::Biblio; > use C4::Tags qw(add_tag get_approval_rows get_tag_rows remove_tag); >@@ -232,7 +231,6 @@ if ($loggedinuser) { > my $date = $_->{date_created} || ''; > $date =~ /\s+(\d{2}\:\d{2}\:\d{2})/; > $_->{time_created_display} = $1; >- $_->{date_created_display} = format_date($_->{date_created}); > } > } > >-- >1.7.9.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 7743
:
8281
|
8282
|
8283
|
8284
|
8285
|
8286
|
8287
|
8288
|
8573
|
8574
|
8575
|
8576
|
8577
|
8578
|
8579
|
8580
|
8624
|
9038
|
9041