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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt (-9 / +28 lines)
Lines 118-124 Link Here
118
        </div>
118
        </div>
119
    </div>
119
    </div>
120
120
121
    <form method="post" action="z3950_auth_search.pl" id="page_form" name="page_form" class="checkboxed">
121
    <form method="post" action="z3950_auth_search.pl" id="page_form" name="page_form">
122
        <input type="hidden" name="op" id="op" value="do_search" />
122
        <input type="hidden" name="op" id="op" value="do_search" />
123
        <input type="hidden" name="current_page" id="current_page" value="[% current_page | html %]" />
123
        <input type="hidden" name="current_page" id="current_page" value="[% current_page | html %]" />
124
        <input type="hidden" id="nameany"  name="nameany" value="[% nameany | html %]" />
124
        <input type="hidden" id="nameany"  name="nameany" value="[% nameany | html %]" />
Lines 138-151 Link Here
138
        <input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" />
138
        <input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" />
139
        [% END %]
139
        [% END %]
140
140
141
        [% IF ( show_prevbutton ) %]
141
        [% IF ( total_pages > 1 ) %]
142
            <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page | html %]" />
142
            <fieldset class="action">
143
        [% END %]
143
                [% IF ( show_prevbutton ) %]
144
        Page [% current_page | html %] / [% total_pages | html %]
144
                    <button type="button" name="changepage_prev" class="btn btn-default btn-xs" data-currentpage="[% current_page | html %]"><i class="fa fa-angle-double-left"></i> Previous page</button>
145
        [% IF ( show_nextbutton ) %]
145
                [% END %]
146
            <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page | html %]" />
146
                Page
147
                [% i = 1 %]
148
                <select name="goto_page" id="goto_page">
149
                    [% WHILE i <= total_pages %]
150
                        [% IF ( current_page == i ) %]
151
                            <option value="[% i | html %]" selected="selected">[% i | html %]</option>
152
                        [% ELSE %]
153
                            <option value="[% i | html %]">[% i | html %]</option>
154
                        [% END %]
155
                        [% i = i + 1 %]
156
                    [% END %]
157
                </select>
158
                 / [% total_pages | html %]
159
                [% IF ( show_nextbutton ) %]
160
                    <button type="button" name="changepage_next" class="btn btn-default btn-xs" data-currentpage="[% current_page | html %]">Next page <i class="fa fa-angle-double-right"></i></button>
161
                [% END %]
162
                <input type="hidden" name="" id="changepage_goto" value="Go" />
163
            </fieldset>
147
        [% END %]
164
        [% END %]
148
        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page | html %]" size="4" type="text" /><input type="submit" name="changepage_goto" value="Go" />
149
    </form>
165
    </form>
150
166
151
<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid | html %]" /><input type="submit" value="Try another search"/></form></p>
167
<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid | html %]" /><input type="submit" value="Try another search"/></form></p>
Lines 173-178 Link Here
173
    [% INCLUDE 'datatables.inc' %]
189
    [% INCLUDE 'datatables.inc' %]
174
    <script type="text/javascript">
190
    <script type="text/javascript">
175
        $(document).ready(function(){
191
        $(document).ready(function(){
192
            $("#goto_page").on("change", function(){
193
                $("#changepage_goto").attr("name", "changepage_goto");
194
                $("#page_form").submit();
195
            });
176
196
177
            $(".dropdown").on("hidden.bs.dropdown", function(){
197
            $(".dropdown").on("hidden.bs.dropdown", function(){
178
                // Reset menu styles so that a click on the
198
                // Reset menu styles so that a click on the
179
- 

Return to bug 18078