Bug 16522: (follow-up) MARC display templates and get_marc_host fixes
[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" role="tabpanel" class="tab-pane">
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 %]<span>Yes</span>[% 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">
78                         [% IF ar.format == 'PHOTOCOPY' %]<span>Copy</span>
79                         [% ELSIF ar.format == 'SCAN' %]<span>Scan</span>
80                         [% END %]
81                     </td>
82
83                     <td class="article-request-status">
84                         [% IF ar.status == 'PENDING' %]
85                             <span>Pending</span>
86                         [% ELSIF ar.status == 'PROCESSING' %]
87                             <span>Processing</span>
88                         [% ELSIF ar.status == 'COMPLETED' %]
89                             <span>Completed</span>
90                         [% ELSIF ar.status == 'CANCELED' %]
91                             <span>Canceled</span>
92                         [% END %]
93                     </td>
94
95                     <td class="article-request-branchcode">
96                         [% ar.branch.branchname | html %]
97                     </td>
98                 </tr>
99             [% END %]
100         </tbody>
101     </table>
102     [% ELSE %]
103         <span>Patron has no current article requests.</span>
104     [% END %]
105 </div>