|
Lines 1-8
Link Here
|
| 1 |
[% USE raw %] |
1 |
[% USE raw %] |
| 2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
|
|
3 |
[% USE KohaDates %] |
| 3 |
[% USE Branches %] |
4 |
[% USE Branches %] |
| 4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
| 5 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your Interlibrary loan requests</title>[% INCLUDE 'doc-head-close.inc' %] |
6 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your interlibrary loan requests</title>[% INCLUDE 'doc-head-close.inc' %] |
| 6 |
[% BLOCK cssinclude %][% END %] |
7 |
[% BLOCK cssinclude %][% END %] |
| 7 |
</head> |
8 |
</head> |
| 8 |
[% INCLUDE 'bodytag.inc' bodyid='opac-illrequests' bodyclass='scrollto' %] |
9 |
[% INCLUDE 'bodytag.inc' bodyid='opac-illrequests' bodyclass='scrollto' %] |
|
Lines 24-32
Link Here
|
| 24 |
[% IF method != 'list' %] |
25 |
[% IF method != 'list' %] |
| 25 |
<li><a href="/cgi-bin/koha/opac-illrequests.pl">Interlibrary loan requests</a> <span class="divider">›</span></li> |
26 |
<li><a href="/cgi-bin/koha/opac-illrequests.pl">Interlibrary loan requests</a> <span class="divider">›</span></li> |
| 26 |
[% IF method == 'create' %] |
27 |
[% IF method == 'create' %] |
| 27 |
<li>New Interlibrary loan request</li> |
28 |
<li>New interlibrary loan request</li> |
| 28 |
[% ELSIF method == 'view' %] |
29 |
[% ELSIF method == 'view' %] |
| 29 |
<li>View Interlibrary loan request</li> |
30 |
<li>View interlibrary loan request</li> |
| 30 |
[% END %] |
31 |
[% END %] |
| 31 |
[% ELSE %] |
32 |
[% ELSE %] |
| 32 |
<li>Interlibrary loan requests</li> |
33 |
<li>Interlibrary loan requests</li> |
|
Lines 54-60
Link Here
|
| 54 |
[% ELSE %] |
55 |
[% ELSE %] |
| 55 |
<div id="illrequests" class="maincontent"> |
56 |
<div id="illrequests" class="maincontent"> |
| 56 |
[% IF method == 'create' %] |
57 |
[% IF method == 'create' %] |
| 57 |
<h2>New Interlibrary loan request</h2> |
58 |
<h2>New interlibrary loan request</h2> |
| 58 |
[% IF stage == 'copyrightclearance' %] |
59 |
[% IF stage == 'copyrightclearance' %] |
| 59 |
[% INCLUDE messages %] |
60 |
[% INCLUDE messages %] |
| 60 |
<div> |
61 |
<div> |
|
Lines 79-86
Link Here
|
| 79 |
</select> |
80 |
</select> |
| 80 |
</fieldset> |
81 |
</fieldset> |
| 81 |
<fieldset class="action"> |
82 |
<fieldset class="action"> |
| 82 |
<input type="hidden" name="method" value="create"> |
83 |
<input type="hidden" name="method" value="create" /> |
| 83 |
<input type="submit" name="create_select_backend" value="Next"> |
84 |
<input type="submit" name="create_select_backend" value="Next" /> |
| 84 |
</fieldset> |
85 |
</fieldset> |
| 85 |
</form> |
86 |
</form> |
| 86 |
[% ELSE %] |
87 |
[% ELSE %] |
|
Lines 116-123
Link Here
|
| 116 |
<th>Requested from</th> |
117 |
<th>Requested from</th> |
| 117 |
<th>Request type</th> |
118 |
<th>Request type</th> |
| 118 |
<th>Status</th> |
119 |
<th>Status</th> |
| 119 |
<th>Request placed</th> |
120 |
<th class="title-string">Request placed</th> |
| 120 |
<th>Last updated</th> |
121 |
<th class="title-string">Last updated</th> |
| 121 |
<th></th> |
122 |
<th></th> |
| 122 |
</tr> |
123 |
</tr> |
| 123 |
</thead> |
124 |
</thead> |
|
Lines 134-141
Link Here
|
| 134 |
<td>[% request.backend | html %]</td> |
135 |
<td>[% request.backend | html %]</td> |
| 135 |
<td>[% request.medium | html %]</td> |
136 |
<td>[% request.medium | html %]</td> |
| 136 |
<td>[% request.capabilities.$status.name | html %]</td> |
137 |
<td>[% request.capabilities.$status.name | html %]</td> |
| 137 |
<td>[% request.placed | html %]</td> |
138 |
<td><span title="[% request.placed | html %]">[% request.placed | $KohaDates %]</span></td> |
| 138 |
<td>[% request.updated | html %]</td> |
139 |
<td><span title="[% request.updated | html %]">[% request.updated | $KohaDates %]</span></td> |
| 139 |
<td> |
140 |
<td> |
| 140 |
<a href="/cgi-bin/koha/opac-illrequests.pl?method=view&illrequest_id=[% request.id | html %]" class="btn btn-default btn-small pull-right">View</a> |
141 |
<a href="/cgi-bin/koha/opac-illrequests.pl?method=view&illrequest_id=[% request.id | html %]" class="btn btn-default btn-small pull-right">View</a> |
| 141 |
</td> |
142 |
</td> |
|
Lines 144-150
Link Here
|
| 144 |
</tbody> |
145 |
</tbody> |
| 145 |
</table> |
146 |
</table> |
| 146 |
[% ELSIF method == 'view' %] |
147 |
[% ELSIF method == 'view' %] |
| 147 |
<h2>View Interlibrary loan request</h2> |
148 |
<h2>View interlibrary loan request</h2> |
| 148 |
[% INCLUDE messages %] |
149 |
[% INCLUDE messages %] |
| 149 |
[% status = request.status | html %] |
150 |
[% status = request.status | html %] |
| 150 |
<form method="post" action="?method=update" id="illrequestupdate-form" novalidate="novalidate"> |
151 |
<form method="post" action="?method=update" id="illrequestupdate-form" novalidate="novalidate"> |
|
Lines 175-185
Link Here
|
| 175 |
</li> |
176 |
</li> |
| 176 |
<li> |
177 |
<li> |
| 177 |
<label for="placed">Request placed:</label> |
178 |
<label for="placed">Request placed:</label> |
| 178 |
[% request.placed | html %] |
179 |
[% request.placed | $KohaDates %] |
| 179 |
</li> |
180 |
</li> |
| 180 |
<li> |
181 |
<li> |
| 181 |
<label for="updated">Last updated:</label> |
182 |
<label for="updated">Last updated:</label> |
| 182 |
[% request.updated | html %] |
183 |
[% request.updated | $KohaDates %] |
| 183 |
</li> |
184 |
</li> |
| 184 |
<li> |
185 |
<li> |
| 185 |
<label for="notesopac">Notes:</label> |
186 |
<label for="notesopac">Notes:</label> |
|
Lines 201-213
Link Here
|
| 201 |
[% END %] |
202 |
[% END %] |
| 202 |
</div> |
203 |
</div> |
| 203 |
<fieldset class="action illrequest-actions"> |
204 |
<fieldset class="action illrequest-actions"> |
| 204 |
<input type="hidden" name="illrequest_id" value="[% request.illrequest_id | html %]"> |
205 |
<input type="hidden" name="illrequest_id" value="[% request.illrequest_id | html %]" /> |
| 205 |
<input type="hidden" name="method" value="update"> |
206 |
<input type="hidden" name="method" value="update" /> |
| 206 |
[% IF !request.completed %] |
207 |
[% IF !request.completed %] |
| 207 |
[% IF request.status == "NEW" %] |
208 |
[% IF request.status == "NEW" %] |
| 208 |
<a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&illrequest_id=[% request.illrequest_id | html %]">Request cancellation</a> |
209 |
<a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&illrequest_id=[% request.illrequest_id | html %]">Request cancellation</a> |
| 209 |
[% END %] |
210 |
[% END %] |
| 210 |
<input type="submit" class="update-illrequest btn btn-default" value="Submit modifications"> |
211 |
<input type="submit" class="update-illrequest btn btn-default" value="Submit modifications" /> |
| 211 |
[% END %] |
212 |
[% END %] |
| 212 |
<span class="cancel"><a href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a></span> |
213 |
<span class="cancel"><a href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a></span> |
| 213 |
</fieldset> |
214 |
</fieldset> |
|
Lines 228-234
Link Here
|
| 228 |
//<![CDATA[ |
229 |
//<![CDATA[ |
| 229 |
$("#illrequestlist").dataTable($.extend(true, {}, dataTablesDefaults, { |
230 |
$("#illrequestlist").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 230 |
"columnDefs": [ |
231 |
"columnDefs": [ |
| 231 |
{ "targets": [ -1 ], "sortable": false, "searchable": false } |
232 |
{ "targets": [ -1 ], "sortable": false, "searchable": false }, |
|
|
233 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
| 232 |
], |
234 |
], |
| 233 |
"order": [[ 3, "desc" ]], |
235 |
"order": [[ 3, "desc" ]], |
| 234 |
"deferRender": true |
236 |
"deferRender": true |
| 235 |
- |
|
|