Follow-up fix for Bug 5760 - Add the jquery table sorter to reading record
[wip/koha-chris_n.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / readingrec.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Reading Record for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
6 <script type="text/javascript" id="js">$(document).ready(function() {
7         $.tablesorter.addParser({
8                 id: 'articles',
9                 is: function(s) {return false;  },
10                 format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
11                 type: 'text'
12         });
13         $.tablesorter.defaults.widgets = ['zebra'];
14         $("#table_readingrec").tablesorter({
15                 sortList: [[8,1]],
16                 headers: { 1: { sorter: 'articles' }}
17         }).tablesorterPager({container: $("#pagertable_readingrec"),positionFixed: false,size: 20});
18 }); </script>
19 </head>
20 <body>
21 <!-- TMPL_INCLUDE NAME="header.inc" -->
22 <!-- TMPL_INCLUDE NAME="patron-search.inc" -->
23
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Reading Record for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></div>
25
26 <div id="doc3" class="yui-t2">
27    
28    <div id="bd">
29         <div id="yui-main">
30         <div class="yui-b">
31 <!-- TMPL_INCLUDE NAME="circ-toolbar.inc" -->
32 <h1>Reading Record</h1>
33 <form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" /></form>
34
35 <span id="pagertable_readingrec" class="pager">
36         <form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
37                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
38                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
39                 <input type="text" size="5" class="pagedisplay"/>
40                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
41                 <img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
42                 , entries/page :
43                 <select class="pagesize">
44                         <option value="10">10</option>
45                         <option selected="selected" value="20">20</option>
46                         <option value="30">30</option>
47                         <option value="40">40</option>
48                         <option value="50">50</option>
49                         <option value="100">100</option>
50                 </select>
51         </form>
52 </span>
53 <table id="table_readingrec">
54 <thead>
55     <th>Date</th>
56         <th>Title</th>
57         <th>Author</th>
58         <th>Call No.</th>
59         <th>Barcode</th>
60         <th>Number of Renewals</th>
61         <th>Checked out on</th>
62         <th>Checked out from</th>
63         <th>Date Due</th>
64         <th>Return Date</th>
65 </thead>
66 <!-- TMPL_LOOP name="loop_reading" -->
67     <!-- TMPL_IF NAME="returndate" --><tr><!-- TMPL_ELSE --><tr class="onissue"><!-- /TMPL_IF -->
68         <td>
69             <!-- TMPL_VAR name="issuestimestamp" -->
70         </td>
71         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR name="title" escape="html" --></a></td>
72
73         <td><!-- TMPL_VAR name="author" --></td>
74
75         <td><!-- TMPL_VAR NAME="classification" --></td>
76
77         <td><!-- TMPL_VAR NAME="barcode" --></td>
78
79             <td>
80         <!-- TMPL_VAR NAME="renewals" --></td>
81             <td>
82         <!-- TMPL_VAR NAME="issuedate" --></td>
83             <td>
84         <!-- TMPL_VAR NAME="issuingbranch" --></td>
85                         <td><!-- TMPL_IF NAME="date_due" --><!-- TMPL_VAR NAME="date_due" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td>
86             <td>
87         <!-- TMPL_IF NAME="returndate" -->
88             <!-- TMPL_VAR name="returndate" -->
89         <!-- TMPL_ELSE -->
90             Checked Out
91         <!-- /TMPL_IF -->
92         </td>
93 </tr>
94 <!-- /TMPL_LOOP -->
95 </table>
96
97 </div>
98 </div>
99
100 <div class="yui-b">
101 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
102 </div>
103 </div>
104 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->