3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your Interlibrary loan requests</title>[% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
7 [% INCLUDE 'bodytag.inc' bodyid='opac-illrequests' bodyclass='scrollto' %]
9 [% IF message == "1" %]
10 <div class="alert alert-success" role="alert">Request updated</div>
11 [% ELSIF message == "2" %]
12 <div class="alert alert-success" role="alert">Request placed</div>
15 [% INCLUDE 'masthead.inc' %]
17 <ul class="breadcrumb noprint">
18 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
19 [% IF ( loggedinusername ) %]
20 <li><a href="/cgi-bin/koha/opac-user.pl">[% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]</a> <span class="divider">›</span></li>
23 [% IF method != 'list' %]
24 <li><a href="/cgi-bin/koha/opac-illrequests.pl">Interlibrary loan requests</a> <span class="divider">›</span></li>
25 [% IF method == 'create' %]
26 <li>New Interlibrary loan request</li>
27 [% ELSIF method == 'view' %]
28 <li>View Interlibrary loan request</li>
31 <li>Interlibrary loan requests</li>
34 </ul> <!-- / .breadcrumb -->
36 <div class="container-fluid">
37 <div class="row-fluid">
38 [% IF ( OpacNav||loggedinusername ) && !print %]
41 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
46 [% IF ( OpacNav||loggedinusername ) %]
51 [% IF !backends_available %]
52 <div class="alert">ILL module configuration problem. Contact your administrator.</div>
54 <div id="illrequests" class="maincontent">
55 [% IF method == 'create' %]
56 <h2>New Interlibrary loan request</h2>
57 [% IF stage == 'copyrightclearance' %]
58 [% INCLUDE messages %]
61 [% Koha.Preference('ILLModuleCopyrightClearance') %]
63 <a href="?method=create&stage=copyrightclearance&backend=[% whole.value.backend %]"
64 class="btn btn-sm btn-default"><i class="fa fa-check"></i> Yes</a>
65 <a href="/cgi-bin/koha/opac-illrequests.pl"
66 class="btn btn-sm btn-default"><i class="fa fa-times"></i> No</a>
69 [% INCLUDE messages %]
71 <form method="post" id="illrequestcreate-form" novalidate="novalidate">
72 <fieldset class="rows">
73 <label for="backend">Provider:</label>
74 <select name="backend">
75 [% FOREACH backend IN backends %]
76 <option value="[% backend %]">[% backend %]</option>
80 <fieldset class="action">
81 <input type="hidden" name="method" value="create">
82 <input type="submit" name="create_select_backend" value="Next">
86 [% PROCESS $whole.opac_template %]
89 [% ELSIF method == 'list' %]
90 <h2>Interlibrary loan requests</h2>
91 [% INCLUDE messages %]
93 <div id="illrequests-create-button" class="dropdown btn-group">
94 [% IF backends.size > 1 %]
95 <button class="btn btn-default dropdown-toggle" type="button" id="ill-backend-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
96 <i class="fa fa-plus"></i> Create a new request <span class="caret"></span>
98 <ul id="backend-dropdown-options" class="dropdown-menu nojs" aria-labelledby="ill-backend-dropdown">
99 [% FOREACH backend IN backends %]
100 <li><a href="/cgi-bin/koha/opac-illrequests.pl?method=create&backend=[% backend %]">[% backend %]</a></li>
104 <a id="ill-new" class="btn btn-default" href="/cgi-bin/koha/opac-illrequests.pl?method=create&backend=[% backends.0 %]">
105 <i class="fa fa-plus"></i> Create a new request
110 <table id="illrequestlist" class="table table-bordered table-striped">
115 <th>Requested from</th>
116 <th>Request type</th>
118 <th>Request placed</th>
119 <th>Last updated</th>
124 [% FOREACH request IN requests %]
125 [% status = request.status %]
127 <td>[% request.metadata.Author || 'N/A' %]</td>
128 <td>[% request.metadata.Title || 'N/A' %]</td>
129 <td>[% request.backend %]</td>
130 <td>[% request.medium %]</td>
131 <td>[% request.capabilities.$status.name %]</td>
132 <td>[% request.placed %]</td>
133 <td>[% request.updated %]</td>
135 <a href="/cgi-bin/koha/opac-illrequests.pl?method=view&illrequest_id=[% request.id %]" class="btn btn-default btn-small pull-right">View</a>
141 [% ELSIF method == 'view' %]
142 <h2>View Interlibrary loan request</h2>
143 [% INCLUDE messages %]
144 [% status = request.status %]
145 <form method="post" action="?method=update" id="illrequestupdate-form" novalidate="novalidate">
146 <fieldset class="rows">
147 <legend id="library_legend">Details from library</legend>
150 <label for="backend">Requested from:</label>
151 [% request.backend %]
153 [% IF request.biblio_id %]
155 <label for="biblio">Requested item:</label>
156 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% request.biblio_id %]">Click here to view</a>
160 <label for="branchcode">Collection library:</label>
161 [% Branches.GetName(request.branchcode) %]
164 <label for="status">Status:</label>
165 [% request.capabilities.$status.name %]
168 <label for="medium">Request type:</label>
172 <label for="placed">Request placed:</label>
176 <label for="updated">Last updated:</label>
177 [% request.updated %]
180 <label for="notesopac">Notes:</label>
181 [% IF !request.completed %]
182 <textarea name="notesopac" rows="5" cols="50">[% request.notesopac %]</textarea>
184 [% request.notesopac %]
190 <legend id="backend_legend">Details from [% request.backend %]</legend>
191 [% FOREACH meta IN request.metadata %]
192 <div class="requestattr-[% meta.key %]">
193 <span class="label">[% meta.key %]:</span>
194 [% meta.value || 'N/A' %]
198 <fieldset class="action illrequest-actions">
199 <input type="hidden" name="illrequest_id" value="[% request.illrequest_id %]">
200 <input type="hidden" name="method" value="update">
201 [% IF !request.completed %]
202 [% IF request.status == "NEW" %]
203 <a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&illrequest_id=[% request.illrequest_id %]">Request cancellation</a>
205 <input type="submit" class="update-illrequest btn btn-default" value="Submit modifications">
207 <span class="cancel"><a href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a></span>
211 </div> <!-- / .maincontent -->
213 </div> <!-- / .span10/12 -->
214 </div> <!-- / .row-fluid -->
215 </div> <!-- / .container-fluid -->
216 </div> <!-- / .main -->
218 [% INCLUDE 'opac-bottom.inc' %]
220 [% BLOCK jsinclude %]
221 [% INCLUDE 'datatables.inc' %]
224 $("#illrequestlist").dataTable($.extend(true, {}, dataTablesDefaults, {
226 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }
228 "aaSorting": [[ 3, "desc" ]],
231 $("#backend-dropdown-options").removeClass("nojs");
235 [% PROCESS backend_jsinclude %]