|
Lines 542-548
Link Here
|
| 542 |
[% SET branchcodes = [] %] |
542 |
[% SET branchcodes = [] %] |
| 543 |
|
543 |
|
| 544 |
[% FOREACH h IN biblioloo.reserveloop %] |
544 |
[% FOREACH h IN biblioloo.reserveloop %] |
| 545 |
[% branchcodes.push( h.branchcode ) | $raw %] |
545 |
[% branchcodes.push( h.branchcode ) %] |
| 546 |
[% END %] |
546 |
[% END %] |
| 547 |
[% branchcodes = branchcodes.unique %] |
547 |
[% branchcodes = branchcodes.unique %] |
| 548 |
|
548 |
|
|
Lines 550-556
Link Here
|
| 550 |
[% SET holds_by_branch = [] %] |
550 |
[% SET holds_by_branch = [] %] |
| 551 |
[% FOREACH h IN biblioloo.reserveloop %] |
551 |
[% FOREACH h IN biblioloo.reserveloop %] |
| 552 |
[% IF h.branchcode == b %] |
552 |
[% IF h.branchcode == b %] |
| 553 |
[% holds_by_branch.push( h ) | $raw %] |
553 |
[% holds_by_branch.push( h ) %] |
| 554 |
[% END %] |
554 |
[% END %] |
| 555 |
[% END %] |
555 |
[% END %] |
| 556 |
<fieldset> |
556 |
<fieldset> |
|
Lines 563-569
Link Here
|
| 563 |
|
563 |
|
| 564 |
[% FOREACH h IN biblioloo.reserveloop %] |
564 |
[% FOREACH h IN biblioloo.reserveloop %] |
| 565 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
565 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
| 566 |
[% itemtypes.push( hold_itemtype ) | $raw %] |
566 |
[% itemtypes.push( hold_itemtype ) %] |
| 567 |
[% END %] |
567 |
[% END %] |
| 568 |
[% itemtypes = itemtypes.unique %] |
568 |
[% itemtypes = itemtypes.unique %] |
| 569 |
|
569 |
|
|
Lines 572-578
Link Here
|
| 572 |
[% FOREACH h IN biblioloo.reserveloop %] |
572 |
[% FOREACH h IN biblioloo.reserveloop %] |
| 573 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
573 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
| 574 |
[% IF hold_itemtype == i %] |
574 |
[% IF hold_itemtype == i %] |
| 575 |
[% holds_by_itemtype.push( h ) | $raw %] |
575 |
[% holds_by_itemtype.push( h ) %] |
| 576 |
[% END %] |
576 |
[% END %] |
| 577 |
[% END %] |
577 |
[% END %] |
| 578 |
|
578 |
|
|
Lines 589-595
Link Here
|
| 589 |
[% SET branchcodes = [] %] |
589 |
[% SET branchcodes = [] %] |
| 590 |
|
590 |
|
| 591 |
[% FOREACH h IN biblioloo.reserveloop %] |
591 |
[% FOREACH h IN biblioloo.reserveloop %] |
| 592 |
[% branchcodes.push( h.branchcode ) | $raw %] |
592 |
[% branchcodes.push( h.branchcode ) %] |
| 593 |
[% END %] |
593 |
[% END %] |
| 594 |
[% branchcodes = branchcodes.unique %] |
594 |
[% branchcodes = branchcodes.unique %] |
| 595 |
|
595 |
|
|
Lines 599-612
Link Here
|
| 599 |
[% SET holds_by_branch = [] %] |
599 |
[% SET holds_by_branch = [] %] |
| 600 |
[% FOREACH h IN biblioloo.reserveloop %] |
600 |
[% FOREACH h IN biblioloo.reserveloop %] |
| 601 |
[% IF h.branchcode == b %] |
601 |
[% IF h.branchcode == b %] |
| 602 |
[% holds_by_branch.push( h ) | $raw %] |
602 |
[% holds_by_branch.push( h ) %] |
| 603 |
[% END %] |
603 |
[% END %] |
| 604 |
[% END %] |
604 |
[% END %] |
| 605 |
|
605 |
|
| 606 |
[% SET itemtypes = [] %] |
606 |
[% SET itemtypes = [] %] |
| 607 |
[% FOREACH h IN holds_by_branch %] |
607 |
[% FOREACH h IN holds_by_branch %] |
| 608 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
608 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
| 609 |
[% itemtypes.push( hold_itemtype ) | $raw %] |
609 |
[% itemtypes.push( hold_itemtype ) %] |
| 610 |
[% END %] |
610 |
[% END %] |
| 611 |
[% itemtypes = itemtypes.unique %] |
611 |
[% itemtypes = itemtypes.unique %] |
| 612 |
|
612 |
|
|
Lines 622-628
Link Here
|
| 622 |
[% FOREACH h IN holds_by_branch %] |
622 |
[% FOREACH h IN holds_by_branch %] |
| 623 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
623 |
[% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %] |
| 624 |
[% IF hold_itemtype == i %] |
624 |
[% IF hold_itemtype == i %] |
| 625 |
[% holds_by_itemtype.push( h ) | $raw %] |
625 |
[% holds_by_itemtype.push( h ) %] |
| 626 |
[% END %] |
626 |
[% END %] |
| 627 |
[% END %] |
627 |
[% END %] |
| 628 |
[% INCLUDE holds_table.inc holds=holds_by_itemtype %] |
628 |
[% INCLUDE holds_table.inc holds=holds_by_itemtype %] |