Bug 9206 - Only allow place holds in records that the patron don't have in his possession
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-reserve.tt
index 8096baf..1c5205d 100644 (file)
@@ -1,5 +1,6 @@
 [% INCLUDE 'doc-head-open.inc' %][% LibraryNameTitle or "Koha online" %] catalog ›  Placing a hold
 [% INCLUDE 'doc-head-close.inc' %]
+[% INCLUDE 'calendar.inc' %]
 <script type="text/javascript">
 // <![CDATA[
  var MSG_NO_COPY_SELECTED = _("Expecting a specific copy selection.");
                           [% UNLESS ( bibitemloo.bib_available ) %]
                             <div class="bibmessage">No available items.</div>
                           [% ELSE %]
-                            <div class="bibmessage">This title cannot be requested.</div>
-                          [% END %]
+                               [% IF ( bibitemloo.already_patron_possession ) %]
+                                        <div class="bibmessage">This title cannot be requested because it's already in your possession.</div>
+                                [% ELSE %]
+                                        <div class="bibmessage">This title cannot be requested.</div>
+                                [% END %]
+                    [% END %]
                         [% END %]