|
Lines 13-23
Link Here
|
| 13 |
[% USE TablesSettings %] |
13 |
[% USE TablesSettings %] |
| 14 |
[% PROCESS 'i18n.inc' %] |
14 |
[% PROCESS 'i18n.inc' %] |
| 15 |
[% SET footerjs = 1 %] |
15 |
[% SET footerjs = 1 %] |
|
|
16 |
[% formulaire = BLOCK %] |
| 17 |
[% INCLUDE 'circ-search.inc' %] |
| 18 |
[% END %] |
| 16 |
[% INCLUDE 'doc-head-open.inc' %] |
19 |
[% INCLUDE 'doc-head-open.inc' %] |
| 17 |
[% SET libraries = Branches.all %] |
|
|
| 18 |
[% SET categories = Categories.all.unblessed %] |
| 19 |
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %] |
| 20 |
[% PROCESS "patron-search.inc" %] |
| 21 |
[% UNLESS ( multi_hold ) %] |
20 |
[% UNLESS ( multi_hold ) %] |
| 22 |
<title>Place a hold on [% INCLUDE 'biblio-title-head.inc' %] › Holds › Circulation › Koha</title> |
21 |
<title>Place a hold on [% INCLUDE 'biblio-title-head.inc' %] › Holds › Circulation › Koha</title> |
| 23 |
[% ELSE %] |
22 |
[% ELSE %] |
|
Lines 93-100
Link Here
|
| 93 |
|
92 |
|
| 94 |
<body id="circ_request" class="catalog"> |
93 |
<body id="circ_request" class="catalog"> |
| 95 |
|
94 |
|
| 96 |
[% INCLUDE 'header.inc' %] |
95 |
[% INCLUDE 'header.inc' form=formulaire %] |
| 97 |
[% INCLUDE 'circ-search.inc' %] |
|
|
| 98 |
|
96 |
|
| 99 |
[% UNLESS ( multi_hold ) %] |
97 |
[% UNLESS ( multi_hold ) %] |
| 100 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
98 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
|
Lines 114-119
Link Here
|
| 114 |
</a> |
112 |
</a> |
| 115 |
</li> |
113 |
</li> |
| 116 |
</ol> |
114 |
</ol> |
|
|
115 |
<ol> |
| 116 |
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %] |
| 117 |
</ol> |
| 118 |
<ol> |
| 119 |
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a> |
| 120 |
</ol> |
| 117 |
</nav> |
121 |
</nav> |
| 118 |
[% ELSE %] |
122 |
[% ELSE %] |
| 119 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
123 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
|
Lines 154-160
Link Here
|
| 154 |
[% END %] |
158 |
[% END %] |
| 155 |
|
159 |
|
| 156 |
<main> |
160 |
<main> |
| 157 |
<h1>Holds</h1> |
|
|
| 158 |
|
161 |
|
| 159 |
[% IF ( nobiblio ) %] |
162 |
[% IF ( nobiblio ) %] |
| 160 |
<div class="dialog alert"> |
163 |
<div class="dialog alert"> |
|
Lines 187-193
Link Here
|
| 187 |
[% END %] |
190 |
[% END %] |
| 188 |
|
191 |
|
| 189 |
[% UNLESS ( multi_hold ) %] |
192 |
[% UNLESS ( multi_hold ) %] |
| 190 |
<h2>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %] [% IF biblio.author %] by [% biblio.author | html %][% END %]</h2> |
193 |
<h2>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h2> |
| 191 |
[% ELSE %] |
194 |
[% ELSE %] |
| 192 |
<h2> |
195 |
<h2> |
| 193 |
[% IF ( patron ) %] |
196 |
[% IF ( patron ) %] |
|
Lines 216-248
Link Here
|
| 216 |
<p>No club with this name, please, try another</p> |
219 |
<p>No club with this name, please, try another</p> |
| 217 |
</div> |
220 |
</div> |
| 218 |
[% END %] |
221 |
[% END %] |
| 219 |
<fieldset> |
222 |
<fieldset class="brief"> |
| 220 |
[% UNLESS multi_hold %] |
223 |
[% UNLESS multi_hold %] |
| 221 |
[% IF clubcount %] |
224 |
[% IF clubcount %] |
| 222 |
<h2>Search patrons or clubs</h2> |
225 |
<h3>Search patrons or clubs</h3> |
| 223 |
[% ELSE %] |
226 |
[% ELSE %] |
| 224 |
<h2>Search patrons</h2> |
227 |
<label>Search patrons</label> |
| 225 |
[% END %] |
228 |
[% END %] |
| 226 |
[% END %] |
229 |
[% END %] |
| 227 |
<div id="circ_holds_select" class="toptabs"> |
230 |
<div id="circ_holds_select" class="toptabs"> |
| 228 |
<ul class="nav nav-tabs" role="tablist"> |
231 |
<ul> |
| 229 |
<li role="presentation" class="active"><a href="#holds_patronsearch_pane" aria-controls="holds_patronsearch_pane" role="tab" data-toggle="tab">Patrons</a></li> |
232 |
<li><a href="#holds_patronsearch_pane">Patrons</a></li> |
| 230 |
[% IF clubcount %] |
233 |
[% IF clubcount %] |
| 231 |
<li role="presentation"><a href="#holds_clubsearch_pane" aria-controls="holds_clubsearch_pane" role="tab" data-toggle="tab">Clubs</a></li> |
234 |
<li><a href="#holds_clubsearch_pane">Clubs</a></li> |
| 232 |
[% END %] |
235 |
[% END %] |
| 233 |
</ul> |
236 |
</ul> |
| 234 |
<div class="tab-content"> |
237 |
<div class="tab-content"> |
| 235 |
<div id="holds_patronsearch_pane" role="tabpanel" class="tab-pane active"> |
238 |
<div id="holds_patronsearch_pane" role="tabpanel" class="tab-pane active"> |
| 236 |
[% PROCESS patron_search_filters_simple %] |
239 |
[% PROCESS patron_search_filters_simple %] |
| 237 |
|
240 |
|
| 238 |
[% PROCESS patron_search_table table_id => 'table_borrowers', open_on_row_click => 1 %] |
241 |
[% IF clubs %] |
|
|
242 |
[% INCLUDE 'clubs-table.inc' destination = "holds" %] |
| 243 |
[% END %] |
| 239 |
</div> |
244 |
</div> |
| 240 |
[% IF clubcount %] |
245 |
[% IF clubcount %] |
| 241 |
<div id="holds_clubsearch_pane" role="tabpanel" class="tab-pane"> |
246 |
<div id="holds_clubsearch_pane" role="tabpanel" class="tab-pane"> |
| 242 |
<form id="holds_clubsearch" action="request.pl" method="post"> |
247 |
<form id="holds_clubsearch" action="request.pl" method="post"> |
| 243 |
<div class="hint">Enter club ID or partial name:</div> |
248 |
<div class="hint">Enter club ID or partial name:</div> |
| 244 |
<input type="text" size="40" id="club" class="focus" name="findclub" autocomplete="off" /> |
249 |
<input type="text" size="40" id="club" class="focus" name="findclub" autocomplete="off" /> |
| 245 |
<input type="submit" value="Search" /> |
250 |
<input type="submit" class="principal" value="Search" /> |
| 246 |
[% FOREACH biblionumber IN biblionumbers %] |
251 |
[% FOREACH biblionumber IN biblionumbers %] |
| 247 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
252 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
| 248 |
[% END %] |
253 |
[% END %] |
|
Lines 260-279
Link Here
|
| 260 |
<div class="dialog alert hide clubalert"> |
265 |
<div class="dialog alert hide clubalert"> |
| 261 |
</div> |
266 |
</div> |
| 262 |
<fieldset class="rows"> |
267 |
<fieldset class="rows"> |
| 263 |
<legend>Hold details</legend> |
268 |
<h3>Hold details</h3> |
| 264 |
<form action="/api/v1/clubs/[% club.id | html %]/holds" method="post" name="form" id="club-request-form"> |
269 |
<form action="/api/v1/clubs/[% club.id | html %]/holds" method="post" name="form" id="club-request-form"> |
| 265 |
|
270 |
|
| 266 |
[% IF ( multi_hold ) %] |
271 |
[% IF ( multi_hold ) %] |
|
|
272 |
<input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/> |
| 273 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
| 267 |
<input type="hidden" name="request" value="any"/> |
274 |
<input type="hidden" name="request" value="any"/> |
| 268 |
[% FOREACH biblioloo IN biblioloop %] |
275 |
[% FOREACH biblioloo IN biblioloop %] |
| 269 |
[% UNLESS biblioloo.none_avail %] |
276 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
| 270 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/> |
277 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
| 271 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
|
|
| 272 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
| 273 |
[% END %] |
| 274 |
[% END %] |
278 |
[% END %] |
| 275 |
[% ELSE %] |
279 |
[% ELSE %] |
| 276 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblio.biblionumber | html %]"/> |
280 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
| 277 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
281 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
| 278 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
282 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
| 279 |
[% END # /IF multi_hold %] |
283 |
[% END # /IF multi_hold %] |
|
Lines 336-349
Link Here
|
| 336 |
[% END %] |
340 |
[% END %] |
| 337 |
[% UNLESS ( multi_hold ) %] |
341 |
[% UNLESS ( multi_hold ) %] |
| 338 |
<fieldset class="action"> |
342 |
<fieldset class="action"> |
| 339 |
<input type="submit" value="Place hold" /> |
343 |
<input type="submit" class="principal" value="Place hold" /> |
| 340 |
</fieldset> |
344 |
</fieldset> |
| 341 |
[% ELSE %] |
345 |
[% ELSE %] |
| 342 |
<table id="requesttitles"> |
346 |
<table id="requesttitles"> |
| 343 |
<tr> |
347 |
<tr> |
| 344 |
<th> </th> |
348 |
<th> </th> |
| 345 |
<th>Title</th> |
349 |
<th>Title</th> |
| 346 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
350 |
[% UNLESS ( item_level_itypes ) %] |
| 347 |
<th>Item type</th> |
351 |
<th>Item type</th> |
| 348 |
[% END %] |
352 |
[% END %] |
| 349 |
<th>Priority</th> |
353 |
<th>Priority</th> |
|
Lines 364-370
Link Here
|
| 364 |
<ul> |
368 |
<ul> |
| 365 |
<li> |
369 |
<li> |
| 366 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a> |
370 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a> |
| 367 |
[% IF biblioloo.author %] by [% biblioloo.author | html %][% END %] |
|
|
| 368 |
</li> |
371 |
</li> |
| 369 |
[% IF ( biblioloo.publicationyear ) %] |
372 |
[% IF ( biblioloo.publicationyear ) %] |
| 370 |
<li> |
373 |
<li> |
|
Lines 376-384
Link Here
|
| 376 |
<span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span> |
379 |
<span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span> |
| 377 |
[% END %] |
380 |
[% END %] |
| 378 |
</td> |
381 |
</td> |
| 379 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
382 |
[% UNLESS ( item_level_itypes ) %] |
| 380 |
<td> |
383 |
<td> |
| 381 |
<img src="[% biblioloo.itemtype.image_location| html %]" alt="[% biblioloo.itemtype.translated_description | html %]" title="[% biblioloo.itemtype.translated_description | html %]" /> |
384 |
<img src="[% biblioloo.imageurl | html %]" alt="[% biblioloo.itypename | html %]" title="[% biblioloo.itypename | html %]" /> |
| 382 |
</td> |
385 |
</td> |
| 383 |
[% END %] |
386 |
[% END %] |
| 384 |
<td>[% biblioloo.rank | html %]</td> |
387 |
<td>[% biblioloo.rank | html %]</td> |
|
Lines 427-433
Link Here
|
| 427 |
</div> |
430 |
</div> |
| 428 |
[% END %] |
431 |
[% END %] |
| 429 |
|
432 |
|
| 430 |
[% IF ( no_reserves_allowed || exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted || recall ) %] |
433 |
[% IF ( no_reserves_allowed || exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %] |
| 431 |
<div class="dialog alert"> |
434 |
<div class="dialog alert"> |
| 432 |
|
435 |
|
| 433 |
[% UNLESS ( multi_hold ) %] |
436 |
[% UNLESS ( multi_hold ) %] |
|
Lines 465-472
Link Here
|
| 465 |
<li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]"> [% biblioloo.title | html %]</a>:</strong> [% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %] can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li> |
468 |
<li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]"> [% biblioloo.title | html %]</a>:</strong> [% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %] can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li> |
| 466 |
[% END %] |
469 |
[% END %] |
| 467 |
[% END %] |
470 |
[% END %] |
| 468 |
[% ELSIF ( none_available ) %] |
|
|
| 469 |
<li><strong>No items available: </strong>One or more records have no items that can be held</li> |
| 470 |
[% END # /IF exceeded_maxreserves %] |
471 |
[% END # /IF exceeded_maxreserves %] |
| 471 |
[% END # /UNLESS multi_hold %] |
472 |
[% END # /UNLESS multi_hold %] |
| 472 |
</div> |
473 |
</div> |
|
Lines 505-529
Link Here
|
| 505 |
</div> |
506 |
</div> |
| 506 |
|
507 |
|
| 507 |
<fieldset class="rows"> |
508 |
<fieldset class="rows"> |
| 508 |
<legend>Hold details</legend> |
509 |
<h3>Hold details</h3> |
| 509 |
<form action="placerequest.pl" method="post" name="form" id="hold-request-form"> |
510 |
<form action="placerequest.pl" method="post" name="form" id="hold-request-form"> |
| 510 |
|
511 |
|
| 511 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
512 |
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
| 512 |
[% FOREACH biblionumber IN biblionumbers %] |
513 |
<input type="hidden" name="type" value="str8" /> |
| 513 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
514 |
|
| 514 |
[% END %] |
|
|
| 515 |
[% IF ( multi_hold ) %] |
515 |
[% IF ( multi_hold ) %] |
|
|
516 |
<input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/> |
| 516 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
517 |
<input type="hidden" name="multi_holds" id="multi_holds" value="1" /> |
|
|
518 |
<input type="hidden" name="bad_bibs" id="bad_bibs" value=""/> |
| 517 |
<input type="hidden" name="request" value="any"/> |
519 |
<input type="hidden" name="request" value="any"/> |
| 518 |
[% FOREACH biblioloo IN biblioloop %] |
520 |
[% FOREACH biblioloo IN biblioloop %] |
| 519 |
[% UNLESS biblioloo.none_avail %] |
521 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
| 520 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblioloo.biblionumber | html %]"/> |
522 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
| 521 |
<input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/> |
|
|
| 522 |
<input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/> |
| 523 |
[% END %] |
| 524 |
[% END %] |
523 |
[% END %] |
| 525 |
[% ELSE %] |
524 |
[% ELSE %] |
| 526 |
<input type="hidden" name="holdable_bibs" id="holdable_bibs" value="[% biblio.biblionumber | html %]"/> |
525 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
| 527 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
526 |
<input type="hidden" name="title" value="[% biblio.title | html %]" /> |
| 528 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
527 |
<input type="hidden" name="rank-request" value="[% fixedRank | html %]" /> |
| 529 |
[% END # /IF multi_hold %] |
528 |
[% END # /IF multi_hold %] |
|
Lines 604-609
Link Here
|
| 604 |
[% ELSE %] |
603 |
[% ELSE %] |
| 605 |
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" /> |
604 |
<input type="checkbox" id="requestany" name="request" checked="checked" value="Any" /> |
| 606 |
[% END %] |
605 |
[% END %] |
|
|
606 |
<input type="hidden" name="biblioitem" value="[% biblioitemnumber | html %]" /> |
| 607 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
607 |
<input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" /> |
| 608 |
</li> |
608 |
</li> |
| 609 |
|
609 |
|
|
Lines 625-795
Link Here
|
| 625 |
</ol> |
625 |
</ol> |
| 626 |
|
626 |
|
| 627 |
[% UNLESS ( multi_hold ) %] |
627 |
[% UNLESS ( multi_hold ) %] |
| 628 |
<fieldset class="action"> |
|
|
| 629 |
[% IF ( patron.borrowernumber ) %] |
| 630 |
[% IF ( override_required ) %] |
| 631 |
<button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
| 632 |
[% ELSIF ( none_available ) %] |
| 633 |
<button type="submit" disabled="disabled" class="btn btn-default btn-disabled">Place hold</button> |
| 634 |
[% ELSE %] |
| 635 |
<button type="submit" class="btn btn-default">Place hold</button> |
| 636 |
[% END %] |
| 637 |
[% END %] |
| 638 |
</fieldset> |
| 639 |
|
628 |
|
| 640 |
[% biblio = biblioloop.0 %] |
|
|
| 641 |
|
629 |
|
| 642 |
<ol> |
630 |
[% FOREACH bibitemloo IN bibitemloop %] |
| 643 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
631 |
<ol> |
| 644 |
<li> |
632 |
[% UNLESS ( item_level_itypes ) %] |
| 645 |
<span class="label">Item typeX:</span> |
633 |
<li> |
| 646 |
[% biblio.itemtype.translated_description | html %] |
634 |
<span class="label">Item type:</span> |
| 647 |
</li> |
635 |
[% bibitemloo.description | html %] |
| 648 |
[% END %] |
636 |
</li> |
|
|
637 |
[% END %] |
| 649 |
|
638 |
|
| 650 |
[% IF ( biblio.biblioitem.publicationyear ) %] |
639 |
[% IF ( bibitemloo.publicationyear ) %] |
| 651 |
<li> |
640 |
<li> |
| 652 |
<span class="label">Publication year:</span> |
641 |
<span class="label">Publication year:</span> |
| 653 |
[% biblio.biblioitem.publicationyear | html %] |
642 |
[% bibitemloo.publicationyear | html %] |
| 654 |
</li> |
643 |
</li> |
| 655 |
[% END %] |
644 |
[% END %] |
| 656 |
</ol> |
645 |
</ol> |
| 657 |
|
646 |
|
| 658 |
<h2 style="padding: 0 1em;"> |
647 |
<h2 style="padding: 0 1em;"> |
| 659 |
Place a hold on a specific item |
648 |
Place a hold on a specific item |
| 660 |
[% IF force_hold_level == 'item' %] |
649 |
[% IF bibitemloo.force_hold_level == 'item' %] |
| 661 |
<span class="error"><em>(Required)</em></span> |
650 |
<span class="error"><em>(Required)</em></span> |
| 662 |
[% END %] |
651 |
[% END %] |
| 663 |
</h2> |
652 |
</h2> |
| 664 |
|
653 |
|
| 665 |
<table id="requestspecific"> |
654 |
<table id="requestspecific"> |
| 666 |
<thead> |
655 |
<thead> |
| 667 |
<tr> |
656 |
<tr> |
| 668 |
<th>Hold</th> |
657 |
<th>Hold</th> |
| 669 |
<th>Allowed pickup locations</th> |
658 |
[% IF ( item_level_itypes ) %] |
| 670 |
[% IF Koha.Preference('item-level_itypes') %] |
659 |
<th>Item type</th> |
| 671 |
<th>Item type</th> |
660 |
[% END %] |
| 672 |
[% END %] |
661 |
<th>Barcode</th> |
| 673 |
<th>Barcode</th> |
662 |
<th>Home library</th> |
| 674 |
<th>Home library</th> |
663 |
<th>Last location</th> |
| 675 |
<th>Last location</th> |
664 |
[% IF itemdata_ccode %] |
| 676 |
[% IF itemdata_ccode %] |
665 |
<th>Collection</th> |
| 677 |
<th>Collection</th> |
666 |
[% END %] |
| 678 |
[% END %] |
667 |
<th>Call number</th> |
| 679 |
<th>Call number</th> |
668 |
<th>Copy number</th> |
| 680 |
<th>Copy number</th> |
669 |
[% IF itemdata_enumchron %] |
| 681 |
[% IF itemdata_enumchron %] |
670 |
<th>Vol no.</th> |
| 682 |
<th>Vol no.</th> |
671 |
[% END %] |
| 683 |
[% END %] |
672 |
<th>Information</th> |
| 684 |
<th>Information</th> |
673 |
<th>Allowed pickup locations</th> |
| 685 |
</tr> |
674 |
</tr> |
| 686 |
</thead> |
675 |
</thead> |
| 687 |
<tbody> |
676 |
<tbody> |
| 688 |
[% SET selected = 0 %] |
677 |
[% SET selected = 0 %] |
| 689 |
[% FOREACH itemloo IN biblio.itemloop %] |
678 |
[% FOREACH itemloo IN bibitemloo.itemloop %] |
| 690 |
[% UNLESS ( itemloo.hide ) %] |
679 |
[% UNLESS ( itemloo.hide ) %] |
| 691 |
<tr class="[% itemloo.backgroundcolor | html %]"> |
680 |
<tr class="[% itemloo.backgroundcolor | html %]"> |
| 692 |
<td> |
681 |
<td> |
| 693 |
[% IF force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
682 |
[% IF itemloo.force_hold_level == 'record' # Patron has placed a record level hold previously for this record %] |
| 694 |
<span class="error"> |
683 |
<span class="error"> |
| 695 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
684 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
| 696 |
Hold must be record level |
685 |
Hold must be record level |
| 697 |
</span> |
686 |
</span> |
| 698 |
[% ELSIF ( itemloo.available ) %] |
687 |
[% ELSIF ( itemloo.available ) %] |
| 699 |
<input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" /> |
688 |
<input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" /> |
| 700 |
[% ELSIF ( itemloo.override ) %] |
689 |
[% ELSIF ( itemloo.override ) %] |
| 701 |
<input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" /> |
690 |
<input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" /> |
| 702 |
<i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i> |
691 |
<i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i> |
| 703 |
[% ELSE %] |
692 |
[% ELSE %] |
| 704 |
<span class="error"> |
693 |
<span class="error"> |
| 705 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
694 |
<i class="fa fa-times fa-lg" title="Cannot be put on hold"></i> |
| 706 |
[% IF itemloo.not_holdable %] |
695 |
[% IF itemloo.not_holdable %] |
| 707 |
[% IF itemloo.not_holdable == 'damaged' %] |
696 |
[% IF itemloo.not_holdable == 'damaged' %] |
| 708 |
<span>Item damaged</span> |
697 |
Item damaged |
| 709 |
[% ELSIF itemloo.not_holdable == 'ageRestricted' %] |
698 |
[% ELSIF itemloo.not_holdable == 'ageRestricted' %] |
| 710 |
<span>Age restricted</span> |
699 |
Age restricted |
| 711 |
[% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %] |
700 |
[% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %] |
| 712 |
<span>Exceeded max holds per record</span> |
701 |
Exceeded max holds per record |
| 713 |
[% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %] |
702 |
[% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %] |
| 714 |
<span>Daily hold limit reached for patron</span> |
703 |
Daily hold limit reached for patron |
| 715 |
[% ELSIF itemloo.not_holdable == 'tooManyReserves' %] |
704 |
[% ELSIF itemloo.not_holdable == 'tooManyReserves' %] |
| 716 |
<span>Too many holds</span> |
705 |
Too many holds |
| 717 |
[% ELSIF itemloo.not_holdable == 'notReservable' %] |
706 |
[% ELSIF itemloo.not_holdable == 'notReservable' %] |
| 718 |
<span>Not holdable</span> |
707 |
Not holdable |
| 719 |
[% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %] |
708 |
[% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %] |
| 720 |
<span>Patron is from different library</span> |
709 |
Patron is from different library |
| 721 |
[% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %] |
710 |
[% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %] |
| 722 |
<span>Cannot place hold from patron's library</span> |
711 |
Cannot place hold from patron's library |
| 723 |
[% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %] |
712 |
[% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %] |
| 724 |
<span>Patron already has hold for this item</span> |
713 |
Patron already has hold for this item |
| 725 |
[% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %] |
714 |
[% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %] |
| 726 |
<span>Cannot be transferred to pickup library</span> |
715 |
Cannot be transferred to pickup library |
| 727 |
[% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %] |
716 |
[% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %] |
| 728 |
<span>Only pickup locations within the same hold group are allowed</span> |
717 |
Only pickup locations within the same hold group are allowed |
| 729 |
[% ELSIF itemloo.not_holdable == 'noReservesAllowed' %] |
718 |
[% ELSIF itemloo.not_holdable == 'noReservesAllowed' %] |
| 730 |
<span>No holds are allowed on this item</span> |
719 |
No reserves are allowed on this item |
| 731 |
[% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %] |
720 |
[% ELSIF itemloo.not_holdable == 'libraryNotPickupLocation' %] |
| 732 |
<span>Library is not a pickup location</span> |
721 |
Library is not a pickup location |
| 733 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
722 |
[% ELSIF itemloo.not_holdable == 'no_valid_pickup_location' %] |
| 734 |
<span>No valid pickup location</span> |
723 |
No valid pickup location |
| 735 |
[% ELSIF itemloo.not_holdable == 'notforloan' %] |
724 |
[% ELSE %] |
| 736 |
<span>Not for loan</span> |
725 |
[% itemloo.not_holdable | html %] |
| 737 |
[% ELSE %] |
726 |
[% END %] |
| 738 |
<span>[% itemloo.not_holdable | html %]</span> |
|
|
| 739 |
[% END %] |
727 |
[% END %] |
|
|
728 |
</span> |
| 729 |
[% END # /IF itemloo.force_hold_level %] |
| 730 |
</td> |
| 731 |
[% IF ( item_level_itypes ) %] |
| 732 |
<td> |
| 733 |
[% UNLESS ( noItemTypeImages ) %] |
| 734 |
[% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl | html %]" alt="" /> <br /> [% END %] |
| 740 |
[% END %] |
735 |
[% END %] |
| 741 |
</span> |
736 |
[% itemloo.itypename | html %] |
| 742 |
[% END # /IF force_hold_level %] |
737 |
</td> |
| 743 |
</td> |
|
|
| 744 |
<td> |
| 745 |
[% IF (itemloo.pickup_locations_count > 0) %] |
| 746 |
<select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations" style="width:100%;" |
| 747 |
data-item-id="[% itemloo.itemnumber | html %]" |
| 748 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 749 |
data-pickup-location-source="item"> |
| 750 |
[% IF (itemloo.default_pickup_location) %] |
| 751 |
<option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option> |
| 752 |
[% END %] |
738 |
[% END %] |
| 753 |
</select> |
|
|
| 754 |
[% END %] |
| 755 |
</td> |
| 756 |
[% IF Koha.Preference('item-level_itypes') %] |
| 757 |
<td> |
739 |
<td> |
| 758 |
[% UNLESS ( noItemTypeImages ) %] |
740 |
[% itemloo.barcode | html %] |
| 759 |
[% IF ( itemloo.itemtype.image_location) %]<img src="[% itemloo.itemtype.image_location | html %]" alt="" /> <br /> [% END %] |
|
|
| 760 |
[% END %] |
| 761 |
[% itemloo.itemtype.translated_description | html %] |
| 762 |
</td> |
741 |
</td> |
| 763 |
[% END %] |
|
|
| 764 |
<td> |
| 765 |
[% itemloo.barcode | html %] |
| 766 |
</td> |
| 767 |
<td> |
| 768 |
[% Branches.GetName( itemloo.homebranch ) | html %] |
| 769 |
</td> |
| 770 |
<td> |
| 771 |
[% Branches.GetName( itemloo.holdingbranch ) | html %] |
| 772 |
</td> |
| 773 |
[% IF itemdata_ccode %] |
| 774 |
<td> |
742 |
<td> |
| 775 |
[% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %] |
743 |
[% Branches.GetName( itemloo.homebranch ) | html %] |
| 776 |
</td> |
744 |
</td> |
| 777 |
[% END %] |
|
|
| 778 |
<td> |
| 779 |
[% itemloo.itemcallnumber | html %] |
| 780 |
</td> |
| 781 |
<td> |
| 782 |
[% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %] |
| 783 |
</td> |
| 784 |
[% IF itemdata_enumchron %] |
| 785 |
<td> |
745 |
<td> |
| 786 |
[% itemloo.enumchron | html %] |
746 |
[% Branches.GetName( itemloo.holdingbranch ) | html %] |
| 787 |
</td> |
747 |
</td> |
| 788 |
[% END %] |
748 |
[% IF itemdata_ccode %] |
| 789 |
[% IF ( itemloo.onloan ) %] |
749 |
<td> |
| 790 |
<td data-order="[% itemloo.date_due | html %]"> |
750 |
[% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %] |
| 791 |
<span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span> |
751 |
</td> |
| 792 |
[% ELSE %] |
752 |
[% END %] |
| 793 |
<td> |
753 |
<td> |
| 794 |
[% IF ( itemloo.transfertwhen ) %] |
754 |
[% IF ( itemloo.transfertwhen ) %] |
| 795 |
<span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %], |
755 |
<span>In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %], |
|
Lines 810-875
Link Here
|
| 810 |
[% IF ( itemloo.waitingdate ) %] |
770 |
[% IF ( itemloo.waitingdate ) %] |
| 811 |
[% itemloo.waitingdate | $KohaDates %] |
771 |
[% itemloo.waitingdate | $KohaDates %] |
| 812 |
[% ELSE %] |
772 |
[% ELSE %] |
| 813 |
[% IF ( itemloo.reservedate ) %] |
773 |
[% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %] |
| 814 |
[% itemloo.reservedate | html %] |
774 |
[% IF ( itemloo.canreservefromotherbranches ) %] |
|
|
775 |
for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber | uri %]">[% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]</a> |
| 815 |
[% END %] |
776 |
[% END %] |
| 816 |
[% END %]. |
777 |
[% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] |
| 817 |
<a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a> |
778 |
[% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since |
| 818 |
[% END # /IF itemloo.nocancel %] |
779 |
[% IF ( itemloo.waitingdate ) %] |
| 819 |
[% ELSE %] |
780 |
[% itemloo.waitingdate | $KohaDates %] |
| 820 |
Not on hold |
781 |
[% ELSE %] |
| 821 |
[% END # /IF itemloo.reservedate %] |
782 |
[% IF ( itemloo.reservedate ) %] |
|
|
783 |
[% itemloo.reservedate | html %] |
| 784 |
[% END %] |
| 785 |
[% END %]. |
| 786 |
<a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a> |
| 787 |
[% END # /IF itemloo.nocancel %] |
| 788 |
[% ELSE %] |
| 789 |
Not on hold |
| 790 |
[% END # /IF itemloo.reservedate %] |
| 822 |
|
791 |
|
| 823 |
[% IF itemloo.item_level_holds == "N" %] |
792 |
[% IF itemloo.item_level_holds == "N" %] |
| 824 |
<br/>Item level hold not allowed from OPAC |
793 |
<br/>Item level hold not allowed from OPAC |
| 825 |
[% ELSIF itemloo.item_level_holds == "F" %] |
794 |
[% ELSIF itemloo.item_level_holds == "F" %] |
| 826 |
<br/>Item level hold forced from OPAC |
795 |
<br/>Item level hold forced from OPAC |
| 827 |
[% END %] |
796 |
[% END %] |
| 828 |
|
797 |
|
| 829 |
[% IF ( itemloo.itemlost ) %] |
798 |
[% IF ( itemloo.itemlost ) %] |
| 830 |
<span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span> |
799 |
<span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span> |
| 831 |
[% END %] |
800 |
[% END %] |
| 832 |
|
801 |
|
| 833 |
[% IF ( itemloo.damaged ) %] |
802 |
[% IF ( itemloo.damaged ) %] |
| 834 |
<span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span> |
803 |
<span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span> |
| 835 |
[% END %] |
804 |
[% END %] |
| 836 |
|
805 |
|
| 837 |
[% IF ( itemloo.withdrawn ) %] |
806 |
[% IF ( itemloo.withdrawn ) %] |
| 838 |
<span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span> |
807 |
<span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span> |
| 839 |
[% END %] |
808 |
[% END %] |
| 840 |
|
809 |
|
| 841 |
[% IF ( itemloo.notforloan ) %] |
810 |
[% IF ( itemloo.notforloan ) %] |
| 842 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
811 |
<span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span> |
| 843 |
[% ELSIF ( itemloo.notforloanitype ) %] |
812 |
[% END %] |
| 844 |
<span class="nfl">Not for loan (Itemtype not for loan)</span> |
813 |
</td> |
|
|
814 |
<td> |
| 815 |
[% IF (itemloo.pickup_locations_count > 0) %] |
| 816 |
<select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations" style="width:100%;" |
| 817 |
data-item-id="[% itemloo.itemnumber | html %]" |
| 818 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 819 |
data-pickup-location-source="item"> |
| 820 |
[% IF (itemloo.default_pickup_location) %] |
| 821 |
<option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option> |
| 822 |
[% END %] |
| 823 |
</select> |
| 845 |
[% END %] |
824 |
[% END %] |
| 846 |
</td> |
825 |
</td> |
| 847 |
</tr> |
826 |
</tr> |
| 848 |
[% END # / UNLESS itemloo.hide %] |
827 |
[% END # / UNLESS itemloo.hide %] |
| 849 |
[% END # /FOREACH itemloo %] |
828 |
[% END # /FOREACH itemloo %] |
| 850 |
</tbody> |
829 |
</tbody> |
| 851 |
</table> <!-- /#requestspecific --> |
830 |
</table> <!-- /#requestspecific --> |
| 852 |
|
831 |
|
| 853 |
[% IF hiddencount %] |
832 |
[% IF ( bibitemloo.hiddencount ) %] |
| 854 |
<form> |
833 |
<form> |
| 855 |
<p class="hiddencount"> |
834 |
<p class="hiddencount"> |
| 856 |
<a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&borrowernumber=[% borrowernumber | uri %]&showallitems=1">Show all items ([% biblio.hiddencount | html %] hidden)</a> |
835 |
<a href="request.pl?biblionumber=[% bibitemloo.biblionumber | uri %]&borrowernumber=[% bibitemloo.borrowernumber | uri %]&showallitems=1">Show all items ([% bibitemloo.hiddencount | html %] hidden)</a> |
| 857 |
</p> |
836 |
</p> |
| 858 |
</form> |
837 |
</form> |
| 859 |
[% END # /IF hiddencount %] |
838 |
[% END # /IF bibitemloo.hiddencount %] |
|
|
839 |
[% END # /FOREACH bibitemloo %] |
| 860 |
|
840 |
|
| 861 |
[% ELSE # /UNLESS multi_hold %] |
841 |
[% ELSE # /UNLESS multi_hold %] |
| 862 |
|
842 |
|
| 863 |
<table id="requesttitles"> |
843 |
<table id="requesttitles"> |
| 864 |
<tr> |
844 |
<tr> |
| 865 |
<th> </th> |
845 |
<th> </th> |
| 866 |
<th>Pickup location</th> |
|
|
| 867 |
<th>Title</th> |
846 |
<th>Title</th> |
| 868 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
847 |
[% UNLESS ( item_level_itypes ) %] |
| 869 |
<th>Item type</th> |
848 |
<th>Item type</th> |
| 870 |
[% END %] |
849 |
[% END %] |
| 871 |
<th>Priority</th> |
850 |
<th>Priority</th> |
| 872 |
<th>Information</th> |
851 |
<th>Information</th> |
|
|
852 |
<th>Pickup location</th> |
| 873 |
</tr> |
853 |
</tr> |
| 874 |
[% FOREACH biblioloo IN biblioloop %] |
854 |
[% FOREACH biblioloo IN biblioloop %] |
| 875 |
[% IF ( biblioloo.warn ) %] |
855 |
[% IF ( biblioloo.warn ) %] |
|
Lines 879-906
Link Here
|
| 879 |
[% END %] |
859 |
[% END %] |
| 880 |
<td> |
860 |
<td> |
| 881 |
[% UNLESS ( biblioloo.warn ) %] |
861 |
[% UNLESS ( biblioloo.warn ) %] |
| 882 |
<input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/> |
862 |
<input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/> |
| 883 |
[% END %] |
863 |
</td> |
| 884 |
</td> |
|
|
| 885 |
<td> |
| 886 |
[% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %] |
| 887 |
<select name="pickup_[% biblioloo.biblionumber | html %]" |
| 888 |
class="multi_pickup_select" |
| 889 |
data-biblio-id="[% biblioloo.biblionumber | html %]" |
| 890 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 891 |
data-pickup-locations='[% biblioloo.pickup_locations_codes.json | $raw %]'> |
| 892 |
<option value=""></option> |
| 893 |
[% FOREACH pickup_location IN biblioloo.pickup_locations %] |
| 894 |
<option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option> |
| 895 |
[% END %] |
| 896 |
</select> |
| 897 |
[% END %] |
864 |
[% END %] |
| 898 |
</td> |
|
|
| 899 |
<td> |
865 |
<td> |
| 900 |
<ul> |
866 |
<ul> |
| 901 |
<li> |
867 |
<li> |
| 902 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a> |
868 |
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a> |
| 903 |
[% IF biblioloo.author %] by [% biblioloo.author | html %][% END %] |
|
|
| 904 |
</li> |
869 |
</li> |
| 905 |
[% IF ( biblioloo.publicationyear ) %] |
870 |
[% IF ( biblioloo.publicationyear ) %] |
| 906 |
<li> |
871 |
<li> |
|
Lines 912-920
Link Here
|
| 912 |
<span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span> |
877 |
<span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span> |
| 913 |
[% END %] |
878 |
[% END %] |
| 914 |
</td> |
879 |
</td> |
| 915 |
[% UNLESS Koha.Preference('item-level_itypes') %] |
880 |
[% UNLESS ( item_level_itypes ) %] |
| 916 |
<td> |
881 |
<td> |
| 917 |
<img src="[% biblioloo.itemtype.image_location | html %]" alt="[% biblioloo.itemtype.translated_description | html %]" title="[% biblioloo.itemtype.translated_description | html %]" /> |
882 |
<img src="[% biblioloo.imageurl | html %]" alt="[% biblioloo.itypename | html %]" title="[% biblioloo.itypename | html %]" /> |
| 918 |
</td> |
883 |
</td> |
| 919 |
[% END %] |
884 |
[% END %] |
| 920 |
<td>[% biblioloo.rank | html %]</td> |
885 |
<td>[% biblioloo.rank | html %]</td> |
|
Lines 947-952
Link Here
|
| 947 |
[% END %] |
912 |
[% END %] |
| 948 |
[% END %] |
913 |
[% END %] |
| 949 |
</td> |
914 |
</td> |
|
|
915 |
<td> |
| 916 |
[% UNLESS ( biblioloo.none_avail || biblioloo.noitems ) %] |
| 917 |
<select name="pickup_[% biblioloo.biblionumber | html %]" |
| 918 |
class="multi_pickup_select" |
| 919 |
data-biblio-id="[% biblioloo.biblionumber | html %]" |
| 920 |
data-patron-id="[% patron.borrowernumber | html %]" |
| 921 |
data-pickup-locations='[% biblioloo.pickup_locations_codes.json | $raw %]'> |
| 922 |
<option value=""></option> |
| 923 |
[% FOREACH pickup_location IN biblioloo.pickup_locations %] |
| 924 |
<option value="[% pickup_location.branchcode | html %]">[% pickup_location.branchname | html %]</option> |
| 925 |
[% END %] |
| 926 |
</select> |
| 927 |
[% END %] |
| 928 |
</td> |
| 950 |
</tr> |
929 |
</tr> |
| 951 |
[% END # /FOREACH biblioloo %] |
930 |
[% END # /FOREACH biblioloo %] |
| 952 |
</table> <!-- /#requesttitles --> |
931 |
</table> <!-- /#requesttitles --> |
|
Lines 971-977
Link Here
|
| 971 |
[% ELSIF ( none_available ) %] |
950 |
[% ELSIF ( none_available ) %] |
| 972 |
<button type="submit" class="btn btn-default btn-disabled" disabled="disabled">Place hold</button> |
951 |
<button type="submit" class="btn btn-default btn-disabled" disabled="disabled">Place hold</button> |
| 973 |
[% ELSE %] |
952 |
[% ELSE %] |
| 974 |
<button type="submit" class="btn btn-default">Place hold</button> |
953 |
<button type="submit" class="btn btn-default" id="lientype">Place hold</button> |
| 975 |
[% END %] |
954 |
[% END %] |
| 976 |
[% END %] |
955 |
[% END %] |
| 977 |
[% END # /IF patron %] |
956 |
[% END # /IF patron %] |
|
Lines 998-1006
Link Here
|
| 998 |
[% IF ( reserveloop ) %] |
977 |
[% IF ( reserveloop ) %] |
| 999 |
<form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block"> |
978 |
<form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block"> |
| 1000 |
[% IF ( multi_hold ) %] |
979 |
[% IF ( multi_hold ) %] |
| 1001 |
[% FOREACH biblionumber IN biblionumbers %] |
980 |
<input type = "hidden" name="biblionumbers" value="[% biblionumbers | html %]"/> |
| 1002 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]"/> |
|
|
| 1003 |
[% END %] |
| 1004 |
[% END %] |
981 |
[% END %] |
| 1005 |
|
982 |
|
| 1006 |
[% IF enqueued %] |
983 |
[% IF enqueued %] |
|
Lines 1015-1021
Link Here
|
| 1015 |
<input type="submit" name="submit" value="Update hold(s)" /> <button class="cancel_selected_holds" data-bulk="true"></button> |
992 |
<input type="submit" name="submit" value="Update hold(s)" /> <button class="cancel_selected_holds" data-bulk="true"></button> |
| 1016 |
<fieldset id="cancellation-reason-fieldset" class="action"> |
993 |
<fieldset id="cancellation-reason-fieldset" class="action"> |
| 1017 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
994 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
| 1018 |
[% IF hold_cancellation.count %] |
995 |
[% IF hold_cancellation %] |
| 1019 |
<label for="cancellation-reason">Cancellation reason: </label> |
996 |
<label for="cancellation-reason">Cancellation reason: </label> |
| 1020 |
<select class="cancellation-reason" name="cancellation-reason" id="cancellation-reason"> |
997 |
<select class="cancellation-reason" name="cancellation-reason" id="cancellation-reason"> |
| 1021 |
<option value="">No reason given</option> |
998 |
<option value="">No reason given</option> |
|
Lines 1138-1144
Link Here
|
| 1138 |
[% IF i %] |
1115 |
[% IF i %] |
| 1139 |
[% ItemTypes.GetDescription( i ) | html %] |
1116 |
[% ItemTypes.GetDescription( i ) | html %] |
| 1140 |
[% ELSE %] |
1117 |
[% ELSE %] |
| 1141 |
<span>Any item type</span> |
1118 |
Any item type |
| 1142 |
[% END %] |
1119 |
[% END %] |
| 1143 |
</h5> |
1120 |
</h5> |
| 1144 |
|
1121 |
|
|
Lines 1201-1207
Link Here
|
| 1201 |
|
1178 |
|
| 1202 |
<fieldset class="action"> |
1179 |
<fieldset class="action"> |
| 1203 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1180 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
| 1204 |
[% IF hold_cancellation.count %] |
1181 |
[% IF hold_cancellation %] |
| 1205 |
<label for="cancellation-reason">Cancellation reason: </label> |
1182 |
<label for="cancellation-reason">Cancellation reason: </label> |
| 1206 |
<select class="cancellation-reason" name="modal-cancellation-reason" id="modal-cancellation-reason"> |
1183 |
<select class="cancellation-reason" name="modal-cancellation-reason" id="modal-cancellation-reason"> |
| 1207 |
<option value="">No reason given</option> |
1184 |
<option value="">No reason given</option> |
|
Lines 1223-1245
Link Here
|
| 1223 |
|
1200 |
|
| 1224 |
[% MACRO jsinclude BLOCK %] |
1201 |
[% MACRO jsinclude BLOCK %] |
| 1225 |
[% INCLUDE 'datatables.inc' %] |
1202 |
[% INCLUDE 'datatables.inc' %] |
| 1226 |
[% INCLUDE 'calendar.inc' %] |
|
|
| 1227 |
[% INCLUDE 'columns_settings.inc' %] |
1203 |
[% INCLUDE 'columns_settings.inc' %] |
| 1228 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
1204 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
|
|
1205 |
[% Asset.js("js/circ-patron-search-results.js") | $raw %] |
| 1229 |
[% INCLUDE 'select2.inc' %] |
1206 |
[% INCLUDE 'select2.inc' %] |
| 1230 |
[% Asset.js("js/holds.js") | $raw%] |
1207 |
[% Asset.js("js/holds.js") | $raw%] |
| 1231 |
|
1208 |
[% INCLUDE 'calendar.inc' %] |
| 1232 |
[% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&biblionumber=") %] |
|
|
| 1233 |
[% IF multi_hold %] |
| 1234 |
[% SET url_biblio_params = url_biblio_params _ "&multi_hold=1" %] |
| 1235 |
[% END %] |
| 1236 |
|
| 1237 |
<script> |
1209 |
<script> |
| 1238 |
var Sticky; |
1210 |
var Sticky; |
| 1239 |
var biblionumbers = [[% biblionumbers.join(', ') | $raw %]]; |
1211 |
var biblionumber = "[% biblionumber | $raw %]"; |
| 1240 |
var borrowernumber = "[% patron.borrowernumber | $raw %]"; |
1212 |
var borrowernumber = "[% patron.borrowernumber | $raw %]"; |
| 1241 |
var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]"; |
1213 |
var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]"; |
| 1242 |
var override_items = {[% FOREACH biblio IN biblioloop %][% FOREACH itemloo IN biblio.itemloop %][% IF ( itemloo.override ) %] |
1214 |
var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %] |
| 1243 |
[% itemloo.itemnumber | html %]: { |
1215 |
[% itemloo.itemnumber | html %]: { |
| 1244 |
homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]", |
1216 |
homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]", |
| 1245 |
holdallowed: "[% itemloo.holdallowed | html %]" |
1217 |
holdallowed: "[% itemloo.holdallowed | html %]" |
|
Lines 1261-1266
Link Here
|
| 1261 |
} |
1233 |
} |
| 1262 |
|
1234 |
|
| 1263 |
var MSG_CANCEL_SELECTED = _("Cancel selected (%s)"); |
1235 |
var MSG_CANCEL_SELECTED = _("Cancel selected (%s)"); |
|
|
1236 |
columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
| 1264 |
$.fn.select2.defaults.set("width", "100%" ); |
1237 |
$.fn.select2.defaults.set("width", "100%" ); |
| 1265 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
1238 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
| 1266 |
|
1239 |
|
|
Lines 1274-1293
Link Here
|
| 1274 |
} |
1247 |
} |
| 1275 |
}); |
1248 |
}); |
| 1276 |
|
1249 |
|
| 1277 |
if( $("#circ_holds_select").length > 0 ){ |
1250 |
[% SET active = clubs ? 1 : 0 %] |
| 1278 |
[% SET active = clubs ? 1 : 0 %] |
1251 |
$('#circ_holds_select').tabs({ |
| 1279 |
/* Set active tab based on whether a club search was submitted */ |
1252 |
active: [% active | $raw %], |
| 1280 |
var tabs = $("#circ_holds_select li:eq(" + [% active | $raw %] + ") a").tab("show"); |
1253 |
activate: function(){ |
| 1281 |
$( tabs[0].hash ).find("input.focus").focus(); |
1254 |
$(this).find("input.focus").focus(); |
| 1282 |
|
1255 |
}, |
| 1283 |
/* Change active focus when tabs change */ |
1256 |
create: function(){ |
| 1284 |
$("#circ_holds_select a[data-toggle='tab']").on("shown.bs.tab", function (e) { |
1257 |
$(this).find("input.focus").focus(); |
| 1285 |
active_tab = e.target.hash; |
1258 |
} |
| 1286 |
$( active_tab ).find("input.focus").focus(); |
1259 |
}); |
| 1287 |
}); |
|
|
| 1288 |
} |
| 1289 |
|
| 1290 |
|
| 1291 |
function ToggleHoldsToPlace() { |
1260 |
function ToggleHoldsToPlace() { |
| 1292 |
if ( $("#requestany").prop('checked') ) { |
1261 |
if ( $("#requestany").prop('checked') ) { |
| 1293 |
$("#holds_to_place_count").prop('disabled', false); |
1262 |
$("#holds_to_place_count").prop('disabled', false); |
|
Lines 1305-1311
Link Here
|
| 1305 |
var pickup = $("#pickup").val(); |
1274 |
var pickup = $("#pickup").val(); |
| 1306 |
var url = "?pickup=" + pickup; |
1275 |
var url = "?pickup=" + pickup; |
| 1307 |
url += "&borrowernumber=" + borrowernumber; |
1276 |
url += "&borrowernumber=" + borrowernumber; |
| 1308 |
url += "&biblionumber=" + biblionumbers[0]; |
1277 |
url += "&biblionumber=" + biblionumber; |
| 1309 |
window.location.replace(url); |
1278 |
window.location.replace(url); |
| 1310 |
}); |
1279 |
}); |
| 1311 |
[% END %] |
1280 |
[% END %] |
|
Lines 1325-1330
Link Here
|
| 1325 |
$("#club-request-form").on("submit", function() { |
1294 |
$("#club-request-form").on("submit", function() { |
| 1326 |
let $t = $(this); |
1295 |
let $t = $(this); |
| 1327 |
$('.clubalert, .holdalert').addClass('hide'); |
1296 |
$('.clubalert, .holdalert').addClass('hide'); |
|
|
1297 |
let biblionumbers = [biblionumber]; |
| 1298 |
let biblionumbers_text; |
| 1328 |
const data = { |
1299 |
const data = { |
| 1329 |
pickup_library_id: $('select[name="pickup"]').val() |
1300 |
pickup_library_id: $('select[name="pickup"]').val() |
| 1330 |
}; |
1301 |
}; |
|
Lines 1340-1352
Link Here
|
| 1340 |
if($('input[name="default_patron_home"]:checked').length) { |
1311 |
if($('input[name="default_patron_home"]:checked').length) { |
| 1341 |
data.default_patron_home = 1; |
1312 |
data.default_patron_home = 1; |
| 1342 |
} |
1313 |
} |
|
|
1314 |
if($('input[name="biblionumbers"]').length) { |
| 1315 |
biblionumbers_text = $('input[name="biblionumbers"]').val(); |
| 1316 |
biblionumbers = biblionumbers_text.replace(/\/$/, '').split('/') |
| 1317 |
} |
| 1343 |
|
1318 |
|
| 1344 |
const count = $('input[name="holds_to_place_count"]').length?$('input[name="holds_to_place_count"]').val():1; |
1319 |
const count = $('input[name="holds_to_place_count"]').length?$('input[name="holds_to_place_count"]').val():1; |
| 1345 |
var newloc = 'request.pl?'; |
|
|
| 1346 |
biblionumbers.forEach(function (biblionumber) { |
| 1347 |
newloc += '&biblionumber=' + biblionumber; |
| 1348 |
}); |
| 1349 |
|
| 1350 |
biblionumbers.forEach(function(biblionumber) { |
1320 |
biblionumbers.forEach(function(biblionumber) { |
| 1351 |
data.biblio_id = biblionumber; |
1321 |
data.biblio_id = biblionumber; |
| 1352 |
let options = { |
1322 |
let options = { |
|
Lines 1358-1364
Link Here
|
| 1358 |
for(let i = 0; i < count; i++) { |
1328 |
for(let i = 0; i < count; i++) { |
| 1359 |
$.ajax(options) |
1329 |
$.ajax(options) |
| 1360 |
.then(function(result) { |
1330 |
.then(function(result) { |
| 1361 |
document.location = newloc; |
1331 |
let url = 'request.pl?biblionumber='+biblionumber; |
|
|
1332 |
if(biblionumbers_text) { |
| 1333 |
url = 'request.pl?biblionumbers='+biblionumbers_text; |
| 1334 |
} |
| 1335 |
document.location = url; |
| 1362 |
}) |
1336 |
}) |
| 1363 |
.fail(function(err) { |
1337 |
.fail(function(err) { |
| 1364 |
var message = err.responseJSON.error; |
1338 |
var message = err.responseJSON.error; |
|
Lines 1453-1458
Link Here
|
| 1453 |
|
1427 |
|
| 1454 |
function checkMultiHold() { |
1428 |
function checkMultiHold() { |
| 1455 |
|
1429 |
|
|
|
1430 |
var biblionumbers = ""; |
| 1456 |
var selected_bibs = $(".multi_hold_item_checkbox:checked"); |
1431 |
var selected_bibs = $(".multi_hold_item_checkbox:checked"); |
| 1457 |
if ( selected_bibs.length > 0 ) { |
1432 |
if ( selected_bibs.length > 0 ) { |
| 1458 |
// there are biblios selected in the form! |
1433 |
// there are biblios selected in the form! |
|
Lines 1465-1470
Link Here
|
| 1465 |
} |
1440 |
} |
| 1466 |
else { |
1441 |
else { |
| 1467 |
var bibnum = $(this).attr("title"); |
1442 |
var bibnum = $(this).attr("title"); |
|
|
1443 |
biblionumbers += bibnum + "/"; |
| 1468 |
} |
1444 |
} |
| 1469 |
}); |
1445 |
}); |
| 1470 |
if ( pickup_not_set > 0 ) { |
1446 |
if ( pickup_not_set > 0 ) { |
|
Lines 1477-1489
Link Here
|
| 1477 |
return false; |
1453 |
return false; |
| 1478 |
} |
1454 |
} |
| 1479 |
|
1455 |
|
|
|
1456 |
var badSpans = $(".not_holdable"); |
| 1457 |
var badBibs = ""; |
| 1458 |
$(badSpans).each(function() { |
| 1459 |
var bibnum = $(this).attr("title"); |
| 1460 |
badBibs += bibnum + "/"; |
| 1461 |
}); |
| 1462 |
|
| 1463 |
$("#multi_hold_bibs").val(biblionumbers); |
| 1464 |
$("#bad_bibs").val(badBibs); |
| 1465 |
|
| 1480 |
$('#hold-request-form').preventDoubleFormSubmit(); |
1466 |
$('#hold-request-form').preventDoubleFormSubmit(); |
| 1481 |
|
1467 |
|
| 1482 |
return true; |
1468 |
return true; |
| 1483 |
} |
1469 |
} |
| 1484 |
|
1470 |
|
| 1485 |
$(document).ready(function() { |
1471 |
$(document).ready(function() { |
| 1486 |
|
|
|
| 1487 |
$("#always_show_holds").change(function(){ |
1472 |
$("#always_show_holds").change(function(){ |
| 1488 |
if( $(this).prop('checked') ){ |
1473 |
if( $(this).prop('checked') ){ |
| 1489 |
document.cookie = 'always_show_holds=DO'; |
1474 |
document.cookie = 'always_show_holds=DO'; |
|
Lines 1571-1578
Link Here
|
| 1571 |
$("#cancelModalConfirmBtn").on("click",function(e) { |
1556 |
$("#cancelModalConfirmBtn").on("click",function(e) { |
| 1572 |
let link; |
1557 |
let link; |
| 1573 |
if(cancel_link.data('bulk')) { |
1558 |
if(cancel_link.data('bulk')) { |
| 1574 |
[% SET data_url = 'biblionumber=' _ biblionumbers.join('&biblionumber=') %] |
1559 |
[% IF biblionumbers %] |
| 1575 |
link = `request.pl?[% data_url | url %]&action=cancelBulk&ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`; |
1560 |
link = `request.pl?biblionumbers=[% biblionumbers | url %]&action=cancelBulk&ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`; |
|
|
1561 |
[% ELSE %] |
| 1562 |
link = `request.pl?biblionumber=[% biblionumber | url %]&action=cancelBulk&ids=${$('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')).join(',')}`; |
| 1563 |
[% END %] |
| 1576 |
} else { |
1564 |
} else { |
| 1577 |
let borrowernumber = cancel_link.data('borrowernumber'); |
1565 |
let borrowernumber = cancel_link.data('borrowernumber'); |
| 1578 |
let biblionumber = cancel_link.data('biblionumber'); |
1566 |
let biblionumber = cancel_link.data('biblionumber'); |
|
Lines 1589-1599
Link Here
|
| 1589 |
|
1577 |
|
| 1590 |
[% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %] |
1578 |
[% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %] |
| 1591 |
[% IF ( PatronAutoComplete ) %] |
1579 |
[% IF ( PatronAutoComplete ) %] |
| 1592 |
$( "#search_patron_filter" ).autocomplete({ |
1580 |
$( "#patron" ).autocomplete({ |
| 1593 |
source: "/cgi-bin/koha/circ/ysearch.pl", |
1581 |
source: "/cgi-bin/koha/circ/ysearch.pl", |
| 1594 |
minLength: 3, |
1582 |
minLength: 3, |
| 1595 |
select: function( event, ui ) { |
1583 |
select: function( event, ui ) { |
| 1596 |
document.location.href = '/cgi-bin/koha/reserve/request.pl?[% url_biblio_params | url %]&borrowernumber=' + ui.item.borrowernumber; |
1584 |
$( "#patron" ).val( ui.item.cardnumber ); |
|
|
1585 |
$( "#holds_patronsearch" ).submit(); |
| 1586 |
return false; |
| 1597 |
} |
1587 |
} |
| 1598 |
}) |
1588 |
}) |
| 1599 |
.data( "ui-autocomplete" )._renderItem = function( ul, item ) { |
1589 |
.data( "ui-autocomplete" )._renderItem = function( ul, item ) { |
|
Lines 1621-1627
Link Here
|
| 1621 |
}; |
1611 |
}; |
| 1622 |
[% END %] |
1612 |
[% END %] |
| 1623 |
[% END %] |
1613 |
[% END %] |
| 1624 |
|
|
|
| 1625 |
Sticky = $("#toolbar"); |
1614 |
Sticky = $("#toolbar"); |
| 1626 |
Sticky.hcSticky({ |
1615 |
Sticky.hcSticky({ |
| 1627 |
stickTo: "#existing_holds", |
1616 |
stickTo: "#existing_holds", |
|
Lines 1672-1694
Link Here
|
| 1672 |
} |
1661 |
} |
| 1673 |
return false; |
1662 |
return false; |
| 1674 |
}); |
1663 |
}); |
| 1675 |
}); |
|
|
| 1676 |
</script> |
| 1677 |
|
| 1678 |
<script> |
| 1679 |
table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; |
| 1680 |
</script> |
| 1681 |
|
1664 |
|
| 1682 |
[% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %] |
|
|
| 1683 |
<script> |
| 1684 |
$(document).ready(function() { |
| 1685 |
$("#holds_patronsearch").on("submit", filter); |
| 1686 |
}); |
1665 |
}); |
| 1687 |
$('.printholdslip').click(function(){ |
|
|
| 1688 |
var reserve_id = $(this).attr('data-reserve_id'); |
| 1689 |
window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id); |
| 1690 |
return false; |
| 1691 |
}) |
| 1692 |
</script> |
1666 |
</script> |
| 1693 |
[% END %] |
1667 |
[% END %] |
| 1694 |
|
1668 |
|