Bug 7743: Update opac-tags.pl to use KohaDates TT plugin
Signed-off-by: Marijana Glavica <mglavica@ffzg.hr>
This commit is contained in:
parent
f42176cb6d
commit
721096cd8c
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue