<h2>What is a discharge?</h2>
<p>This document certifies that you have returned all borrowed items. It is sometimes asked during a file transfer from a school to another. The discharge is sent by us to your school. You will also find it available on your reader account.</p>
<p><strong>Warning</strong>: This request is only valid if you are in good standing with the library. Once the application is made, you can not borrow library materials.</p>
- <a href="/cgi-bin/koha/opac-discharge.pl?op=request">Ask for a discharge</a>
+ [% IF has_checkouts %]
+ <div class="dialog alert">You cannot be discharged, you have checked out items. Please return items before asking for a discharge.</div>
+ [% ELSE %]
+ <a href="/cgi-bin/koha/opac-discharge.pl?op=request">Ask for a discharge</a>
+ [% END %]
+
[% END %]
</div> <!-- / #discharge -->
</div> <!-- / .span10 -->