View | Details | Raw Unified | Return to bug 9011
Collapse All | Expand All

(-)a/catalogue/moredetail.pl (-1 lines)
Lines 212-218 $template->param( Link Here
212
    z3950_search_params => C4::Search::z3950_search_args(GetBiblioData($biblionumber)),
212
    z3950_search_params => C4::Search::z3950_search_args(GetBiblioData($biblionumber)),
213
    subtitle            => $subtitle,
213
    subtitle            => $subtitle,
214
    hidepatronname      => $hidepatronname,
214
    hidepatronname      => $hidepatronname,
215
    StoreLastBorrower   => C4::Context->preference('StoreLastBorrower'),
216
);
215
);
217
$template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items );
216
$template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items );
218
$template->{'VARS'}->{'searchid'} = $query->param('searchid');
217
$template->{'VARS'}->{'searchid'} = $query->param('searchid');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-1 / +2 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% USE KohaBorrowers %]
2
[% USE KohaBorrowers %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Catalog &rsaquo; Item details for [% title %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]</title>
4
<title>Koha &rsaquo; Catalog &rsaquo; Item details for [% title %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]</title>
Lines 213-219 Link Here
213
214
214
                <li><span class="label">Last seen:</span>[% IF ( ITEM_DAT.datelastseen ) %][% ITEM_DAT.datelastseen | $KohaDates %] [%END %]&nbsp;</li>
215
                <li><span class="label">Last seen:</span>[% IF ( ITEM_DAT.datelastseen ) %][% ITEM_DAT.datelastseen | $KohaDates %] [%END %]&nbsp;</li>
215
                <li><span class="label">Last borrowed:</span>[% IF (ITEM_DAT.datelastborrowed ) %][% ITEM_DAT.datelastborrowed | $KohaDates %][% END %]&nbsp;</li>
216
                <li><span class="label">Last borrowed:</span>[% IF (ITEM_DAT.datelastborrowed ) %][% ITEM_DAT.datelastborrowed | $KohaDates %][% END %]&nbsp;</li>
216
                [% IF ( StoreLastBorrower && ITEM_DAT.last_returned_by ) %]<li><span class="label">Last returned by:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.last_returned_by %]">[% KohaBorrowers.BorrowernumberToCardnumber( ITEM_DAT.last_returned_by ) %]</a>&nbsp;</li>[% END %]
217
                [% IF ( ITEM_DAT.last_returned_by && Koha.Preference('StoreLastBorrower') && !Koha.Preference('AnonymousPatron') ) %]<li><span class="label">Last returned by:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.last_returned_by %]">[% KohaBorrowers.BorrowernumberToCardnumber( ITEM_DAT.last_returned_by ) %]</a>&nbsp;</li>[% END %]
217
                [% IF ( ITEM_DAT.card0 ) %]<li><span class="label">Last borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower0 %]">[% ITEM_DAT.card0 %]</a>&nbsp;</li>[% END %]
218
                [% IF ( ITEM_DAT.card0 ) %]<li><span class="label">Last borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower0 %]">[% ITEM_DAT.card0 %]</a>&nbsp;</li>[% END %]
218
                [% IF ( ITEM_DAT.card1 ) %]<li><span class="label">Previous borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower1 %]">[% ITEM_DAT.card1 %]</a>&nbsp;</li>[% END %]
219
                [% IF ( ITEM_DAT.card1 ) %]<li><span class="label">Previous borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower1 %]">[% ITEM_DAT.card1 %]</a>&nbsp;</li>[% END %]
219
                [% IF ( ITEM_DAT.card2 ) %]<li><span class="label">Previous borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower2 %]">[% ITEM_DAT.card2 %]</a>&nbsp;</li>[% END %]
220
                [% IF ( ITEM_DAT.card2 ) %]<li><span class="label">Previous borrower:</span> <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% ITEM_DAT.borrower2 %]">[% ITEM_DAT.card2 %]</a>&nbsp;</li>[% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-privacy.tt (-1 / +1 lines)
Lines 63-69 Link Here
63
        </form>
63
        </form>
64
    [% END %]
64
    [% END %]
65
65
66
        [% IF StoreLastBorrower %]<p>Please note, the last person to return an item is tracked for the management of items returned damaged.</p>[% END %]
66
        [% IF Koha.Preference('StoreLastBorrower') %]<p>Please note, the last person to return an item is tracked for the management of items returned damaged.</p>[% END %]
67
    </div>
67
    </div>
68
</div>
68
</div>
69
</div>
69
</div>
(-)a/opac/opac-privacy.pl (-2 lines)
Lines 68-74 $template->param( 'Ask_data' => '1', Link Here
68
                    'firstname' => $borr->{'firstname'},
68
                    'firstname' => $borr->{'firstname'},
69
                    'surname' => $borr->{'surname'},
69
                    'surname' => $borr->{'surname'},
70
                    'privacyview' => 1,
70
                    'privacyview' => 1,
71
    'StoreLastBorrower' => C4::Context->preference('StoreLastBorrower'),
72
);
71
);
73
72
74
output_html_with_http_headers $query, $cookie, $template->output;
73
output_html_with_http_headers $query, $cookie, $template->output;
75
- 

Return to bug 9011