View | Details | Raw Unified | Return to bug 22951
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-308 / +307 lines)
Lines 121-454 Link Here
121
                </div> <!-- /.message -->
121
                </div> <!-- /.message -->
122
            [% ELSE # /IF message %]
122
            [% ELSE # /IF message %]
123
123
124
                        [% IF ( none_available && multi_hold ) %]
124
                [% IF ( none_available && multi_hold ) %]
125
                            <div id="none_available" class="alert">
125
                    <div id="none_available" class="alert">
126
                                Sorry, none of these titles can be placed on hold.
126
                        Sorry, none of these titles can be placed on hold.
127
                            </div>
127
                    </div>
128
                        [% END %]
128
                [% END %]
129
129
130
            [% END # / IF message %]
130
            [% END # / IF message %]
131
131
132
                    [% UNLESS ( message ) %]
132
            [% UNLESS ( message ) %]
133
                        [% UNLESS ( none_available ) %]
133
                [% UNLESS ( none_available ) %]
134
                            <h3>Confirm holds for:[% INCLUDE 'patron-title.inc' patron = logged_in_user %] ([% logged_in_user.cardnumber | html %])</h3>
134
                    <h3>Confirm holds for:[% INCLUDE 'patron-title.inc' patron = logged_in_user %] ([% logged_in_user.cardnumber | html %])</h3>
135
                        [% END # / UNLESS none_available %]
135
                [% END # / UNLESS none_available %]
136
136
137
                        [% IF (RESERVE_CHARGE) %]
137
                [% IF (RESERVE_CHARGE) %]
138
                            <div class="alert" id="reserve_fee">
138
                    <div class="alert" id="reserve_fee">
139
                                [% IF Koha.Preference('HoldFeeMode') == 'any_time_is_collected' %]
139
                        [% IF Koha.Preference('HoldFeeMode') == 'any_time_is_collected' %]
140
                                    You will be charged a hold fee of [% RESERVE_CHARGE | $Price %] when you collect this item
140
                            You will be charged a hold fee of [% RESERVE_CHARGE | $Price %] when you collect this item
141
                                [% ELSE %]
141
                        [% ELSE %]
142
                                    You will be charged a hold fee of [% RESERVE_CHARGE | $Price %] for placing this hold
142
                            You will be charged a hold fee of [% RESERVE_CHARGE | $Price %] for placing this hold
143
                                [% END %]
144
                            </div>
145
                        [% END %]
146
147
                        [% IF ( new_reserves_allowed ) %]
148
                            <div id="new_reserves_allowed" class="alert">
149
                                <strong>Sorry,</strong> you can only place [% new_reserves_allowed | html %] more holds. Please uncheck the checkboxes for the items you wish to not place holds on.
150
                            </div>
151
                        [% END %]
143
                        [% END %]
152
144
                    </div>
153
                        <form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
145
                [% END %]
154
                            <input type="hidden" name="place_reserve" value="1"/>
146
155
                            <!-- These values are set dynamically by js -->
147
                [% IF ( new_reserves_allowed ) %]
156
                            <input type="hidden" name="biblionumbers" id="biblionumbers"/>
148
                    <div id="new_reserves_allowed" class="alert">
157
                            <input type="hidden" name="selecteditems" id="selections"/>
149
                        <strong>Sorry,</strong> you can only place [% new_reserves_allowed | html %] more holds. Please uncheck the checkboxes for the items you wish to not place holds on.
158
                            <div id="bigloop">
150
                    </div>
159
151
                [% END %]
160
                                [% FOREACH bibitemloo IN bibitemloop %]
152
161
                                    <div class="holdrow">
153
                <form action="/cgi-bin/koha/opac-reserve.pl" method="post" id="hold-request-form">
162
                                        <p>
154
                    <input type="hidden" name="place_reserve" value="1"/>
163
                                            [% IF ( bibitemloo.holdable ) %]
155
                    <!-- These values are set dynamically by js -->
164
                                                <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
156
                    <input type="hidden" name="biblionumbers" id="biblionumbers"/>
165
                                                <input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber | html %]"/>
157
                    <input type="hidden" name="selecteditems" id="selections"/>
166
                                                <span class="confirmjs_hold" title="[% bibitemloo.biblionumber | html %]" style="padding:.3em"></span>
158
                    <div id="bigloop">
167
                                                <span class="confirm_nonjs">
159
168
                                                    <input type="radio" class="confirmbox checkitem [% bibitemloo.biblionumber | html %]" name="[% bibitemloo.biblionumber | html %]" checked="checked" id="single_[% bibitemloo.biblionumber | html %]" value="any" />
160
                        [% FOREACH bibitemloo IN bibitemloop %]
169
                                                    <label class="confirm_label" for="single_[% bibitemloo.biblionumber | html %]">Place a hold on </label>
161
                            <div class="holdrow">
170
                                                </span>
162
                                <p>
171
                                            [% END # / bibitemloo.holdable %]
163
                                    [% IF ( bibitemloo.holdable ) %]
172
164
                                        <input class="reserve_mode" name="reserve_mode" type="hidden" value="single"/>
173
                                            <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% bibitemloo.biblionumber | html %]">
165
                                        <input class="single_bib" name="single_bib" type="hidden" value="[% bibitemloo.biblionumber | html %]"/>
174
                                                [% bibitemloo.title | html %]
166
                                        <span class="confirmjs_hold" title="[% bibitemloo.biblionumber | html %]" style="padding:.3em"></span>
175
                                                [% IF ( bibitemloo.subtitle ) %]
167
                                        <span class="confirm_nonjs">
176
                                                    [% FOREACH subtitl IN bibitemloo.subtitle %]
168
                                            <input type="radio" class="confirmbox checkitem [% bibitemloo.biblionumber | html %]" name="[% bibitemloo.biblionumber | html %]" checked="checked" id="single_[% bibitemloo.biblionumber | html %]" value="any" />
177
                                                        [% subtitl.subfield | html %]
169
                                            <label class="confirm_label" for="single_[% bibitemloo.biblionumber | html %]">Place a hold on </label>
178
                                                    [% END %]
170
                                        </span>
179
                                                [% END %]
171
                                    [% END # / bibitemloo.holdable %]
180
                                            </a>
172
181
                                            [% IF ( bibitemloo.author ) %],  by [% bibitemloo.author | html %][% END %]
173
                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% bibitemloo.biblionumber | html %]">
182
                                        </p>
174
                                        [% bibitemloo.title | html %]
183
175
                                        [% IF ( bibitemloo.subtitle ) %]
184
                                        [% UNLESS ( bibitemloo.holdable ) %]
176
                                            [% FOREACH subtitl IN bibitemloo.subtitle %]
185
                                            [% IF ( bibitemloo.ageRestricted ) %]
177
                                                [% subtitl.subfield | html %]
186
                                                <div class="alert">Sorry, you are too young to reserve this material.</div>
187
                                            [% END %]
178
                                            [% END %]
188
                                            [% IF ( bibitemloo.already_reserved ) %]
179
                                        [% END %]
189
                                                <div class="alert">You have already requested this title.</div>
180
                                    </a>
181
                                    [% IF ( bibitemloo.author ) %],  by [% bibitemloo.author | html %][% END %]
182
                                </p>
183
184
                                [% UNLESS ( bibitemloo.holdable ) %]
185
                                    [% IF ( bibitemloo.ageRestricted ) %]
186
                                        <div class="alert">Sorry, you are too young to reserve this material.</div>
187
                                    [% END %]
188
                                    [% IF ( bibitemloo.already_reserved ) %]
189
                                        <div class="alert">You have already requested this title.</div>
190
                                    [% ELSE %]
191
                                        [% UNLESS ( bibitemloo.bib_available ) %]
192
                                            <div class="alert">There are no items that can be placed on hold.</div>
193
                                        [% ELSE %]
194
                                            [% IF ( bibitemloo.already_patron_possession ) %]
195
                                                <div class="alert">This title cannot be requested because it's already in your possession.</div>
190
                                            [% ELSE %]
196
                                            [% ELSE %]
191
                                                [% UNLESS ( bibitemloo.bib_available ) %]
197
                                                <div class="alert">This title cannot be requested.</div>
192
                                                    <div class="alert">There are no items that can be placed on hold.</div>
198
                                            [% END %]
193
                                                [% ELSE %]
199
                                        [% END # / UNLESS bibitemloo.bib_available %]
194
                                                    [% IF ( bibitemloo.already_patron_possession ) %]
200
                                    [% END # / IF bibitemloo.already_reserved %]
195
                                                        <div class="alert">This title cannot be requested because it's already in your possession.</div>
201
                                [% END # / UNLESS bibitemloo.holdable %]
196
                                                    [% ELSE %]
202
197
                                                        <div class="alert">This title cannot be requested.</div>
203
                                [% IF ( bibitemloo.holdable ) %]
198
                                                    [% END %]
204
                                    <fieldset class="rows">
199
                                                [% END # / UNLESS bibitemloo.bib_available %]
205
                                        <ul>
200
                                            [% END # / IF bibitemloo.already_reserved %]
206
                                            <!-- HOLDABLE -->
201
                                        [% END # / UNLESS bibitemloo.holdable %]
207
                                            [% UNLESS ( item_level_itypes ) %]
202
208
                                                <li class="itype">
203
                                        [% IF ( bibitemloo.holdable ) %]
209
                                                    <span class="label">Item type: </span>
204
                                            <fieldset class="rows">
210
                                                    [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl | html %]" alt="" />[% END %]
205
                                                <ul>
211
                                                    [% bibitemloo.translated_description | html %]
206
                                                    <!-- HOLDABLE -->
212
                                                </li>
207
                                                    [% UNLESS ( item_level_itypes ) %]
213
                                            [% END %]
208
                                                        <li class="itype">
209
                                                            <span class="label">Item type: </span>
210
                                                            [% IF ( bibitemloo.imageurl ) %]<img src="[% bibitemloo.imageurl | html %]" alt="" />[% END %]
211
                                                            [% bibitemloo.translated_description | html %]
212
                                                        </li>
213
                                                    [% END %]
214
215
                                                    [% SET OPACShowHoldQueueDetails = Koha.Preference('OPACShowHoldQueueDetails') %]
216
                                                    [% IF OPACShowHoldQueueDetails == 'holds_priority' || OPACShowHoldQueueDetails == 'priority' %]
217
                                                        <li class="priority">
218
                                                            <span class="label">Your priority: </span>
219
                                                            [% bibitemloo.rank | html %]
220
                                                        </li>
221
                                                    [% END %]
222
223
                                                    [% IF OPACShowHoldQueueDetails == 'holds_priority' || OPACShowHoldQueueDetails == 'holds' %]
224
                                                        <li class="holds-count">
225
                                                            <span class="label">Number of holds: </span>
226
                                                            [% bibitemloo.reservecount | html %]
227
                                                        </li>
228
                                                    [% END %]
229
230
                                                    [% UNLESS ( singleBranchMode ) %]
231
                                                        [% IF ( bibitemloo.holdable && Koha.Preference('OPACAllowUserToChooseBranch')) %]
232
                                                            <li class="branch">
233
                                                                <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
234
                                                                [% UNLESS ( bibitemloo.holdable ) %]
235
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
236
                                                                        [% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => bibitemloo.biblionumber }, selected => branch }) %]
237
                                                                    </select>
238
                                                                [% ELSE %]
239
                                                                    [% SET at_least_one_library_not_available_for_pickup = 0 %]
240
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]">
241
                                                                        [% FOREACH library IN Branches.all({ search_params => { pickup_location => 1 }, selected => branch }) %]
242
                                                                            [% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %]
243
                                                                            [% IF library.selected AND pickup_available_at %]
244
                                                                                <option value="[% library.branchcode | html %]" selected="selected" >[% library.branchname | html %]</option>
245
                                                                            [% ELSIF pickup_available_at %]
246
                                                                                <option value="[% library.branchcode | html %]">[% library.branchname | html %]</option>
247
                                                                            [% ELSE %]
248
                                                                                [% SET at_least_one_library_not_available_for_pickup = 1 %]
249
                                                                                <option value="[% library.branchcode | html %]" disabled="disabled" title="At least one item is available at this library">[% library.branchname | html %]</option>
250
                                                                            [% END %]
251
                                                                        [% END %]
252
                                                                    </select>
253
                                                                    [% IF at_least_one_library_not_available_for_pickup %]
254
                                                                        <br>Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
255
                                                                    [% END %]
256
                                                                [% END # / UNLESS bibitemloo.holdable %]
257
                                                            </li>
258
                                                        [% END # / IF bibitemloo.holdable && Koha.Preference('OPACAllowUserToChooseBranch') %]
259
                                                    [% END # / UNLESS singleBranchMode %]
260
                                                </ul>
261
262
                                                <a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber | html %]" style="display:none;" href="#">Show more options</a>
263
264
                                                <div id="hold-options-[% bibitemloo.biblionumber | html %]" class="hold-options">
265
266
                                                    <ul>
267
                                                        [% IF ( reserve_in_future ) %]
268
                                                            <li>
269
                                                                <label for="from[% bibitemloo.biblionumber | html %]">Hold starts on date:</label>
270
                                                                <input type="text" name="reserve_date_[% bibitemloo.biblionumber | html %]" id="from[% bibitemloo.biblionumber | html %]" size="10" class="holddatefrom"/>
271
                                                                <span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
272
                                                            </li>
273
                                                        [% END %]
274
214
275
                                                        <li>
215
                                            [% SET OPACShowHoldQueueDetails = Koha.Preference('OPACShowHoldQueueDetails') %]
276
                                                            <label for="to[% bibitemloo.biblionumber | html %]">Hold not needed after:</label>
216
                                            [% IF OPACShowHoldQueueDetails == 'holds_priority' || OPACShowHoldQueueDetails == 'priority' %]
277
                                                            <input type="text" name="expiration_date_[% bibitemloo.biblionumber | html %]" id="to[% bibitemloo.biblionumber | html %]" size="10" class="holddateto" />
217
                                                <li class="priority">
278
                                                            <span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
218
                                                    <span class="label">Your priority: </span>
279
                                                        </li>
219
                                                    [% bibitemloo.rank | html %]
220
                                                </li>
221
                                            [% END %]
280
222
281
                                                        [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
223
                                            [% IF OPACShowHoldQueueDetails == 'holds_priority' || OPACShowHoldQueueDetails == 'holds' %]
282
                                                            [% itemtypes = [] %]
224
                                                <li class="holds-count">
283
                                                            [% FOREACH item IN bibitemloo.itemLoop %]
225
                                                    <span class="label">Number of holds: </span>
284
                                                                [% itemtypes.push( item.itype ) %]
226
                                                    [% bibitemloo.reservecount | html %]
285
                                                            [%- END %]
227
                                                </li>
286
                                                            <li>
228
                                            [% END %]
287
                                                                <label for="itemtype">Request specific item type:</label>
288
                                                                <select name="itemtype" size="1" id="itemtype">
289
                                                                    <option value="">Any item type</option>
290
                                                                    [% FOREACH i IN itemtypes.unique.sort %]
291
                                                                        <option value="[% i | html %]">[% ItemTypes.GetDescription( i ) | html %]</option>
292
                                                                    [%- END %]
293
                                                                </select>
294
                                                            </li>
295
                                                        [% END %]
296
229
297
                                                        [% IF ( OpacHoldNotes ) %]
230
                                            [% UNLESS ( singleBranchMode ) %]
298
                                                            <li>
231
                                                [% IF ( bibitemloo.holdable && Koha.Preference('OPACAllowUserToChooseBranch')) %]
299
                                                                <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]">
232
                                                    <li class="branch">
300
                                                                    <label for="holdnotes_[% bibitemloo.biblionumber | html %]">Hold notes:</label>
233
                                                        <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
301
                                                                    [% IF bibitemloo.reqholdnotes %]
234
                                                        [% UNLESS ( bibitemloo.holdable ) %]
302
                                                                        <span id="reqholdnotes_[% bibitemloo.biblionumber | html %]">Please enter additional information about the requested item:</span>
235
                                                            <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
236
                                                                [% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => bibitemloo.biblionumber }, selected => branch }) %]
237
                                                            </select>
238
                                                        [% ELSE %]
239
                                                            [% SET at_least_one_library_not_available_for_pickup = 0 %]
240
                                                            <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]">
241
                                                                [% FOREACH library IN Branches.all({ search_params => { pickup_location => 1 }, selected => branch }) %]
242
                                                                    [% SET pickup_available_at = bibitemloo.not_available_at.grep(library.branchcode).size ? 0 : 1 %]
243
                                                                    [% IF library.selected AND pickup_available_at %]
244
                                                                        <option value="[% library.branchcode | html %]" selected="selected" >[% library.branchname | html %]</option>
245
                                                                    [% ELSIF pickup_available_at %]
246
                                                                        <option value="[% library.branchcode | html %]">[% library.branchname | html %]</option>
247
                                                                    [% ELSE %]
248
                                                                        [% SET at_least_one_library_not_available_for_pickup = 1 %]
249
                                                                        <option value="[% library.branchcode | html %]" disabled="disabled" title="At least one item is available at this library">[% library.branchname | html %]</option>
303
                                                                    [% END %]
250
                                                                    [% END %]
304
                                                                    <textarea id="holdnotes_[% bibitemloo.biblionumber | html %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber | html %]" >[% bibitemloo.holdnotes | html %]</textarea>
305
                                                                </div>
306
                                                            </li>
307
                                                        [% END # / IF OpacHoldNotes %]
308
309
                                                        [% IF bibitemloo.itemholdable %]
310
                                                            <!-- ITEM HOLDS -->
311
                                                            <li class="lradio place_on_type" style="display:none;">
312
                                                                [% IF NOT bibitemloo.force_hold %]
313
                                                                    <label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label>
314
                                                                    <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
315
                                                                            id="reqany_[% bibitemloo.biblionumber | html %]"
316
                                                                            class="selectany"
317
                                                                            value="Any"
318
                                                                            checked="checked"
319
                                                                    />
320
                                                                [% END %]
321
                                                                <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber | html %]">A specific item</label>
322
                                                                <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
323
                                                                       id="reqspecific_[% bibitemloo.biblionumber | html %]"
324
                                                                       class="selectspecific"
325
                                                                       value="Specific"
326
                                                                />
327
                                                            </li>
328
                                                        [% END # / IF bibitemloo.itemholdable %]
329
                                                    </ul>
330
331
                                                    [% IF bibitemloo.itemholdable %]
332
                                                        <table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber | html %]">
333
                                                            <caption>Select a specific item:</caption>
334
                                                            <tr>
335
                                                                <th>Copy number</th>
336
                                                                [% IF ( item_level_itypes ) %]
337
                                                                    <th>Item type</th>
338
                                                                [% END %]
251
                                                                [% END %]
339
                                                                <th>Barcode</th>
252
                                                            </select>
340
                                                                [% UNLESS ( singleBranchMode ) %]
253
                                                            [% IF at_least_one_library_not_available_for_pickup %]
341
                                                                    <th>Home library</th>
254
                                                                <br>Note: Library policy does not allow hold/pickup of an item available locally. Please come to the library to retrieve these items
342
                                                                    <th>Last location</th>
255
                                                            [% END %]
343
                                                                [% END %]
256
                                                        [% END # / UNLESS bibitemloo.holdable %]
344
                                                                [% IF ( itemdata_ccode ) %]
257
                                                    </li>
345
                                                                    <th>Collection</th>
258
                                                [% END # / IF bibitemloo.holdable && Koha.Preference('OPACAllowUserToChooseBranch') %]
259
                                            [% END # / UNLESS singleBranchMode %]
260
                                        </ul>
261
262
                                        <a class="toggle-hold-options" id="toggle-hold-options-[% bibitemloo.biblionumber | html %]" style="display:none;" href="#">Show more options</a>
263
264
                                        <div id="hold-options-[% bibitemloo.biblionumber | html %]" class="hold-options">
265
266
                                            <ul>
267
                                                [% IF ( reserve_in_future ) %]
268
                                                    <li>
269
                                                        <label for="from[% bibitemloo.biblionumber | html %]">Hold starts on date:</label>
270
                                                        <input type="text" name="reserve_date_[% bibitemloo.biblionumber | html %]" id="from[% bibitemloo.biblionumber | html %]" size="10" class="holddatefrom"/>
271
                                                        <span class="date-format from" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
272
                                                    </li>
273
                                                [% END %]
274
275
                                                <li>
276
                                                    <label for="to[% bibitemloo.biblionumber | html %]">Hold not needed after:</label>
277
                                                    <input type="text" name="expiration_date_[% bibitemloo.biblionumber | html %]" id="to[% bibitemloo.biblionumber | html %]" size="10" class="holddateto" />
278
                                                    <span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
279
                                                </li>
280
281
                                                [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
282
                                                    [% itemtypes = [] %]
283
                                                    [% FOREACH item IN bibitemloo.itemLoop %]
284
                                                        [% itemtypes.push( item.itype ) %]
285
                                                    [%- END %]
286
                                                    <li>
287
                                                        <label for="itemtype">Request specific item type:</label>
288
                                                        <select name="itemtype" size="1" id="itemtype">
289
                                                            <option value="">Any item type</option>
290
                                                            [% FOREACH i IN itemtypes.unique.sort %]
291
                                                                <option value="[% i | html %]">[% ItemTypes.GetDescription( i ) | html %]</option>
292
                                                            [%- END %]
293
                                                        </select>
294
                                                    </li>
295
                                                [% END %]
296
297
                                                [% IF ( OpacHoldNotes ) %]
298
                                                    <li>
299
                                                        <div class="notesrow" id="notesrow_[% bibitemloo.biblionumber | html %]">
300
                                                            <label for="holdnotes_[% bibitemloo.biblionumber | html %]">Hold notes:</label>
301
                                                            [% IF bibitemloo.reqholdnotes %]
302
                                                                <span id="reqholdnotes_[% bibitemloo.biblionumber | html %]">Please enter additional information about the requested item:</span>
303
                                                            [% END %]
304
                                                            <textarea id="holdnotes_[% bibitemloo.biblionumber | html %]" rows="2" cols="30" name="notes_[% bibitemloo.biblionumber | html %]" >[% bibitemloo.holdnotes | html %]</textarea>
305
                                                        </div>
306
                                                    </li>
307
                                                [% END # / IF OpacHoldNotes %]
308
309
                                                [% IF bibitemloo.itemholdable %]
310
                                                    <!-- ITEM HOLDS -->
311
                                                    <li class="lradio place_on_type" style="display:none;">
312
                                                        [% IF NOT bibitemloo.force_hold %]
313
                                                            <label class="radio inline" for="reqany_[% bibitemloo.biblionumber | html %]">Next available item</label>
314
                                                            <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
315
                                                                    id="reqany_[% bibitemloo.biblionumber | html %]"
316
                                                                    class="selectany"
317
                                                                    value="Any"
318
                                                                    checked="checked"
319
                                                            />
320
                                                        [% END %]
321
                                                        <label class="radio inline" for="reqspecific_[% bibitemloo.biblionumber | html %]">A specific item</label>
322
                                                        <input type="radio" name="reqtype_[% bibitemloo.biblionumber | html %]"
323
                                                               id="reqspecific_[% bibitemloo.biblionumber | html %]"
324
                                                               class="selectspecific"
325
                                                               value="Specific"
326
                                                        />
327
                                                    </li>
328
                                                [% END # / IF bibitemloo.itemholdable %]
329
                                            </ul>
330
331
                                            [% IF bibitemloo.itemholdable %]
332
                                                <table class="copiesrow table table-bordered table-striped" id="copiesrow_[% bibitemloo.biblionumber | html %]">
333
                                                    <caption>Select a specific item:</caption>
334
                                                    <tr>
335
                                                        <th>Copy number</th>
336
                                                        [% IF ( item_level_itypes ) %]
337
                                                            <th>Item type</th>
338
                                                        [% END %]
339
                                                        <th>Barcode</th>
340
                                                        [% UNLESS ( singleBranchMode ) %]
341
                                                            <th>Home library</th>
342
                                                            <th>Last location</th>
343
                                                        [% END %]
344
                                                        [% IF ( itemdata_ccode ) %]
345
                                                            <th>Collection</th>
346
                                                        [% END %]
347
                                                        <th>Call number</th>
348
                                                        [% IF ( itemdata_enumchron ) %]
349
                                                            <th>Vol info</th>
350
                                                        [% END %]
351
                                                        <th>Information</th>
352
                                                    </tr>
353
354
                                                    [% FOREACH itemLoo IN bibitemloo.itemLoop %]
355
                                                        <tr class="[% itemLoo.backgroundcolor | html %]">
356
                                                            <td class="copynumber">
357
                                                                [% IF ( itemLoo.available ) %]
358
                                                                    <input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber | html %]" name="checkitem_[% bibitemloo.biblionumber | html %]" value="[% itemLoo.itemnumber | html %]" />
359
                                                                [% ELSE %]
360
                                                                    <input disabled="disabled" type="radio" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber | html %]"
361
                                                                           style="display:none;" />
362
                                                                    <img src="[% interface | html %]/lib/famfamfam/cross.png" alt="Cannot be put on hold" title="Cannot be put on hold" />
346
                                                                [% END %]
363
                                                                [% END %]
347
                                                                <th>Call number</th>
364
348
                                                                [% IF ( itemdata_enumchron ) %]
365
                                                                [% IF ( itemLoo.copynumber ) %]
349
                                                                    <th>Vol info</th>
366
                                                                    [% itemLoo.copynumber | html %]
350
                                                                [% END %]
367
                                                                [% END %]
351
                                                                <th>Information</th>
368
                                                            </td>
352
                                                            </tr>
353
354
                                                            [% FOREACH itemLoo IN bibitemloo.itemLoop %]
355
                                                                <tr class="[% itemLoo.backgroundcolor | html %]">
356
                                                                    <td class="copynumber">
357
                                                                        [% IF ( itemLoo.available ) %]
358
                                                                            <input type="radio" class="checkitem checkitem_[% bibitemloo.biblionumber | html %]" name="checkitem_[% bibitemloo.biblionumber | html %]" value="[% itemLoo.itemnumber | html %]" />
359
                                                                        [% ELSE %]
360
                                                                            <input disabled="disabled" type="radio" class="checkitem" name="checkitem" value="[% itemLoo.itemnumber | html %]"
361
                                                                                   style="display:none;" />
362
                                                                            <img src="[% interface | html %]/lib/famfamfam/cross.png" alt="Cannot be put on hold" title="Cannot be put on hold" />
363
                                                                        [% END %]
364
369
365
                                                                        [% IF ( itemLoo.copynumber ) %]
370
                                                            [% IF ( item_level_itypes ) %]
366
                                                                            [% itemLoo.copynumber | html %]
371
                                                                <td class="itype">
372
                                                                    [% UNLESS ( noItemTypeImages ) %]
373
                                                                        [% IF ( itemLoo.imageurl ) %]
374
                                                                            <img src="[% itemLoo.imageurl | html %]" alt="" />
367
                                                                        [% END %]
375
                                                                        [% END %]
368
                                                                    </td>
369
370
                                                                    [% IF ( item_level_itypes ) %]
371
                                                                        <td class="itype">
372
                                                                            [% UNLESS ( noItemTypeImages ) %]
373
                                                                                [% IF ( itemLoo.imageurl ) %]
374
                                                                                    <img src="[% itemLoo.imageurl | html %]" alt="" />
375
                                                                                [% END %]
376
                                                                            [% END %]
377
                                                                            [% itemLoo.translated_description | html %]
378
                                                                        </td>
379
                                                                    [% END %]
376
                                                                    [% END %]
377
                                                                    [% itemLoo.translated_description | html %]
378
                                                                </td>
379
                                                            [% END %]
380
381
                                                            <td class="barcode">[% itemLoo.barcode | html %]</td>
382
                                                            [% UNLESS ( singleBranchMode ) %]
383
                                                                <td class="homebranch">[% Branches.GetName( itemLoo.homeBranchName ) | html %]</td>
384
                                                                <td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) | html %]</td>
385
                                                            [% END %]
386
                                                            [% IF ( itemdata_ccode ) %]
387
                                                                <td class="ccode"> [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetByCode( 'CCODE', itemLoo.ccode, 1 ) | html %][% END %]</td>
388
                                                            [% END %]
389
                                                            <td class="call_no">[% itemLoo.callNumber | html %]</td>
390
                                                            [% IF ( itemdata_enumchron ) %]
391
                                                                <td class="vol_info">[% itemLoo.enumchron | html %]</td>
392
                                                            [% END %]
393
                                                            <td class="information">
394
                                                                [% IF ( itemLoo.dateDue ) %]
395
                                                                    <span class="checkedout">Due [% itemLoo.dateDue | html %]</span>
396
                                                                [% ELSIF ( itemLoo.transfertwhen ) %]
397
                                                                    <span class="intransit">In transit from [% Branches.GetName( itemLoo.transfertfrom ) | html %] to [% Branches.GetName( itemLoo.transfertto ) | html %] since [% itemLoo.transfertwhen | html %]</span>
398
                                                                [% END %]
380
399
381
                                                                    <td class="barcode">[% itemLoo.barcode | html %]</td>
400
                                                                [% IF ( itemLoo.message ) %]
382
                                                                    [% UNLESS ( singleBranchMode ) %]
401
                                                                    <span class="lost">Unavailable (lost or missing)</span>
383
                                                                        <td class="homebranch">[% Branches.GetName( itemLoo.homeBranchName ) | html %]</td>
402
                                                                [% END %]
384
                                                                        <td class="holdingbranch">[% Branches.GetName( itemLoo.holdingBranchName ) | html %]</td>
385
                                                                    [% END %]
386
                                                                    [% IF ( itemdata_ccode ) %]
387
                                                                        <td class="ccode"> [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetByCode( 'CCODE', itemLoo.ccode, 1 ) | html %][% END %]</td>
388
                                                                    [% END %]
389
                                                                    <td class="call_no">[% itemLoo.callNumber | html %]</td>
390
                                                                    [% IF ( itemdata_enumchron ) %]
391
                                                                        <td class="vol_info">[% itemLoo.enumchron | html %]</td>
392
                                                                    [% END %]
393
                                                                    <td class="information">
394
                                                                        [% IF ( itemLoo.dateDue ) %]
395
                                                                            <span class="checkedout">Due [% itemLoo.dateDue | html %]</span>
396
                                                                        [% ELSIF ( itemLoo.transfertwhen ) %]
397
                                                                            <span class="intransit">In transit from [% Branches.GetName( itemLoo.transfertfrom ) | html %] to [% Branches.GetName( itemLoo.transfertto ) | html %] since [% itemLoo.transfertwhen | html %]</span>
398
                                                                        [% END %]
399
403
400
                                                                        [% IF ( itemLoo.message ) %]
404
                                                                [% IF ( itemLoo.notforloan ) %]
401
                                                                            <span class="lost">Unavailable (lost or missing)</span>
405
                                                                    <span class="notforloan">Not for loan ([% itemLoo.notforloanvalue | html %])</span>
402
                                                                        [% END %]
406
                                                                [% END %]
403
407
404
                                                                        [% IF ( itemLoo.notforloan ) %]
408
                                                                [% IF ( itemLoo.reservedate ) %]
405
                                                                            <span class="notforloan">Not for loan ([% itemLoo.notforloanvalue | html %])</span>
409
                                                                    <span class="waiting">
410
                                                                        [% IF ( itemLoo.waitingdate ) %]
411
                                                                            Waiting
412
                                                                        [% ELSE %]
413
                                                                            On hold
406
                                                                        [% END %]
414
                                                                        [% END %]
407
415
                                                                        for patron
408
                                                                        [% IF ( itemLoo.reservedate ) %]
416
                                                                        [% IF ( itemLoo.waitingdate ) %]
409
                                                                            <span class="waiting">
417
                                                                            at
410
                                                                                [% IF ( itemLoo.waitingdate ) %]
418
                                                                        [% ELSE %]
411
                                                                                    Waiting
419
                                                                            expected at
412
                                                                                [% ELSE %]
420
                                                                        [% END %]
413
                                                                                    On hold
421
                                                                        [% itemLoo.ExpectedAtLibrary | html %] since
414
                                                                                [% END %]
422
                                                                        [% IF ( itemLoo.waitingdate ) %]
415
                                                                                for patron
423
                                                                            [% itemLoo.waitingdate | $KohaDates %]
416
                                                                                [% IF ( itemLoo.waitingdate ) %]
417
                                                                                    at
418
                                                                                [% ELSE %]
419
                                                                                    expected at
420
                                                                                [% END %]
421
                                                                                [% itemLoo.ExpectedAtLibrary | html %] since
422
                                                                                [% IF ( itemLoo.waitingdate ) %]
423
                                                                                    [% itemLoo.waitingdate | $KohaDates %]
424
                                                                                [% ELSE %]
425
                                                                                    [% IF ( itemLoo.reservedate ) %]
426
                                                                                        [% itemLoo.reservedate | html %]
427
                                                                                    [% END %]
428
                                                                                [% END %].
429
                                                                            </span>
430
                                                                        [% ELSE %]
424
                                                                        [% ELSE %]
431
                                                                            <span class="notonhold">Not on hold</span>
425
                                                                            [% IF ( itemLoo.reservedate ) %]
432
                                                                        [% END # / IF ( itemLoo.reservedate )%]
426
                                                                                [% itemLoo.reservedate | html %]
433
                                                                    </td>
427
                                                                            [% END %]
434
                                                                </tr>
428
                                                                        [% END %].
435
                                                            [% END # / FOREACH itemLoo IN bibitemloo.itemLoop%]
429
                                                                    </span>
436
                                                        </table> <!-- / #copiesrow_[% bibitemloo.biblionumber | html %] -->
430
                                                                [% ELSE %]
437
                                                    [% END # / IF ( bibitemloo.itemholdable )%]
431
                                                                    <span class="notonhold">Not on hold</span>
438
                                                </div> <!-- / #hold-options-[% bibitemloo.biblionumber | html %] -->
432
                                                                [% END # / IF ( itemLoo.reservedate )%]
439
                                            </fieldset>
433
                                                            </td>
440
                                        [% END # / IF ( bibitemloo.holdable ) %]
434
                                                        </tr>
441
                                    </div> <!-- / .holdrow -->
435
                                                    [% END # / FOREACH itemLoo IN bibitemloo.itemLoop%]
442
                                [% END # / FOREACH bibitemloo IN bibitemloop %]
436
                                                </table> <!-- / #copiesrow_[% bibitemloo.biblionumber | html %] -->
443
                            </div><!-- #bigloop -->
437
                                            [% END # / IF ( bibitemloo.itemholdable )%]
444
438
                                        </div> <!-- / #hold-options-[% bibitemloo.biblionumber | html %] -->
445
                            [% UNLESS ( none_available ) %]
439
                                    </fieldset>
446
                                <input type="submit" value="Confirm hold" class="btn placehold" />
440
                                [% END # / IF ( bibitemloo.holdable ) %]
447
                            [% END %]
441
                            </div> <!-- / .holdrow -->
448
442
                        [% END # / FOREACH bibitemloo IN bibitemloop %]
449
                        </form>
443
                    </div><!-- #bigloop -->
450
                    [% END # / UNLESS message %]
444
451
                </div> <!-- / #holds -->
445
                    [% UNLESS ( none_available ) %]
446
                        <input type="submit" value="Confirm hold" class="btn placehold" />
447
                    [% END %]
448
449
                </form>
450
            [% END # / UNLESS message %]
451
        </div> <!-- / #holds -->
452
    </div> <!-- / .container -->
452
    </div> <!-- / .container -->
453
</div> <!-- / .main -->
453
</div> <!-- / .main -->
454
[% INCLUDE 'opac-bottom.inc' %]
454
[% INCLUDE 'opac-bottom.inc' %]
455
- 

Return to bug 22951