[% IF ( MY_TAGS ) %]
<form method="post" action="opac-tags.pl">
- <h2>My Tags</h2>
+ <h2>Your tags</h2>
<table id="mytagst" class="table table-bordered table-striped">
<thead><tr><th>Term</th><th>Title</th><th>Date added</th><th>Delete</th></tr></thead>
<tbody>
<a href="/cgi-bin/koha/opac-search.pl?tag=[% MY_TAG.term |url %]&q=[% MY_TAG.term |url %]">
[% MY_TAG.term |html %]</a></td>
<td>
- <span class="tdlabel">Title:</span>
- <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% MY_TAG.biblionumber %]">
- [% MY_TAG.title |html %][% IF ( MY_TAG.subtitle ) %][% FOREACH subtitle IN MY_TAG.subtitle %] [% subtitle.subfield |html %][% END %][% END %]</a> [% IF ( MY_TAG.author ) %]by [% MY_TAG.author %][% END %]</td>
+ [% IF ( MY_TAG.XSLTBloc ) %]
+ [% MY_TAG.XSLTBloc %]
+ [% ELSE %]
+ <span class="tdlabel">Title:</span>
+ <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% MY_TAG.biblionumber %]">
+ [% MY_TAG.title |html %]
+ [% IF ( MY_TAG.subtitle ) %]
+ [% FOREACH subtitle IN MY_TAG.subtitle %]
+ [% subtitle.subfield |html %]
+ [% END %]
+ [% END %]
+ </a>
+ [% IF ( MY_TAG.author ) %]
+ by [% MY_TAG.author %]
+ [% END %]
+ [% END # /IF MY_TAG.XSLTBloc %]
+ </td>
<td>
<span title="[% MY_TAG.date_created %]">
<span class="tdlabel">Date added:</span>
use C4::Scrubber;
use C4::Biblio;
use C4::Tags qw(add_tag get_approval_rows get_tag_rows remove_tag stratify_tags);
+use C4::XSLT;
use Data::Dumper;
$_->{subtitle} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $_->{biblionumber} ) );
$_->{title} = $biblio->{title};
$_->{author} = $biblio->{author};
+ if (C4::Context->preference("OPACXSLTResultsDisplay")) {
+ $_->{XSLTBloc} = XSLTParse4Display($_->{biblionumber}, $record, "OPACXSLTResultsDisplay");
+ }
my $date = $_->{date_created} || '';
$date =~ /\s+(\d{2}\:\d{2}\:\d{2})/;
$_->{time_created_display} = $1;