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 [% INCLUDE messages %]
59 <form method="post" id="illrequestcreate-form" novalidate="novalidate">
60 <fieldset class="rows">
61 <label for="backend">Provider:</label>
62 <select name="backend">
63 [% FOREACH backend IN backends %]
64 <option value="[% backend %]">[% backend %]</option>
68 <fieldset class="action">
69 <input type="hidden" name="method" value="create">
70 <input type="submit" name="create_select_backend" value="Next">
74 [% PROCESS $whole.opac_template %]
76 [% ELSIF method == 'list' %]
77 <h2>Interlibrary loan requests</h2>
78 [% INCLUDE messages %]
80 <div id="illrequests-create-button" class="dropdown btn-group">
81 [% IF backends.size > 1 %]
82 <button class="btn btn-default dropdown-toggle" type="button" id="ill-backend-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
83 <i class="fa fa-plus"></i> Create a new request <span class="caret"></span>
85 <ul id="backend-dropdown-options" class="dropdown-menu nojs" aria-labelledby="ill-backend-dropdown">
86 [% FOREACH backend IN backends %]
87 <li><a href="/cgi-bin/koha/opac-illrequests.pl?method=create&backend=[% backend %]">[% backend %]</a></li>
91 <a id="ill-new" class="btn btn-default" href="/cgi-bin/koha/opac-illrequests.pl?method=create&backend=[% backends.0 %]">
92 <i class="fa fa-plus"></i> Create a new request
97 <table id="illrequestlist" class="table table-bordered table-striped">
102 <th>Requested from</th>
103 <th>Request type</th>
105 <th>Request placed</th>
106 <th>Last updated</th>
111 [% FOREACH request IN requests %]
112 [% status = request.status %]
114 <td>[% request.metadata.Author || 'N/A' %]</td>
115 <td>[% request.metadata.Title || 'N/A' %]</td>
116 <td>[% request.backend %]</td>
117 <td>[% request.medium %]</td>
118 <td>[% request.capabilities.$status.name %]</td>
119 <td>[% request.placed %]</td>
120 <td>[% request.updated %]</td>
122 <a href="/cgi-bin/koha/opac-illrequests.pl?method=view&illrequest_id=[% request.id %]" class="btn btn-default btn-small pull-right">View</a>
128 [% ELSIF method == 'view' %]
129 <h2>View Interlibrary loan request</h2>
130 [% INCLUDE messages %]
131 [% status = request.status %]
132 <form method="post" action="?method=update" id="illrequestupdate-form" novalidate="novalidate">
133 <fieldset class="rows">
134 <legend id="library_legend">Details from library</legend>
137 <label for="backend">Requested from:</label>
138 [% request.backend %]
140 [% IF request.biblio_id %]
142 <label for="biblio">Requested item:</label>
143 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% request.biblio_id %]">Click here to view</a>
147 <label for="branchcode">Collection library:</label>
148 [% Branches.GetName(request.branchcode) %]
151 <label for="status">Status:</label>
152 [% request.capabilities.$status.name %]
155 <label for="medium">Request type:</label>
159 <label for="placed">Request placed:</label>
163 <label for="updated">Last updated:</label>
164 [% request.updated %]
167 <label for="notesopac">Notes:</label>
168 [% IF !request.completed %]
169 <textarea name="notesopac" rows="5" cols="50">[% request.notesopac %]</textarea>
171 [% request.notesopac %]
177 <legend id="backend_legend">Details from [% request.backend %]</legend>
178 [% FOREACH meta IN request.metadata %]
179 <div class="requestattr-[% meta.key %]">
180 <span class="label">[% meta.key %]:</span>
181 [% meta.value || 'N/A' %]
185 <fieldset class="action illrequest-actions">
186 <input type="hidden" name="illrequest_id" value="[% request.illrequest_id %]">
187 <input type="hidden" name="method" value="update">
188 [% IF !request.completed %]
189 [% IF request.status == "NEW" %]
190 <a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&illrequest_id=[% request.illrequest_id %]">Request cancellation</a>
192 <input type="submit" class="update-illrequest btn btn-default" value="Submit modifications">
194 <span class="cancel"><a href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a></span>
198 </div> <!-- / .maincontent -->
200 </div> <!-- / .span10/12 -->
201 </div> <!-- / .row-fluid -->
202 </div> <!-- / .container-fluid -->
203 </div> <!-- / .main -->
205 [% INCLUDE 'opac-bottom.inc' %]
207 [% BLOCK jsinclude %]
208 [% INCLUDE 'datatables.inc' %]
209 <script type="text/javascript">
211 $("#illrequestlist").dataTable($.extend(true, {}, dataTablesDefaults, {
213 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }
215 "aaSorting": [[ 3, "desc" ]],
218 $("#backend-dropdown-options").removeClass("nojs");
222 [% PROCESS backend_jsinclude %]