|
Lines 3-236
Link Here
|
| 3 |
[% USE KohaDates %] |
3 |
[% USE KohaDates %] |
| 4 |
[% PROCESS 'i18n.inc' %] |
4 |
[% PROCESS 'i18n.inc' %] |
| 5 |
|
5 |
|
| 6 |
[% IF ( HOLDS.count ) %] |
6 |
<table id="holdst" class="table table-bordered table-striped"> |
| 7 |
<div id="opac-user-holds" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-holds-tab"> |
7 |
<caption>Holds <span class="count">([% HOLDS.count | html %] total)</span></caption> |
| 8 |
<table id="holdst" class="table table-bordered table-striped"> |
8 |
<!-- HOLDS TABLE ROWS --> |
| 9 |
<caption>Holds <span class="count">([% HOLDS.count | html %] total)</span></caption> |
9 |
<thead> |
| 10 |
<!-- HOLDS TABLE ROWS --> |
10 |
<tr> |
| 11 |
<thead> |
11 |
<th class="anti-the">Title</th> |
|
|
12 |
[% IF ( showpriority ) %] |
| 13 |
<th>Placed on</th> |
| 14 |
[% ELSE %] |
| 15 |
<th class="psort">Placed on</th> |
| 16 |
[% END %] |
| 17 |
<th>Expires on</th> |
| 18 |
[% UNLESS( singleBranchMode) %] |
| 19 |
<th>Pickup location</th> |
| 20 |
[% END %] |
| 21 |
[% IF ( showpriority ) %] |
| 22 |
<th class="psort">Priority</th> |
| 23 |
[% END %] |
| 24 |
<th>Status</th> |
| 25 |
[% IF SuspendHoldsOpac and ! onlyinfo %] |
| 26 |
<th class="nosort" >Suspend</th> |
| 27 |
[% END %] |
| 28 |
[% IF ! onlyinfo %] |
| 29 |
<th class="nosort">Modify</th> |
| 30 |
[% END %] |
| 31 |
<th></th> |
| 32 |
</tr> |
| 33 |
</thead> |
| 34 |
<tbody> |
| 35 |
[% SET all_holds_waiting = 1 %] |
| 36 |
[% FOREACH HOLD IN HOLDS %] |
| 37 |
[% UNLESS ( HOLD.is_waiting || HOLD.is_in_transit || HOLD.is_in_processing) %] |
| 38 |
[% SET all_holds_waiting = 0 %] |
| 39 |
[% END %] |
| 40 |
[% IF ( HOLD.is_at_destination ) %] |
| 41 |
<tr class="reserved"> |
| 42 |
[% ELSIF HOLD.is_in_transit %] |
| 43 |
<tr class="transfered"> |
| 44 |
[% ELSE %] |
| 12 |
<tr> |
45 |
<tr> |
| 13 |
<th class="anti-the">Title</th> |
46 |
[% END %] |
| 14 |
[% IF ( showpriority ) %] |
47 |
<td class="title"> |
| 15 |
<th>Placed on</th> |
|
|
| 16 |
[% ELSE %] |
| 17 |
<th class="psort">Placed on</th> |
| 18 |
[% END %] |
| 19 |
<th>Expires on</th> |
| 20 |
[% UNLESS( singleBranchMode) %] |
| 21 |
<th>Pickup location</th> |
| 22 |
[% END %] |
| 23 |
[% IF ( showpriority ) %] |
| 24 |
<th class="psort">Priority</th> |
| 25 |
[% END %] |
| 26 |
<th>Status</th> |
| 27 |
[% IF SuspendHoldsOpac and ! onlyinfo %] |
| 28 |
<th class="nosort" >Suspend</th> |
| 29 |
[% END %] |
| 30 |
[% IF ! onlyinfo %] |
48 |
[% IF ! onlyinfo %] |
| 31 |
<th class="nosort">Modify</th> |
49 |
[% INCLUDE 'biblio-title.inc' biblio=HOLD.biblio link=> 1 %] |
|
|
50 |
[% HOLD.item.enumchron | html %] |
| 51 |
[% ELSE %] |
| 52 |
<strong> |
| 53 |
[% INCLUDE 'biblio-title.inc' biblio=HOLD.biblio %] |
| 54 |
[% HOLD.item.enumchron | html %] |
| 55 |
</strong> |
| 32 |
[% END %] |
56 |
[% END %] |
| 33 |
<th></th> |
57 |
[% HOLD.biblio.author | html %] |
| 34 |
</tr> |
58 |
[% IF HOLD.item_group_id %] |
| 35 |
</thead> |
59 |
<p>Next available item from item group: <strong>[% HOLD.item_group.description | html %]</strong></p> |
| 36 |
<tbody> |
|
|
| 37 |
[% SET all_holds_waiting = 1 %] |
| 38 |
[% FOREACH HOLD IN HOLDS %] |
| 39 |
[% UNLESS ( HOLD.is_waiting || HOLD.is_in_transit || HOLD.is_in_processing) %] |
| 40 |
[% SET all_holds_waiting = 0 %] |
| 41 |
[% END %] |
60 |
[% END %] |
| 42 |
[% IF ( HOLD.is_at_destination ) %] |
61 |
[% IF HOLD.item_level_hold %] |
| 43 |
<tr class="reserved"> |
62 |
<p class="hint">Item on hold: [% HOLD.item.barcode | html %]</p> |
| 44 |
[% ELSIF HOLD.is_in_transit %] |
|
|
| 45 |
<tr class="transfered"> |
| 46 |
[% ELSE %] |
| 47 |
<tr> |
| 48 |
[% END %] |
63 |
[% END %] |
| 49 |
<td class="title"> |
64 |
</td> |
| 50 |
[% IF ! onlyinfo %] |
65 |
<td class="reservedate" data-order="[% HOLD.reservedate | html %]"> |
| 51 |
[% INCLUDE 'biblio-title.inc' biblio=HOLD.biblio link=> 1 %] |
66 |
<span class="tdlabel">Hold date:</span> |
| 52 |
[% HOLD.item.enumchron | html %] |
67 |
[% HOLD.reservedate | $KohaDates %] |
| 53 |
[% ELSE %] |
68 |
</span> |
| 54 |
<strong> |
69 |
</td> |
| 55 |
[% INCLUDE 'biblio-title.inc' biblio=HOLD.biblio %] |
70 |
[% IF ! HOLD.found %] |
| 56 |
[% HOLD.item.enumchron | html %] |
71 |
<td class="expirationdate" data-order="[% HOLD.expirationdate | html %]"> |
| 57 |
</strong> |
72 |
[% IF ( HOLD.expirationdate ) %] |
| 58 |
[% END %] |
73 |
<span class="tdlabel">Expiration:</span> |
| 59 |
[% HOLD.biblio.author | html %] |
74 |
[% HOLD.expirationdate | $KohaDates %] |
| 60 |
[% IF HOLD.item_group_id %] |
|
|
| 61 |
<p>Next available item from item group: <strong>[% HOLD.item_group.description | html %]</strong></p> |
| 62 |
[% END %] |
| 63 |
[% IF HOLD.item_level_hold %] |
| 64 |
<p class="hint">Item on hold: [% HOLD.item.barcode | html %]</p> |
| 65 |
[% END %] |
| 66 |
</td> |
| 67 |
<td class="reservedate" data-order="[% HOLD.reservedate | html %]"> |
| 68 |
<span class="tdlabel">Hold date:</span> |
| 69 |
[% HOLD.reservedate | $KohaDates %] |
| 70 |
</span> |
| 71 |
</td> |
| 72 |
[% IF ! HOLD.found %] |
| 73 |
<td class="expirationdate" data-order="[% HOLD.expirationdate | html %]"> |
| 74 |
[% IF ( HOLD.expirationdate ) %] |
| 75 |
<span class="tdlabel">Expiration:</span> |
| 76 |
[% HOLD.expirationdate | $KohaDates %] |
| 77 |
[% ELSE %] |
| 78 |
<span class="tdlabel">Expiration:</span> |
| 79 |
Never expires |
| 80 |
[% END %] |
| 81 |
[% ELSE %] |
75 |
[% ELSE %] |
| 82 |
<td class="expirationdate" data-order="0000-00-00"> |
76 |
<span class="tdlabel">Expiration:</span> |
| 83 |
- |
77 |
Never expires |
| 84 |
[% END %] |
78 |
[% END %] |
| 85 |
</td> |
79 |
[% ELSE %] |
| 86 |
[% UNLESS( singleBranchMode) %] |
80 |
<td class="expirationdate" data-order="0000-00-00"> |
| 87 |
<td class="branch"> |
81 |
- |
| 88 |
<span class="tdlabel">Pickup location:</span> |
82 |
[% END %] |
| 89 |
[% HOLD.branch.branchname | html %] |
83 |
</td> |
| 90 |
[% IF ( HOLD.can_update_pickup_location_opac ) %] |
84 |
[% UNLESS( singleBranchMode) %] |
| 91 |
<button type="button" class="btn btn-sm btn-link" data-toggle="modal" data-target="#changePickup[% HOLD.reserve_id | html %]"> |
85 |
<td class="branch"> |
| 92 |
<i class="fa fa-pencil-alt" aria-hidden="true"></i> Change |
86 |
<span class="tdlabel">Pickup location:</span> |
| 93 |
</button> |
87 |
[% HOLD.branch.branchname | html %] |
| 94 |
<!-- Change pickup location modal --> |
88 |
[% IF ( HOLD.can_update_pickup_location_opac ) %] |
| 95 |
<div class="modal" id="changePickup[% HOLD.reserve_id | html %]" tabindex="-1" aria-labelledby="changePickup[% HOLD.reserve_id | html %]Label" aria-hidden="true"> |
89 |
<button type="button" class="btn btn-sm btn-link" data-toggle="modal" data-target="#changePickup[% HOLD.reserve_id | html %]"> |
| 96 |
<div class="modal-dialog"> |
90 |
<i class="fa fa-pencil-alt" aria-hidden="true"></i> Change |
| 97 |
<form id="change_branch_form[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
91 |
</button> |
| 98 |
<div class="modal-content"> |
92 |
<!-- Change pickup location modal --> |
| 99 |
<div class="modal-header"> |
93 |
<div class="modal" id="changePickup[% HOLD.reserve_id | html %]" tabindex="-1" aria-labelledby="changePickup[% HOLD.reserve_id | html %]Label" aria-hidden="true"> |
| 100 |
<h5 class="modal-title" id="changePickup[% HOLD.reserve_id | html %]Label">Change pickup location for <em>[% INCLUDE 'biblio-title.inc' biblio=HOLD.biblio %]</em></h5> |
94 |
<div class="modal-dialog"> |
| 101 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> |
95 |
<form id="change_branch_form[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
| 102 |
<span aria-hidden="true">×</span> |
96 |
<div class="modal-content"> |
| 103 |
</button> |
97 |
<div class="modal-header"> |
| 104 |
</div> |
98 |
<h5 class="modal-title" id="changePickup[% HOLD.reserve_id | html %]Label">Change pickup location for <em>[% INCLUDE 'biblio-title.inc' biblio=HOLD.biblio %]</em></h5> |
| 105 |
<div class="modal-body"> |
99 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> |
| 106 |
<div class="form-group"> |
100 |
<span aria-hidden="true">×</span> |
| 107 |
<label for="new_branch[% HOLD.reserve_id | html %]">New pickup location:</label> |
101 |
</button> |
| 108 |
<select name="new_pickup_location" id="new_branch[% HOLD.reserve_id | html %]" class="form-control"> |
102 |
</div> |
| 109 |
[% PROCESS options_for_libraries libraries = Branches.pickup_locations({ search_params => { biblio => HOLD.biblionumber, patron => HOLD.borrower }, selected => HOLD.branchcode }) %] |
103 |
<div class="modal-body"> |
| 110 |
</select> |
104 |
<div class="form-group"> |
| 111 |
</div> |
105 |
<label for="new_branch[% HOLD.reserve_id | html %]">New pickup location:</label> |
| 112 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
106 |
<select name="new_pickup_location" id="new_branch[% HOLD.reserve_id | html %]" class="form-control"> |
| 113 |
</div> |
107 |
[% PROCESS options_for_libraries libraries = Branches.pickup_locations({ search_params => { biblio => HOLD.biblionumber, patron => HOLD.borrower }, selected => HOLD.branchcode }) %] |
| 114 |
<div class="modal-footer"> |
108 |
</select> |
| 115 |
<button type="submit" name="change_branch" value="1" class="btn btn-primary"><i class="fa fa-check" aria-hidden="true"></i> Save</button> |
109 |
</div> |
| 116 |
<button type="button" class="btn btn-secondary" data-dismiss="modal"><i class="fa fa-times" aria-hidden="true"></i> Cancel</button> |
110 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 117 |
</div> |
111 |
</div> |
| 118 |
</div> <!-- /.modal-content --> |
112 |
<div class="modal-footer"> |
| 119 |
</form> |
113 |
<button type="submit" name="change_branch" value="1" class="btn btn-primary"><i class="fa fa-check" aria-hidden="true"></i> Save</button> |
| 120 |
</div> <!-- /.modal-dialog --> |
114 |
<button type="button" class="btn btn-secondary" data-dismiss="modal"><i class="fa fa-times" aria-hidden="true"></i> Cancel</button> |
| 121 |
</div> <!-- /.modal --> |
115 |
</div> |
| 122 |
[% END %] |
116 |
</div> <!-- /.modal-content --> |
| 123 |
</td> |
117 |
</form> |
|
|
118 |
</div> <!-- /.modal-dialog --> |
| 119 |
</div> <!-- /.modal --> |
| 120 |
[% END %] |
| 121 |
</td> |
| 122 |
[% END %] |
| 123 |
[% IF ( showpriority ) %] |
| 124 |
<td data-order="[% HOLD.priority | html %]" class="priority"> |
| 125 |
<span class="tdlabel">Priority:</span> |
| 126 |
[% HOLD.priority | html %] |
| 127 |
</td> |
| 128 |
[% END %] |
| 129 |
<td class="status"> |
| 130 |
<span class="tdlabel">Status:</span> |
| 131 |
[% IF ( HOLD.is_waiting ) %] |
| 132 |
<i class="fa fa-exclamation-circle text-warning" aria-hidden="true"></i> |
| 133 |
[% IF ( HOLD.is_at_destination ) %] |
| 134 |
Item waiting at <strong> [% HOLD.branch.branchname | html %]</strong> |
| 135 |
[% IF ( HOLD.desk_id ) %], [% HOLD.desk.desk_name | html %],[% END %] |
| 136 |
[% IF ( HOLD.waitingdate ) %] |
| 137 |
since [% HOLD.waitingdate | $KohaDates %] |
| 138 |
[% IF HOLD.expirationdate %] |
| 139 |
until [% HOLD.expirationdate | $KohaDates %] |
| 140 |
[% END %] |
| 141 |
[% END %] |
| 142 |
<input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" /> |
| 143 |
[% ELSE %] |
| 144 |
Item in transit to <strong> [% Branches.GetName( HOLD.branchcode ) | html %]</strong> <input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" /> |
| 124 |
[% END %] |
145 |
[% END %] |
| 125 |
[% IF ( showpriority ) %] |
146 |
[% ELSE %] |
| 126 |
<td data-order="[% HOLD.priority | html %]" class="priority"> |
147 |
[% IF ( HOLD.is_in_transit ) %] |
| 127 |
<span class="tdlabel">Priority:</span> |
148 |
[% SET transfer = HOLD.item.get_transfer %] |
| 128 |
[% HOLD.priority | html %] |
149 |
[% branch_name = BLOCK %]<strong>[% Branches.GetName( transfer.frombranch ) | html %]</strong>[% END %] |
| 129 |
</td> |
150 |
<span>Item in transit from [% branch_name| $raw %] since</span> |
|
|
151 |
[% transfer.datesent | $KohaDates %] |
| 152 |
[% ELSIF ( HOLD.is_in_processing ) %] |
| 153 |
<span>Item in processing</span> |
| 154 |
[% ELSIF ( HOLD.suspend ) %] |
| 155 |
<span>Suspended</span>[% IF ( HOLD.suspend_until ) %] <span>until</span> [% HOLD.suspend_until | $KohaDates %][% END %] |
| 156 |
[% ELSE %] |
| 157 |
[% IF HOLD.itemtype %] |
| 158 |
<span>Pending for next available item of item type '[% ItemTypes.GetDescription( HOLD.itemtype ) | html %]'</span> |
| 159 |
[% ELSE %] |
| 160 |
<span>Pending</span> |
| 161 |
[% END %] |
| 130 |
[% END %] |
162 |
[% END %] |
| 131 |
<td class="status"> |
163 |
[% END %] |
| 132 |
<span class="tdlabel">Status:</span> |
164 |
</td> |
| 133 |
[% IF ( HOLD.is_waiting ) %] |
165 |
[% IF SuspendHoldsOpac and ! onlyinfo %] |
| 134 |
<i class="fa fa-exclamation-circle text-warning" aria-hidden="true"></i> |
166 |
<td> |
| 135 |
[% IF ( HOLD.is_at_destination ) %] |
167 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
| 136 |
Item waiting at <strong> [% HOLD.branch.branchname | html %]</strong> |
168 |
[% IF HOLD.suspend %] |
| 137 |
[% IF ( HOLD.desk_id ) %], [% HOLD.desk.desk_name | html %],[% END %] |
169 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
| 138 |
[% IF ( HOLD.waitingdate ) %] |
170 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 139 |
since [% HOLD.waitingdate | $KohaDates %] |
171 |
<button class="btn btn-link" type="submit" name="submit"><i class="fa fa-play" aria-hidden="true"></i> Resume</button> |
| 140 |
[% IF HOLD.expirationdate %] |
172 |
</form> |
| 141 |
until [% HOLD.expirationdate | $KohaDates %] |
|
|
| 142 |
[% END %] |
| 143 |
[% END %] |
| 144 |
<input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" /> |
| 145 |
[% ELSE %] |
| 146 |
Item in transit to <strong> [% Branches.GetName( HOLD.branchcode ) | html %]</strong> <input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" /> |
| 147 |
[% END %] |
| 148 |
[% ELSE %] |
173 |
[% ELSE %] |
| 149 |
[% IF ( HOLD.is_in_transit ) %] |
174 |
[% IF AutoResumeSuspendedHolds %] |
| 150 |
[% SET transfer = HOLD.item.get_transfer %] |
175 |
<a class="btn btn-link suspend_hold js-show" href="#" role="button" data-title="[% HOLD.biblio.title | html %] [% FOREACH subtitle IN HOLD.biblio.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %][% subtitle | html %][% END %]" data-reserve_id="[% HOLD.reserve_id | html %]"><i class="fa fa-pause" aria-hidden="true"></i> Suspend</a> |
| 151 |
[% branch_name = BLOCK %]<strong>[% Branches.GetName( transfer.frombranch ) | html %]</strong>[% END %] |
|
|
| 152 |
<span>Item in transit from [% branch_name| $raw %] since</span> |
| 153 |
[% transfer.datesent | $KohaDates %] |
| 154 |
[% ELSIF ( HOLD.is_in_processing ) %] |
| 155 |
<span>Item in processing</span> |
| 156 |
[% ELSIF ( HOLD.suspend ) %] |
| 157 |
<span>Suspended</span>[% IF ( HOLD.suspend_until ) %] <span>until</span> [% HOLD.suspend_until | $KohaDates %][% END %] |
| 158 |
[% ELSE %] |
176 |
[% ELSE %] |
| 159 |
[% IF HOLD.itemtype %] |
177 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
| 160 |
<span>Pending for next available item of item type '[% ItemTypes.GetDescription( HOLD.itemtype ) | html %]'</span> |
|
|
| 161 |
[% ELSE %] |
| 162 |
<span>Pending</span> |
| 163 |
[% END %] |
| 164 |
[% END %] |
| 165 |
[% END %] |
| 166 |
</td> |
| 167 |
[% IF SuspendHoldsOpac and ! onlyinfo %] |
| 168 |
<td> |
| 169 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
| 170 |
[% IF HOLD.suspend %] |
| 171 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
| 172 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 173 |
<button class="btn btn-link" type="submit" name="submit"><i class="fa fa-play" aria-hidden="true"></i> Resume</button> |
| 174 |
</form> |
| 175 |
[% ELSE %] |
| 176 |
[% IF AutoResumeSuspendedHolds %] |
| 177 |
<a class="btn btn-link suspend_hold js-show" href="#" role="button" data-title="[% HOLD.biblio.title | html %] [% FOREACH subtitle IN HOLD.biblio.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %][% subtitle | html %][% END %]" data-reserve_id="[% HOLD.reserve_id | html %]"><i class="fa fa-pause" aria-hidden="true"></i> Suspend</a> |
| 178 |
[% ELSE %] |
| 179 |
<form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
| 180 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 181 |
<button class="btn btn-link" type="submit" name="submit"><i class="fa fa-pause" aria-hidden="true"></i> Suspend</button> |
| 182 |
</form> |
| 183 |
[% END # / IF AutoResumeSuspendedHolds %] |
| 184 |
[% END # / IF HOLD.suspend %] |
| 185 |
[% END # / IF ( HOLD.is_cancelable_from_opac )%] |
| 186 |
</td> |
| 187 |
[% END # / IF SuspendHoldsOpac %] |
| 188 |
[% IF ! onlyinfo %] |
| 189 |
<td class="modify"> |
| 190 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
| 191 |
<form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
| 192 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
| 193 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 194 |
<button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-times" aria-hidden="true"></i> [% tp('Cancel hold button', 'Cancel') | html %]</button> |
| 195 |
</form> |
| 196 |
[% ELSIF HOLD.is_waiting && HOLD.cancellation_requestable_from_opac %] |
| 197 |
<form id="req_cancel_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
| 198 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
| 199 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
178 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 200 |
<input type="hidden" name="cancellation_request" value="1" /> |
179 |
<button class="btn btn-link" type="submit" name="submit"><i class="fa fa-pause" aria-hidden="true"></i> Suspend</button> |
| 201 |
<button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-req-delete-hold"><i class="fa fa-times" aria-hidden="true"></i> [% tp('Cancel hold button', 'Cancel') | html %]</button> |
|
|
| 202 |
</form> |
180 |
</form> |
| 203 |
[% END %] |
181 |
[% END # / IF AutoResumeSuspendedHolds %] |
| 204 |
</td> |
182 |
[% END # / IF HOLD.suspend %] |
| 205 |
<td></td> |
183 |
[% END # / IF ( HOLD.is_cancelable_from_opac )%] |
| 206 |
[% END # / IF onlyinfo %] |
184 |
</td> |
| 207 |
</tr> |
185 |
[% END # / IF SuspendHoldsOpac %] |
| 208 |
[% END # /FOREACH HOLDS %] |
186 |
[% IF ! onlyinfo %] |
| 209 |
</tbody> |
187 |
<td class="modify"> |
| 210 |
</table> |
188 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
|
|
189 |
<form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
| 190 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
| 191 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 192 |
<button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-times" aria-hidden="true"></i> [% tp('Cancel hold button', 'Cancel') | html %]</button> |
| 193 |
</form> |
| 194 |
[% ELSIF HOLD.is_waiting && HOLD.cancellation_requestable_from_opac %] |
| 195 |
<form id="req_cancel_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
| 196 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
| 197 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 198 |
<input type="hidden" name="cancellation_request" value="1" /> |
| 199 |
<button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-req-delete-hold"><i class="fa fa-times" aria-hidden="true"></i> [% tp('Cancel hold button', 'Cancel') | html %]</button> |
| 200 |
</form> |
| 201 |
[% END %] |
| 202 |
</td> |
| 203 |
<td></td> |
| 204 |
[% END # / IF onlyinfo %] |
| 205 |
</tr> |
| 206 |
[% END # /FOREACH HOLDS %] |
| 207 |
</tbody> |
| 208 |
</table> |
| 211 |
|
209 |
|
| 212 |
[% IF SuspendHoldsOpac and ! onlyinfo %] |
210 |
[% IF SuspendHoldsOpac and ! onlyinfo %] |
| 213 |
[% UNLESS ( all_holds_waiting ) %] |
211 |
[% UNLESS ( all_holds_waiting ) %] |
| 214 |
<div> |
212 |
<div> |
| 215 |
<form class="form-inline" id="suspend_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
213 |
<form class="form-inline" id="suspend_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
| 216 |
<button type="submit" id="suspend_all_submit" class="btn btn-primary"><i class="fa fa-pause" aria-hidden="true"></i> Suspend all holds</button> |
214 |
<button type="submit" id="suspend_all_submit" class="btn btn-primary"><i class="fa fa-pause" aria-hidden="true"></i> Suspend all holds</button> |
| 217 |
<input type="hidden" name="suspend" value="1" /> |
215 |
<input type="hidden" name="suspend" value="1" /> |
| 218 |
|
216 |
|
| 219 |
[% IF AutoResumeSuspendedHolds %] |
217 |
[% IF AutoResumeSuspendedHolds %] |
| 220 |
<label for="suspend_until"> until </label> |
218 |
<label for="suspend_until"> until </label> |
| 221 |
<input type="text" name="suspend_until" id="suspend_until" class="flatpickr futuredate" size="10" /> |
219 |
<input type="text" name="suspend_until" id="suspend_until" class="flatpickr futuredate" size="10" /> |
| 222 |
<p><a href="#" class="clear-flatpickr" data-fp="suspend_until">Clear date to suspend indefinitely</a></p> |
220 |
<p><a href="#" class="clear-flatpickr" data-fp="suspend_until">Clear date to suspend indefinitely</a></p> |
| 223 |
[% END %] |
221 |
[% END %] |
| 224 |
</form> |
222 |
</form> |
| 225 |
</div> |
223 |
</div> |
| 226 |
<br/> |
224 |
<br/> |
| 227 |
<div> |
225 |
<div> |
| 228 |
<form id="resume_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
226 |
<form id="resume_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post"> |
| 229 |
<button type="submit" id="resume_all_submit" class="btn btn-primary"><i class="fa fa-play" aria-hidden="true"></i> Resume all suspended holds</button> |
227 |
<button type="submit" id="resume_all_submit" class="btn btn-primary"><i class="fa fa-play" aria-hidden="true"></i> Resume all suspended holds</button> |
| 230 |
<input type="hidden" name="suspend" value="0" /> |
228 |
<input type="hidden" name="suspend" value="0" /> |
| 231 |
</form> |
229 |
</form> |
| 232 |
</div> |
230 |
</div> |
| 233 |
[% END %] |
231 |
[% END %] |
| 234 |
[% END %] |
232 |
[% END %] |
| 235 |
</div> <!-- / #opac-user-holds --> |
|
|
| 236 |
[% END # / #HOLDS.count %] |