Commit 5c712f32 authored by Magnus Westergaard's avatar Magnus Westergaard
Browse files

DEICH-5948: Allow checkout override when card lost and GNA.

parent c4bf4f2c
......@@ -772,9 +772,10 @@ Fant ingen lånere som passet <span class="ex">[% message | html %]</span>
<li class="blocker"><span class="circ-hlt">Tapt: </span>Lånerkortet er tapt</li>
[% END %]
[% IF ( userdebarred ) %]
[% IF ( userdebarred || lost || gna ) %]
[% INCLUDE 'kemnersaker.inc' %]
<li class="blocker">
[% IF ( userdebarred ) %]
<span class="circ-hlt"> Begrenset:</span> Lånerens konto er sperret [% IF ( userdebarreddate ) %] til [% userdebarreddate | $KohaDates %] [% END %]
[% IF ( debarredcomment ) %]
med kommentaren: <br/><i>
......@@ -787,11 +788,12 @@ Fant ingen lånere som passet <span class="ex">[% message | html %]</span>
[% END %]
<br/>
<a class="btn btn-default btn-sm" href="#reldebarments" onclick="$('#debarments-tab-link').click()"><i class="fa fa-ban"></i> Se begrensninger</a>
[% IF (noissues && borrowernumber && CAN_user_circulate_force_checkout) %]
<span class="override_debarment">
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&amp;borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Overstyr begrensningen midlertidig</a>
</span>
[% END %]
[% END %]
[% IF ( borrowernumber ) %]
<span class="override_debarment">
<a href="/cgi-bin/koha/circ/circulation.pl?forceallow=1&amp;borrowernumber=[% borrowernumber %]" class="btn btn-default btn-sm">Overstyr midlertidig</a>
</span>
[% END %]
</li>
[% END %]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment