Lines 4-9
Link Here
|
4 |
[% USE Branches %] |
4 |
[% USE Branches %] |
5 |
[% USE ItemTypes %] |
5 |
[% USE ItemTypes %] |
6 |
[% USE Price %] |
6 |
[% USE Price %] |
|
|
7 |
[% USE Biblio %] |
7 |
|
8 |
|
8 |
[% SET borrower_club_enrollments = borrower.get_club_enrollments(1) %] |
9 |
[% SET borrower_club_enrollments = borrower.get_club_enrollments(1) %] |
9 |
[% SET borrower_enrollable_clubs = borrower.get_enrollable_clubs(1,1) %] |
10 |
[% SET borrower_enrollable_clubs = borrower.get_enrollable_clubs(1,1) %] |
Lines 585-604
Link Here
|
585 |
</tr> |
586 |
</tr> |
586 |
</thead> |
587 |
</thead> |
587 |
<tbody> |
588 |
<tbody> |
588 |
[% FOREACH RESERVE IN RESERVES %] |
589 |
[% IF (grouped_holds) %] |
589 |
[% IF ( RESERVE.is_waiting ) %] |
590 |
[% FOREACH group_level_hold IN grouped_holds %] |
590 |
[% IF ( RESERVE.is_at_destination ) %] |
591 |
<tr> |
591 |
[% IF ( RESERVE.is_found ) %] |
592 |
<td class="title"> |
|
|
593 |
[% biblio = Biblio.Get(group_level_hold.hold.biblionumber) %] |
594 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber %]"> |
595 |
[% biblio.title %] |
596 |
</a> |
597 |
[% biblio.author %] |
598 |
</td> |
599 |
<td class="reservedate"> |
600 |
<span title="[% group_level_hold.hold.reservedate %]"> |
601 |
<span class="tdlabel">Hold date:</span> |
602 |
[% group_level_hold.hold.reservedate | $KohaDates %] |
603 |
</span> |
604 |
</td> |
605 |
<td class="expirationdate"> |
606 |
[% IF ! group_level_hold.hold.found %] |
607 |
[% IF ( group_level_hold.hold.expirationdate ) %] |
608 |
<span title="[% group_level_hold.hold.expirationdate %]"> |
609 |
<span class="tdlabel">Expiration:</span> |
610 |
[% group_level_hold.hold.expirationdate | $KohaDates %] |
611 |
</span> |
612 |
[% ELSE %] |
613 |
<span title="0000-00-00"> |
614 |
<span class="tdlabel">Expiration:</span> |
615 |
Never expires |
616 |
</span> |
617 |
[%END %] |
618 |
[% ELSE %] |
619 |
<span title="0000-00-00">-</span> |
620 |
[% END %] |
621 |
</td> |
622 |
[% UNLESS( singleBranchMode) %] |
623 |
<td class="branch"> |
624 |
<span class="tdlabel">Pick up location:</span> |
625 |
[% Branches.GetName(group_level_hold.hold.branchcode ) %] |
626 |
</td> |
627 |
[% END %] |
628 |
[% IF ( showpriority ) %] |
629 |
<td class="priority"> |
630 |
</td> |
631 |
[% END %] |
632 |
<td class="status"> |
633 |
<span class="tdlabel">Status:</span> |
634 |
[% IF ( group_level_hold.hold.is_waiting ) %] |
635 |
[% IF ( group_level_hold.hold.is_at_destination ) %] |
636 |
[% IF ( group_level_hold.hold.found ) %] |
637 |
Item waiting at <b> [% group_level_hold.hold.branch.branchname %]</b> |
638 |
[% IF ( group_level_hold.hold.waitingdate ) %] |
639 |
since [% group_level_hold.hold.waitingdate | $KohaDates %] until [% group_level_hold.hold.lastpickupdate | $KohaDates %] |
640 |
[% END %] |
641 |
<input type="hidden" name="pickup" value="[% group_level_hold.hold.branchcode %]" /> |
642 |
[% ELSE %] |
643 |
Item waiting to be pulled from <b> [% Branches.GetName( group_level_hold.hold.branchcode ) %]</b> |
644 |
[% END %] |
645 |
[% ELSE %] |
646 |
Item in transit to <b> [% Branches.GetName(group_level_hold.hold.branchcode ) %]</b> <input type="hidden" name="pickup" value="[% group_level_hold.hold.branchcode %]" /> |
647 |
[% END %] |
648 |
[% ELSE %] |
649 |
[% IF ( group_level_hold.hold.is_in_transit ) %] |
650 |
[% SET transfer = group_level_hold.hold.item.get_transfer %] |
651 |
Item in transit from <b> [% Branches.GetName( transfer.frombranch ) %]</b> since |
652 |
[% transfer.datesent | $KohaDates %] |
653 |
[% ELSIF ( group_level_level.hold.suspend ) %] |
654 |
Suspended [% IF ( group_level_hold.hold.suspend_until ) %] until [% grou_level_hold.hold.suspend_until %] [% END %] |
655 |
[% ELSE %] |
656 |
[% IF group_level_hold.hold.itemtype %] |
657 |
Pending for next available item of itemtype '[% ItemTypes.GetDescription( group_level_hold.hold.itemtype ) %]' |
658 |
[% ELSE %] |
659 |
Pending |
660 |
[% END %] |
661 |
[% END %] |
662 |
[% END %] |
663 |
</td> |
664 |
[% IF SuspendHoldsOpac %] |
665 |
<td> |
666 |
[% IF ( group_level_hold.hold.is_cancelable_from_opac ) %] |
667 |
[% IF group_level_hold.hold.suspend %] |
668 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
669 |
<input type="hidden" name="reserve_id" value="[% group_level_hold.hold.reserve_id %]" /> |
670 |
<button class="btn btn-link" type="submit" name="submit"><i class="icon-play"></i> Resume</button> |
671 |
</form> |
672 |
[% ELSE %] |
673 |
[% IF AutoResumeSuspendedHolds %] |
674 |
<a class="btn btn-link js-show" href="#suspendModal[% group_level_hold.hold.reserve_id %]" role="button" data-toggle="modal"><i class="icon-pause"></i> Suspend</a> |
675 |
[% # hold suspend modal form %] |
676 |
<div id="suspendModal[% group_level_hold.hold.reserve_id %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% group_level_hold.hold.reserve_id %]Label" aria-hidden="true"> |
677 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
678 |
<div class="modal-header"> |
679 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
680 |
[% IF group_level_hold.hold.suspend %] |
681 |
<h3 id="suspendModal[% group_level_hold.hold.reserve_id %]Label">Resume your hold on <i>[% group_level_hold.hold.biblio.title %]</i></h3> |
682 |
[% ELSE %] |
683 |
<h3 id="suspendModal[% group_level_hold.hold.reserve_id %]Label">Suspend your hold on <i>[% group_level_hold.hold.biblio.title %]</i></h3> |
684 |
[% END %] |
685 |
</div> |
686 |
<div class="modal-body"> |
687 |
<input type="hidden" name="reserve_id" value="[% group_level_hold.hold.reserve_id %]" /> |
688 |
<label for="suspend_until_[% group_level_hold.hold.reserve_id %]">Suspend until:</label> |
689 |
<input name="suspend_until" id="suspend_until_[% group_level_hold.hold.reserve_id %]" class="suspend-until" size="10" /> |
690 |
[% INCLUDE 'date-format.inc' %] |
691 |
<p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% group_level_hold.hold.reserve_id %]').value='';return false;">Clear date to suspend indefinitely</a></p> |
692 |
<button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button> |
693 |
</div> |
694 |
<div class="modal-footer"> |
695 |
<button class="btn btn-primary" type="submit" name="submit">Suspend</button> |
696 |
<a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a> |
697 |
</div> |
698 |
</form> |
699 |
[% ELSE %] |
700 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
701 |
<input type="hidden" name="reserve_id" value="[% group_level_hold.hold.reserve_id %]" /> |
702 |
<button class="btn btn-link" type="submit" name="submit"><i class="icon-pause"></i> Suspend</button> |
703 |
</form> |
704 |
[% END # / IF AutoResumeSuspendedHolds %] |
705 |
[% END # / IF RESERVE.suspend %] |
706 |
[% END # / IF ( RESERVE.is_cancelable_from_opac)%] |
707 |
</td> |
708 |
[% END # / IF SuspendHoldsOpac %] |
709 |
<td class="modify"> |
710 |
[% IF ( RESERVE.is_cancelable_from_opac ) %] |
711 |
<form action="/cgi-bin/koha/opac-modrequest.pl"method="post"> |
712 |
<input type="hidden" name="biblionumber" value="[% group_level_hold.hold.biblionumber %]" /> |
713 |
<input type="hidden" name="reserve_id" value="[% group_level_hold.hold.reserve_id %]" /> |
714 |
<button type="submit" name="submit" class="btn btn-mini btn-danger" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="icon-remove icon-white"></i> Cancel</button></form> |
715 |
[% END %] |
716 |
</td> |
717 |
</tr> |
718 |
[% END # /FOREACH grouped reserves %] |
719 |
[% END %] |
720 |
[% FOREACH RESERVE IN RESERVES %] |
721 |
[% IF ( RESERVE.is_waiting ) %] |
722 |
[% IF ( RESERVE.is_at_destination ) %] |
723 |
[% IF ( RESERVE.is_found ) %] |
592 |
<tr class="reserved"> |
724 |
<tr class="reserved"> |
593 |
[% ELSE %] |
725 |
[% ELSE %] |
594 |
<tr> |
726 |
<tr> |
595 |
[% END %] |
727 |
[% END %] |
596 |
[% ELSE %] |
728 |
[% ELSE %] |
597 |
<tr class="transfered"> |
729 |
<tr class="transfered"> |
598 |
[% END %] |
730 |
[% END %] |
599 |
[% ELSE %] |
731 |
[% ELSE %] |
600 |
<tr> |
732 |
<tr> |
601 |
[% END %] |
733 |
[% END %] |
|
|
734 |
|
602 |
<td class="title"> |
735 |
<td class="title"> |
603 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]"> |
736 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]"> |
604 |
[% RESERVE.biblio.title %] |
737 |
[% RESERVE.biblio.title %] |
Lines 732-737
Link Here
|
732 |
</td> |
865 |
</td> |
733 |
</tr> |
866 |
</tr> |
734 |
[% END # /FOREACH RESERVES %] |
867 |
[% END # /FOREACH RESERVES %] |
|
|
868 |
[% END %] |
735 |
</tbody> |
869 |
</tbody> |
736 |
</table> |
870 |
</table> |
737 |
|
871 |
|
Lines 755-761
Link Here
|
755 |
<input type="hidden" name="suspend" value="0" /> |
889 |
<input type="hidden" name="suspend" value="0" /> |
756 |
</form> |
890 |
</form> |
757 |
</div> |
891 |
</div> |
758 |
[% END %] |
|
|
759 |
</div> <!-- / #opac-user-holds --> |
892 |
</div> <!-- / #opac-user-holds --> |
760 |
[% END # / #RESERVES.count %] |
893 |
[% END # / #RESERVES.count %] |
761 |
|
894 |
|