Bug 29271: Fix cash register report results
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / patron-article-requests.inc
1 [% USE Context %]
2 [% SET current_article_requests = Context.Scalar( Context.Scalar( patron, 'article_requests' ), 'filter_by_current' ) %]
3 <div id="article-requests">
4 [% IF current_article_requests.count > 0 %]
5     <table id="article-requests-table" class="table table-bordered table-striped">
6         <thead>
7             <tr>
8                 <th class="article-request-record-title anti-the">Record title</th>
9                 <th class="article-request-created_on psort">Placed on</th>
10                 <th class="article-request-title anti-the">Title</th>
11                 <th class="article-request-author">Author</th>
12                 <th class="article-request-volume">Volume</th>
13                 <th class="article-request-issue">Issue</th>
14                 <th class="article-request-date">Date</th>
15                 <th class="article-request-toc" title="Table of contents">TOC</th>
16                 <th class="article-request-pages">Pages</th>
17                 <th class="article-request-chapters">Chapters</th>
18                 <th class="article-request-notes">Notes</th>
19                 <th class="article-request-format">Format</th>
20                 <th class="article-request-status">Status</th>
21                 <th class="article-request-branchcode">Pickup library</th>
22             </tr>
23         </thead>
24
25         <tbody>
26             [% FOREACH ar IN current_article_requests %]
27                 <tr>
28                     <td class="article-request-record-title">
29                         <a class="article-request-title" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber | html %]">
30                             [% ar.biblio.title | html %]
31                             [% ar.item.enumchron | html %]
32                         </a>
33                         [% ar.biblio.author | html %]
34                         [% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %]
35                     </td>
36
37                     <td class="article-request-created_on">
38                         [% ar.created_on | $KohaDates %]
39                     </td>
40
41                     <td class="article-request-title">
42                         [% ar.title | html %]
43                     </td>
44
45                     <td class="article-request-author">
46                         [% ar.author | html %]
47                     </td>
48
49                     <td class="article-request-volume">
50                         [% ar.volume | html %]
51                     </td>
52
53                     <td class="article-request-issue">
54                         [% ar.issue | html %]
55                     </td>
56
57                     <td class="article-request-date">
58                         [% ar.date | html %]
59                     </td>
60
61                     <td class="article-request-toc">
62                         [% IF ar.toc_request %]Yes[% END %]
63                     </td>
64
65                     <td class="article-request-pages">
66                         [% ar.pages | html %]
67                     </td>
68
69                     <td class="article-request-chapters">
70                         [% ar.chapters | html %]
71                     </td>
72
73                     <td class="article-request-patron-notes">
74                         [% ar.patron_notes | html %]
75                     </td>
76
77                     <td class="article-request-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td>
78
79                     <td class="article-request-status">
80                         [% IF ar.status == 'PENDING' %]
81                             Pending
82                         [% ELSIF ar.status == 'PROCESSING' %]
83                             Processing
84                         [% ELSIF ar.status == 'COMPLETED' %]
85                             Completed
86                         [% ELSIF ar.status == 'CANCELED' %]
87                             Canceled
88                         [% END %]
89                     </td>
90
91                     <td class="article-request-branchcode">
92                         [% ar.branch.branchname | html %]
93                     </td>
94                 </tr>
95             [% END %]
96         </tbody>
97     </table>
98     [% ELSE %]
99         Patron has no current article requests.
100     [% END %]
101 </div>