View | Details | Raw Unified | Return to bug 10493
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt (-34 / +16 lines)
Lines 8-23 Link Here
8
8
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
10
11
<script type="text/javascript">
12
//<![CDATA[
13
14
$(document).ready(function () {
15
    $("#barcode").focus();
16
});
17
18
//]]>
19
</script>
20
21
</head>
11
</head>
22
12
23
<body>
13
<body>
Lines 25-80 $(document).ready(function () { Link Here
25
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
26
[% INCLUDE 'circ-search.inc' %]
16
[% INCLUDE 'circ-search.inc' %]
27
17
28
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Check in</div>
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Renew</div>
29
19
30
<div id="doc" class="yui-t7">
20
<div id="doc" class="yui-t7">
31
    <div id="bd">
21
    <div id="bd">
32
            <div id="yui-main">
33
22
34
            <div class="yui-g">
35
                [% IF error %]
23
                [% IF error %]
36
                    <div class="dialog alert">
24
                    <div class="dialog alert">
37
                        <h3>Cannot renew:</h3>
25
                        <h3>Cannot renew:</h3>
38
                        <p>
26
39
                            [% IF error == "no_item" %]
27
                            [% IF error == "no_item" %]
40
28
41
                                No item matches this barcode
29
                                <p>No item matches this barcode</p>
42
30
43
                            [% ELSIF error == "no_checkout" %]
31
                            [% ELSIF error == "no_checkout" %]
44
32
45
                                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.biblio.title %] [% item.biblioitem.subtitle %]</a>
33
                                <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.biblio.title %] [% item.biblioitem.subtitle %]</a> ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> ) is not checked out to a patron.</p>
46
                                ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&biblionumber=[% item.biblionumber %]&bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> )
47
                                is not checked out to a patron.
48
34
49
                            [% ELSIF error == "too_many" %]
35
                            [% ELSIF error == "too_many" %]
50
36
51
                                [% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] )
37
                                <p>[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) has been renewed the maximum number of times by [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )</p>
52
                                has been renewed the maximum number of times by
53
                                [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )
54
38
55
                                [% IF Koha.Preference('AllowRenewalLimitOverride') %]
39
                                [% IF Koha.Preference('AllowRenewalLimitOverride') %]
56
                                    <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off" >
40
                                    <form method="post" action="/cgi-bin/koha/circ/renew.pl">
57
                                        <input type="hidden" name="barcode" value="[% item.barcode %]"/>
41
                                        <input type="hidden" name="barcode" value="[% item.barcode %]"/>
58
                                        <input type="hidden" name="override_limit" value="1" />
42
                                        <input type="hidden" name="override_limit" value="1" />
59
                                        <input type="submit" class="submit" value="Override limit and renew" />
43
                                        <input type="submit" class="approve" value="Override limit and renew" />
60
                                    </form>
44
                                    </form>
61
                                [% END %]
45
                                [% END %]
62
46
63
                            [% ELSIF error == "on_reserve" %]
47
                            [% ELSIF error == "on_reserve" %]
64
48
65
                                This item is on hold for other patrons.
49
                                <p>This item is on hold for another patron.</p>
66
50
67
                                <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off" >
51
                                <form method="post" action="/cgi-bin/koha/circ/renew.pl">
68
                                    <input type="hidden" name="barcode" value="[% item.barcode %]"/>
52
                                    <input type="hidden" name="barcode" value="[% item.barcode %]"/>
69
                                    <input type="hidden" name="override_limit" value="1" />
53
                                    <input type="hidden" name="override_limit" value="1" />
70
                                    <input type="hidden" name="override_holds" value="1" />
54
                                    <input type="hidden" name="override_holds" value="1" />
71
                                    <input type="submit" class="submit" value="Override and renew" />
55
                                    <input type="submit" class="approve" value="Override and renew" />
72
                                </form>
56
                                </form>
73
57
74
                            [% ELSIF error == "patron_restricted" %]
58
                            [% ELSIF error == "patron_restricted" %]
75
59
76
                                [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )
60
                                <p>[% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> ) is currently restricted.</p>
77
                                is currently restricted.
78
61
79
                            [% ELSE %]
62
                            [% ELSE %]
80
63
Lines 82-99 $(document).ready(function () { Link Here
82
65
83
                            [% END %]
66
                            [% END %]
84
67
85
                            <a href="/cgi-bin/koha/circ/renew.pl">Ignore & continue</a>
68
                                <form method="get" action="/cgi-bin/koha/circ/renew.pl">
86
                        </p>
69
                                    <input type="submit" class="deny" value="Ignore and continue" />
70
                                </form>
87
                    </div>
71
                    </div>
88
                [% END %]
72
                [% END %]
89
73
90
                [% IF date_due %]
74
                [% IF date_due %]
91
                    <div class="dialog message">
75
                    <div class="dialog message">
76
                        <h3>Item renewed:</h3>
92
                        <p>
77
                        <p>
93
                            <h3>Item renewed:</h3>
94
95
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.biblio.title %] [% item.biblioitem.subtitle %]</a>
78
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber %]">[% item.biblio.title %] [% item.biblioitem.subtitle %]</a>
96
                            ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&biblionumber=[% item.biblionumber %]&bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> )
79
                            ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber %]&amp;biblionumber=[% item.biblionumber %]&amp;bi=[% item.biblioitemnumber %]#item[% item.itemnumber %]">[% item.barcode %]</a> )
97
                            renewed for
80
                            renewed for
98
                            [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )
81
                            [% borrower.firstname %] [% borrower.surname %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber %]"> [% borrower.cardnumber %] </a> )
99
                            now due on [% date_due | $KohaDates %]
82
                            now due on [% date_due | $KohaDates %]
100
- 

Return to bug 10493