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