Link Here
|
1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
2 |
[% IF ( patron.borrowernumber ) %] |
2 |
[% IF ( patron.borrowernumber ) %] |
|
|
3 |
<script> |
4 |
var lastborrowernumber; |
5 |
var lastborrowername; |
6 |
var lastborrowercard; |
7 |
document.addEventListener('DOMContentLoaded', function(){ |
8 |
lastborrowernumber = $.cookie("lastborrowernumber"); |
9 |
lastborrowername = $.cookie("lastborrowername"); |
10 |
lastborrowercard = $.cookie("lastborrowercard"); |
11 |
if (typeof lastborrowernumber !== "undefined"){ |
12 |
$('#lastpatronlink').show(); |
13 |
$('#lastpatronlink').prop('title', lastborrowername + ' (' + lastborrowercard + ')'); |
14 |
$('#lastpatronlink').prop('href', '/cgi-bin/koha/circ/circulation.pl?borrowernumber=' + lastborrowernumber); |
15 |
} |
16 |
$.cookie("lastborrowernumber", $("#hiddenborrowernumber").val(), { path: '/' }); |
17 |
$.cookie("lastborrowername", $("#hiddenborrowername").val(), { path: '/' }); |
18 |
$.cookie("lastborrowercard", $("#hiddenborrowercard").val(), { path: '/' }); |
19 |
}, false); |
20 |
</script> |
3 |
<div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5> |
21 |
<div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5> |
|
|
22 |
<input type="hidden" id="hiddenborrowernumber" value="[% patron.borrowernumber %]"> |
23 |
<input type="hidden" id="hiddenborrowername" value="[% patron.surname %] [% patron.firstname %]"> |
24 |
<input type="hidden" id="hiddenborrowercard" value="[% patron.cardnumber %]"> |
25 |
<input type="hidden" id="hiddenborrower" value="1"> |
4 |
<!--[if IE 6]> |
26 |
<!--[if IE 6]> |
5 |
<style type="tex/css">img { width: expression(this.width > 140 ? 140: true); |
27 |
<style type="tex/css">img { width: expression(this.width > 140 ? 140: true); |
6 |
}</style> |
28 |
}</style> |