Lines 597-807
Link Here
|
597 |
</div> <!-- / #opac-user-overdues --> |
597 |
</div> <!-- / #opac-user-overdues --> |
598 |
[% END # /overdues_count %] |
598 |
[% END # /overdues_count %] |
599 |
|
599 |
|
600 |
|
600 |
[% PROCESS 'holds-table.inc' HOLDS => RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %] |
601 |
[% IF ( RESERVES.count ) %] |
|
|
602 |
<div id="opac-user-holds"> |
603 |
<table id="holdst" class="table table-bordered table-striped"> |
604 |
<caption>Holds <span class="count">([% RESERVES.count | html %] total)</span></caption> |
605 |
<!-- RESERVES TABLE ROWS --> |
606 |
<thead> |
607 |
<tr> |
608 |
<th class="anti-the">Title</th> |
609 |
[% IF ( showpriority ) %] |
610 |
<th class="title-string">Placed on</th> |
611 |
[% ELSE %] |
612 |
<th class="psort title-string">Placed on</th> |
613 |
[% END %] |
614 |
<th class="title-string">Expires on</th> |
615 |
[% UNLESS( singleBranchMode) %] |
616 |
<th>Pick up location</th> |
617 |
[% END %] |
618 |
[% IF ( showpriority ) %] |
619 |
<th class="psort">Priority</th> |
620 |
[% END %] |
621 |
<th>Status</th> |
622 |
[% IF SuspendHoldsOpac %] |
623 |
<th class="nosort" >Suspend</th> |
624 |
[% END %] |
625 |
<th class="nosort">Modify</th> |
626 |
</tr> |
627 |
</thead> |
628 |
<tbody> |
629 |
[% FOREACH RESERVE IN RESERVES %] |
630 |
[% IF ( RESERVE.is_waiting ) %] |
631 |
[% IF ( RESERVE.is_at_destination ) %] |
632 |
[% IF ( RESERVE.is_found ) %] |
633 |
<tr class="reserved"> |
634 |
[% ELSE %] |
635 |
<tr> |
636 |
[% END %] |
637 |
[% ELSE %] |
638 |
<tr class="transfered"> |
639 |
[% END %] |
640 |
[% ELSE %] |
641 |
<tr> |
642 |
[% END %] |
643 |
<td class="title"> |
644 |
<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber | html %]"> |
645 |
[% RESERVE.biblio.title | html %] |
646 |
[% FOREACH s IN RESERVE.biblio.subtitles %] |
647 |
[% s | html %] |
648 |
[% END %] |
649 |
[% RESERVE.item.enumchron | html %] |
650 |
</a> |
651 |
[% RESERVE.biblio.author | html %] |
652 |
</td> |
653 |
<td class="reservedate"> |
654 |
<span title="[% RESERVE.reservedate | html %]"> |
655 |
<span class="tdlabel">Hold date:</span> |
656 |
[% RESERVE.reservedate | $KohaDates %] |
657 |
</span> |
658 |
</td> |
659 |
<td class="expirationdate"> |
660 |
[% IF ! RESERVE.found %] |
661 |
[% IF ( RESERVE.expirationdate ) %] |
662 |
<span title="[% RESERVE.expirationdate | html %]"> |
663 |
<span class="tdlabel">Expiration:</span> |
664 |
[% RESERVE.expirationdate | $KohaDates %] |
665 |
</span> |
666 |
[% ELSE %] |
667 |
<span title="0000-00-00"> |
668 |
<span class="tdlabel">Expiration:</span> |
669 |
Never expires |
670 |
</span> |
671 |
[% END %] |
672 |
[% ELSE %] |
673 |
<span title="0000-00-00">-</span> |
674 |
[% END %] |
675 |
</td> |
676 |
[% UNLESS( singleBranchMode) %] |
677 |
<td class="branch"> |
678 |
<span class="tdlabel">Pick up location:</span> |
679 |
[% RESERVE.branch.branchname | html %] |
680 |
</td> |
681 |
[% END %] |
682 |
[% IF ( showpriority ) %] |
683 |
<td data-order="[% RESERVE.priority | html %]" class="priority"> |
684 |
<span class="tdlabel">Priority:</span> |
685 |
[% RESERVE.priority | html %] |
686 |
</td> |
687 |
[% END %] |
688 |
<td class="status"> |
689 |
<span class="tdlabel">Status:</span> |
690 |
[% IF ( RESERVE.is_waiting ) %] |
691 |
[% IF ( RESERVE.is_at_destination ) %] |
692 |
[% IF ( RESERVE.found ) %] |
693 |
Item waiting at <b> [% RESERVE.branch.branchname | html %]</b> |
694 |
[% IF ( RESERVE.waitingdate ) %] |
695 |
since [% RESERVE.waitingdate | $KohaDates %] |
696 |
[% IF RESERVE.expirationdate %] |
697 |
until [% RESERVE.expirationdate | $KohaDates %] |
698 |
[% END %] |
699 |
[% END %] |
700 |
<input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" /> |
701 |
[% ELSE %] |
702 |
Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b> |
703 |
[% END %] |
704 |
[% ELSE %] |
705 |
Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" /> |
706 |
[% END %] |
707 |
[% ELSE %] |
708 |
[% IF ( RESERVE.is_in_transit ) %] |
709 |
[% SET transfer = RESERVE.item.get_transfer %] |
710 |
Item in transit from <b> [% Branches.GetName( transfer.frombranch ) | html %]</b> since |
711 |
[% transfer.datesent | $KohaDates %] |
712 |
[% ELSIF ( RESERVE.suspend ) %] |
713 |
Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | html %] [% END %] |
714 |
[% ELSE %] |
715 |
[% IF RESERVE.itemtype %] |
716 |
Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) | html %]' |
717 |
[% ELSE %] |
718 |
Pending |
719 |
[% END %] |
720 |
[% END %] |
721 |
[% END %] |
722 |
</td> |
723 |
[% IF SuspendHoldsOpac %] |
724 |
<td> |
725 |
[% IF ( RESERVE.is_cancelable_from_opac ) %] |
726 |
[% IF RESERVE.suspend %] |
727 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
728 |
<input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" /> |
729 |
<button class="btn btn-link" type="submit" name="submit"><i class="fa fa-play"></i> Resume</button> |
730 |
</form> |
731 |
[% ELSE %] |
732 |
[% IF AutoResumeSuspendedHolds %] |
733 |
<a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id | html %]" role="button" data-toggle="modal"><i class="fa fa-pause"></i> Suspend</a> |
734 |
[% # hold suspend modal form %] |
735 |
<div id="suspendModal[% RESERVE.reserve_id | html %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id | html %]Label" aria-hidden="true"> |
736 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
737 |
<div class="modal-header"> |
738 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
739 |
[% IF RESERVE.suspend %] |
740 |
<h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Resume your hold on <i>[% RESERVE.biblio.title | html %]</i></h3> |
741 |
[% ELSE %] |
742 |
<h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Suspend your hold on <i>[% RESERVE.biblio.title | html %]</i></h3> |
743 |
[% END %] |
744 |
</div> |
745 |
<div class="modal-body"> |
746 |
<input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" /> |
747 |
<label for="suspend_until_[% RESERVE.reserve_id | html %]">Suspend until:</label> |
748 |
<input type="text" name="suspend_until" id="suspend_until_[% RESERVE.reserve_id | html %]" class="suspend-until" size="10" /> |
749 |
[% INCLUDE 'date-format.inc' %] |
750 |
<p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id | html %]').value='';return false;">Clear date to suspend indefinitely</a></p> |
751 |
<button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button> |
752 |
</div> |
753 |
<div class="modal-footer"> |
754 |
<button class="btn btn-primary" type="submit" name="submit">Suspend</button> |
755 |
<a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a> |
756 |
</div> |
757 |
</form> |
758 |
</div> <!-- /#suspendModal[% RESERVE.reserve_id | html %] --> |
759 |
[% ELSE %] |
760 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
761 |
<input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" /> |
762 |
<button class="btn btn-link" type="submit" name="submit"><i class="fa fa-pause"></i> Suspend</button> |
763 |
</form> |
764 |
[% END # / IF AutoResumeSuspendedHolds %] |
765 |
[% END # / IF RESERVE.suspend %] |
766 |
[% END # / IF ( RESERVE.is_cancelable_from_opac )%] |
767 |
</td> |
768 |
[% END # / IF SuspendHoldsOpac %] |
769 |
<td class="modify"> |
770 |
[% IF ( RESERVE.is_cancelable_from_opac ) %] |
771 |
<form id="delete_hold_[% RESERVE.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
772 |
<input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber | html %]" /> |
773 |
<input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" /> |
774 |
<button data-title="[% RESERVE.biblio.title | html %] [% FOREACH s IN RESERVE.biblio.subtitles %] [% s | html %] [% END %] [% RESERVE.item.enumchron | html %]" data-reserve_id="[% RESERVE.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-remove"></i> Cancel</button></form> |
775 |
[% END %] |
776 |
</td> |
777 |
</tr> |
778 |
[% END # /FOREACH RESERVES %] |
779 |
</tbody> |
780 |
</table> |
781 |
|
782 |
[% IF SuspendHoldsOpac %] |
783 |
<div> |
784 |
<form class="form-inline" id="suspend_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
785 |
<button type="submit" id="suspend_all_submit" class="btn"><i class="fa fa-pause"></i> Suspend all holds</button> |
786 |
<input type="hidden" name="suspend" value="1" /> |
787 |
|
788 |
[% IF AutoResumeSuspendedHolds %] |
789 |
<label for="suspend_until"> until </label> |
790 |
<input type="text" name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" /> |
791 |
<a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a> |
792 |
[% END %] |
793 |
</form> |
794 |
</div> |
795 |
<br/> |
796 |
<div> |
797 |
<form id="resume_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
798 |
<button type="submit" id="resume_all_submit" class="btn"><i class="fa fa-play"></i> Resume all suspended holds</button> |
799 |
<input type="hidden" name="suspend" value="0" /> |
800 |
</form> |
801 |
</div> |
802 |
[% END %] |
803 |
</div> <!-- / #opac-user-holds --> |
804 |
[% END # / #RESERVES.count %] |
805 |
|
601 |
|
806 |
[% IF Koha.Preference('ArticleRequests') %] |
602 |
[% IF Koha.Preference('ArticleRequests') %] |
807 |
<div id="opac-user-article-requests"> |
603 |
<div id="opac-user-article-requests"> |
808 |
- |
|
|