X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fcirc%2Fcirculation.tt;h=b506241dd403be22be2522e91a621f920b4c79ad;hb=2e72eb888016f60ce15958ecb37e0ae64f0c8454;hp=ca492efd31974f775aa9b62499d8ac103935b196;hpb=c5a6a4f18a2c4eb2cb47bc302e539d3b05fcf9b1;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index ca492efd31..b506241dd4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -55,6 +55,21 @@ $(document).ready(function() { }); [% END %] }); + +// In-house use +function toggle_inhouse_use(){ + if ( $("#inhouse_use").attr('checked') ) { + $("#duedatespec").val("[% todaysdate | $KohaDates with_hours => 1%]") + $("#duedatespec").datetimepicker('destroy'); + } else { + $("#duedatespec").datetimepicker({ + onClose: function(dateText, inst) { $("#barcode").focus(); }, + hour: 23, + minute: 59 + }); + } +} + //]]> @@ -289,6 +304,7 @@ $(document).ready(function() { [% ELSE %] [% END %] + [% END %] @@ -483,7 +499,7 @@ No patron matched [% message %] [% IF ( borrowernumber ) %]
-[% UNLESS ( noissues ) %] +[% IF !noissues || inhouse_use_forced %] [% IF ( flagged ) %]
[% ELSE %] @@ -532,6 +548,18 @@ No patron matched [% message %] [% END %]
[% END %] + + [% IF inhouse_use_feature %] +
+ [% IF noissues %] + + + [% ELSE %] + + [% END %] +
+ [% END %] + @@ -546,18 +574,23 @@ No patron matched [% message %] [% IF ( noissues ) %]
[% ELSE %]
[% END %] - [% IF ( flagged ) %] - [% IF ( noissues ) %] -

Checking out to [% INCLUDE 'patron-title.inc' %]

-
- [% ELSE %] + [% IF flagged %] + [% IF NOT noissues || ( noissues && inhouse_use_forced ) %]
- [% END %] - -

[% IF ( noissues ) %] - Cannot check out! - [% ELSE %]Attention:[% END %]

- + [% ELSE %] +

Checking out to [% INCLUDE 'patron-title.inc' %]

+
+ [% END %] +

+ [% IF noissues %] + Cannot check out! + [% IF inhouse_use_forced %] + Only in-house use is allowed + [% END %] + [% ELSE %] + Attention: + [% END %] +