Lines 162-186
Link Here
|
162 |
[% END %] |
162 |
[% END %] |
163 |
</li> |
163 |
</li> |
164 |
[% END %] |
164 |
[% END %] |
165 |
<li><span class="label">Withdrawn?:</span>[% IF ( ITEM_DAT.withdrawn ) %]Yes[% ELSE %]No[% END %] |
|
|
166 |
[% IF ( CAN_user_circulate ) %] |
167 |
<form action="updateitem.pl" method="post"> |
168 |
<input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber %]" /> |
169 |
<input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber %]" /> |
170 |
<input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber %]" /> |
171 |
<input type="hidden" name="itemlost" value="[% ITEM_DAT.itemlost %]" /> |
172 |
<input type="hidden" name="damaged" value="[% ITEM_DAT.damaged %]" /> |
173 |
|
165 |
|
174 |
[% IF ( ITEM_DAT.withdrawn ) %] |
166 |
[% IF ( ITEM_DAT.itemwithdrawnloop ) %] |
175 |
<input type="hidden" name="withdrawn" value="0" />[% ELSE %]<input type="hidden" name="withdrawn" value="1" /> |
167 |
<li><span class="label">Withdrawn status:</span> |
176 |
[% END %] |
168 |
[% IF ( CAN_user_circulate ) %] |
177 |
[% IF ( ITEM_DAT.withdrawn ) %] |
169 |
<form action="updateitem.pl" method="post"> |
178 |
<input type="submit" name="submit" class="submit" value="Restore" />[% ELSE %]<input type="submit" name="submit" class="submit" value="Withdraw" /> |
170 |
<input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber %]" /> |
179 |
[% END %] |
171 |
<input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber %]" /> |
180 |
</form> |
172 |
<input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber %]" /> |
|
|
173 |
<select name="withdrawn" > |
174 |
<option value="">Choose</option> |
175 |
[% FOREACH itemwithdrawn IN ITEM_DAT.itemwithdrawnloop %] |
176 |
[% IF ( itemwithdrawn.selected ) %] |
177 |
<option value="[% itemwithdrawn.authorised_value %]" selected="selected">[% itemwithdrawn.lib %]</option> |
178 |
[% ELSE %] |
179 |
<option value="[% itemwithdrawn.authorised_value %]">[% itemwithdrawn.lib %]</option> |
180 |
[% END %] |
181 |
[% END %] |
182 |
</select> |
183 |
<input type="hidden" name="itemlost" value="[% ITEM_DAT.itemlost %]" /> |
184 |
<input type="hidden" name="damaged" value="[% ITEM_DAT.damaged %]" /> |
185 |
<input type="submit" name="submit" class="submit" value="Set status" /></form> |
186 |
[% ELSE %] |
187 |
[% FOREACH itemwithdrawn IN ITEM_DAT.itemwithdrawnloop %] |
188 |
[% IF ( itemwithdrawn.selected ) %] |
189 |
[% itemwithdrawn.lib %] |
190 |
[% END %] |
191 |
[% END %] |
192 |
|
193 |
[% END %] |
194 |
</li> |
195 |
[% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %] |
196 |
<li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] </li> |
181 |
[% END %] |
197 |
[% END %] |
182 |
</li> |
198 |
[% END %] |
183 |
[% IF ITEM_DAT.withdrawn_on %]<li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] </li>[% END %] |
199 |
|
184 |
</ol></div> |
200 |
</ol></div> |
185 |
<div class="listgroup"><h4>History</h4> |
201 |
<div class="listgroup"><h4>History</h4> |
186 |
<ol class="bibliodetails"> |
202 |
<ol class="bibliodetails"> |
187 |
- |
|
|