Bug 13618: Add html filters to all the variables
[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-status">Status</th>
17                 <th class="article-request-branchcode">Pickup library</th>
18             </tr>
19         </thead>
20
21         <tbody>
22             [% FOREACH ar IN patron.article_requests_current %]
23                 <tr>
24                     <td class="article-request-record-title">
25                         <a class="article-request-title" href="/cgi-bin/koha/circ/request-article.pl?biblionumber=[% ar.biblionumber | html %]">
26                             [% ar.biblio.title | html %]
27                             [% ar.item.enumchron | html %]
28                         </a>
29                         [% ar.biblio.author | html %]
30                         [% IF ar.itemnumber %] <i>(only [% ar.item.barcode | html %])</i>[% END %]
31                     </td>
32
33                     <td class="article-request-created_on">
34                         [% ar.created_on | $KohaDates %]
35                     </td>
36
37                     <td class="article-request-title">
38                         [% ar.title | html %]
39                     </td>
40
41                     <td class="article-request-author">
42                         [% ar.author | html %]
43                     </td>
44
45                     <td class="article-request-volume">
46                         [% ar.volume | html %]
47                     </td>
48
49                     <td class="article-request-issue">
50                         [% ar.issue | html %]
51                     </td>
52
53                     <td class="article-request-date">
54                         [% ar.date | html %]
55                     </td>
56
57                     <td class="article-request-pages">
58                         [% ar.pages | html %]
59                     </td>
60
61                     <td class="article-request-chapters">
62                         [% ar.chapters | html %]
63                     </td>
64
65                     <td class="article-request-patron-notes">
66                         [% ar.patron_notes | html %]
67                     </td>
68
69                     <td class="article-request-status">
70                         [% IF ar.status == 'PENDING' %]
71                             Pending
72                         [% ELSIF ar.status == 'PROCESSING' %]
73                             Processing
74                         [% ELSIF ar.status == 'COMPLETED' %]
75                             Completed
76                         [% ELSIF ar.status == 'CANCELED' %]
77                             Canceled
78                         [% END %]
79                     </td>
80
81                     <td class="article-request-branchcode">
82                         [% ar.branch.branchname | html %]
83                     </td>
84                 </tr>
85             [% END %]
86         </tbody>
87     </table>
88     [% ELSE %]
89         Patron has no current article requests.
90     [% END %]
91 </div>