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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950_search.inc (-22 / +1 lines)
Lines 1-28 Link Here
1
<!-- z3950_search.inc -->
1
<!-- z3950_search.inc -->
2
<script>
2
<script>
3
4
    var MSG_CHOOSE_Z3950 = _("Please choose at least one external target");
5
6
[% IF ( total_pages ) %]
7
    var interface = "[% interface | html %]";
3
    var interface = "[% interface | html %]";
8
    var theme = "[% theme | html %]";
4
    var theme = "[% theme | html %]";
9
    var MSG_LOADING = _("Loading");
5
    var total_pages = new Number("[% total_pages | html %]");
10
11
function validate_goto_page(){
12
    var page = $('#goto_page').val();
13
    if(isNaN(page)) {
14
        alert(_("The page entered is not a number."));
15
        return false;
16
    }
17
    else if(page < 1 || page > [% total_pages | html %] ) {
18
        alert(_("The page should be a number between 1 and %s.").format([% total_pages | html %]));
19
        return false;
20
    }
21
    else {
22
        return true;
23
    }
24
}
25
[% END %]
26
27
</script>
6
</script>
28
<!-- / z3950_search.inc -->
7
<!-- / z3950_search.inc -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt (-1 / +1 lines)
Lines 230-235 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
230
[% MACRO jsinclude BLOCK %]
230
[% MACRO jsinclude BLOCK %]
231
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
231
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
232
    [% INCLUDE 'datatables.inc' %]
232
    [% INCLUDE 'datatables.inc' %]
233
    [% INCLUDE 'z3950_search.inc' %]
233
    [% Asset.js("js/z3950_search.js") | $raw %]
234
    [% Asset.js("js/z3950_search.js") | $raw %]
234
    <script>
235
    <script>
235
        $(document).ready(function(){
236
        $(document).ready(function(){
Lines 243-249 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
243
            }));
244
            }));
244
        });
245
        });
245
    </script>
246
    </script>
246
    [% INCLUDE 'z3950_search.inc' %]
247
[% END %]
247
[% END %]
248
248
249
[% INCLUDE 'intranet-bottom.inc' %]
249
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt (-1 / +1 lines)
Lines 169-174 Link Here
169
169
170
[% MACRO jsinclude BLOCK %]
170
[% MACRO jsinclude BLOCK %]
171
    [% INCLUDE 'datatables.inc' %]
171
    [% INCLUDE 'datatables.inc' %]
172
    [% INCLUDE 'z3950_search.inc' %]
172
    [% Asset.js("js/z3950_search.js") | $raw %]
173
    [% Asset.js("js/z3950_search.js") | $raw %]
173
    <script>
174
    <script>
174
        $(document).ready(function(){
175
        $(document).ready(function(){
Lines 182-188 Link Here
182
            }));
183
            }));
183
        });
184
        });
184
    </script>
185
    </script>
185
    [% INCLUDE 'z3950_search.inc' %]
186
[% END %]
186
[% END %]
187
187
188
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
188
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt (-3 / +3 lines)
Lines 236-244 Link Here
236
        [% END %]
236
        [% END %]
237
237
238
[% MACRO jsinclude BLOCK %]
238
[% MACRO jsinclude BLOCK %]
239
    [% Asset.js("js/z3950_search.js") | $raw %]
240
    [% INCLUDE 'datatables.inc' %]
241
    [% INCLUDE 'columns_settings.inc' %]
239
    [% INCLUDE 'columns_settings.inc' %]
240
    [% INCLUDE 'datatables.inc' %]
241
    [% INCLUDE 'z3950_search.inc' %]
242
    [% Asset.js("js/z3950_search.js") | $raw %]
242
    <script>
243
    <script>
243
        $(document).ready(function(){
244
        $(document).ready(function(){
244
            var columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
245
            var columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
Lines 256-262 Link Here
256
            $("#result_pagenumbers").hide();
257
            $("#result_pagenumbers").hide();
257
        }
258
        }
258
    </script>
259
    </script>
259
    [% INCLUDE 'z3950_search.inc' %]
260
[% END %]
260
[% END %]
261
261
262
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
262
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/z3950_search.js (-2 / +15 lines)
Lines 1-3 Link Here
1
/* global __ total_pages */
1
//z3950_search.js for Authorities, Bib records and Acquisitions module
2
//z3950_search.js for Authorities, Bib records and Acquisitions module
2
function Import(Breeding, recordid, AuthType, FrameworkCode) {
3
function Import(Breeding, recordid, AuthType, FrameworkCode) {
3
4
Lines 11-16 function Import(Breeding, recordid, AuthType, FrameworkCode) { Link Here
11
12
12
}
13
}
13
14
15
function validate_goto_page() {
16
    var page = $('#goto_page').val();
17
    if (isNaN(page)) {
18
        alert( __("The page entered is not a number.") );
19
        return false;
20
    } else if (page < 1 || page > total_pages) {
21
        alert( __("The page should be a number between 1 and %s.").format(total_pages) );
22
        return false;
23
    } else {
24
        return true;
25
    }
26
}
27
14
$( document ).ready( function() {
28
$( document ).ready( function() {
15
29
16
    $( "#CheckAll" ).click( function(e) {
30
    $( "#CheckAll" ).click( function(e) {
Lines 44-50 $( document ).ready( function() { Link Here
44
    });
58
    });
45
    $( "form[name='f']" ).submit( function() {
59
    $( "form[name='f']" ).submit( function() {
46
        if ( $( 'input[type=checkbox]' ).filter( ':checked' ).length == 0 ) {
60
        if ( $( 'input[type=checkbox]' ).filter( ':checked' ).length == 0 ) {
47
            alert( MSG_CHOOSE_Z3950 );
61
            alert( __("Please choose at least one external target") );
48
            $( "body" ).css( "cursor", "default" );
62
            $( "body" ).css( "cursor", "default" );
49
            return false;
63
            return false;
50
        } else {
64
        } else {
51
- 

Return to bug 26291