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 |
- |
|
|