[% CASE 'hold_cancelled' %]
<span>The hold has been correctly cancelled.</span>
[% CASE 'hold_placed_at_biblio_level' %]
- <span>The hold has been placed at biblio level. It is not possible to mark it as lost.</span>
+ <span>The hold has been placed on biblio level. It is not possible to determine the item to mark as lost.</span>
[% CASE %]
[% m.code %]
[% END %]
</form>
[% IF Koha.Preference('CanMarkHoldsToPullAsLost') != 'do_not_allow' %]
- <form name="cancelReserve" action="/cgi-bin/koha/circ/pendingreserves.pl" method="post">
- <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" />
- [% IF Koha.Preference('CanMarkHoldsToPullAsLost') == 'allow' %]
- <input type="hidden" name="op" value="mark_as_lost" />
- <input type="submit" value="Mark item as lost" />
- [% ELSIF Koha.Preference('CanMarkHoldsToPullAsLost') == 'allow_and_notify' %]
- <input type="hidden" name="op" value="mark_as_lost_and_notify" />
- <input type="submit" value="Mark item as lost and notify the patron" />
- [% END %]
- </form>
+ [% IF reserveloo.itemnumber %]
+ <form name="cancelReserve" action="/cgi-bin/koha/circ/pendingreserves.pl" method="post">
+ <input type="hidden" name="reserve_id" value="[% reserveloo.reserve_id %]" />
+ [% IF Koha.Preference('CanMarkHoldsToPullAsLost') == 'allow' %]
+ <input type="hidden" name="op" value="mark_as_lost" />
+ <input type="submit" value="Mark item as lost" />
+ [% ELSIF Koha.Preference('CanMarkHoldsToPullAsLost') == 'allow_and_notify' %]
+ <input type="hidden" name="op" value="mark_as_lost_and_notify" />
+ <input type="submit" value="Mark item as lost and notify the patron" />
+ [% END %]
+ </form>
+ [% ELSE %]
+ <span>Biblio level hold.</span>
+ [% END %]
[% END %]
</tr>
[% END %]