1// Activate JQUery tooltip 2$(document).ready(function(){ 3 $('[data-toggle="tooltip"]').tooltip() 4}) 5 6// Validate form 7$().ready(function() { 8 // validate search when it is submitted 9 $( "#searchForm" ).validate({ 10 rules: { 11 igsn: { 12 minlength: 18, 13 maxlength: 42 14 } 15 }, 16 messages: { 17 igsn: { 18 minlength: "An IGSN must be at least 18 alphanumeric digits, including doi prefix, e.g. 10.58052/KHR00007W", 19 maxlength: "An IGSN cannot exceed 42 alphanumeric digits" 20 } 21 } 22 }); 23 24}); 25 26// copied from old sesar 27function setPolygonValue(polygonvalue) 28{ 29 if(polygonvalue.indexOf("<html>") !== -1) document.getElementById('polygon').value = polygonvalue.substring(39); 30 else if(polygonvalue.indexOf("DB") !== -1) 31 { 32 return false; 33 } 34 else 35 document.getElementById('polygon').value = polygonvalue; 36} 37 38function fixPoly(polygon){ 39 myvar = $.ajax({ 40 data: { 'polygon':polygon }, 41 type:'GET', 42 url:"utm2wgs.php", 43 cache:false, 44 async: false, 45 success: function(response) { 46 setPolygonValue(response); 47 } 48 }); 49 50 return myvar.responseText; 51} 52
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.