Show
Ignore:
Timestamp:
20.04.2017 20:54:40 (2 years ago)
Author:
davidb
Message:

Further minor tidy up

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/web-portal/index.js

    r31618 r31619  
    11 
    2 var langs_with_pos =["en","de","pt","da","nl", "sv"]; 
    3 var langs_without_pos =["af","ar","bg","bn","cs","el","es","et","fa","fi","fr","he","hi","hr","hu","id","it","ja","kn","ko","lt","lv","mk","ml","mr","ne","no","pa","pl","ro","ru","sk","sl","so","sq","sv","sw","ta","te","th","tl","tr","uk","ur","vi","zh-cn","zh-tw"]; 
     2var langs_with_pos = [ "en","de","pt","da","nl", "sv" ]; 
     3 
     4var langs_without_pos = [ 
     5    "af","ar","bg","bn","cs","el","es","et","fa","fi","fr","he","hi","hr","hu", 
     6    "id","it","ja","kn","ko","lt","lv","mk","ml","mr","ne","no","pa","pl", 
     7    "ro","ru","sk","sl","so","sq","sv","sw","ta","te","th","tl","tr", 
     8    "uk","ur","vi","zh-cn","zh-tw" ]; 
    49 
    510var num_rows = 20; 
     
    1318    var related_id = split_id[0] + "-pos-choice"; 
    1419 
    15     //console.log("checked state = " + checked_state); 
    16  
    1720    var disable_state = !checked_state; 
    1821    $('#'+related_id + " *").prop('disabled',disable_state); 
    19 }; 
     22} 
    2023 
    2124function ajax_error(jqXHR, textStatus, errorThrown) { 
     
    7679        if (pi==0) { 
    7780        html_item += '<p ' + css_class + '>'; 
    78         html_item += '<span style="font-style: italic;" name="'+id+'"><span style="cursor: progress;">Loading ...</span></span><br>'; 
    79  
    80          
     81        html_item += '<span style="font-style: italic;" name="' 
     82                     +id+'"><span style="cursor: progress;">Loading ...</span></span><br>'; 
     83 
    8184        html_item += id + ': <a target="_blank" href="' + babel_url + '">seq ' + seqnum + '</a> '; 
    8285        } 
     
    8790    else { 
    8891        html_item += '<p ' + css_class + '>'; 
    89         html_item += ' <span style="font-style: italic;" name="'+id+'"><span style="cursor: progress;">Loading ...</span></span><br>'; 
     92        html_item += ' <span style="font-style: italic;" name="' 
     93                 +id+'"><span style="cursor: progress;">Loading ...</span></span><br>'; 
    9094        html_item += '<a target="_blank" href="' + babel_url + '">' + id + ', seq ' + seqnum + '</a>'; 
    9195        html_item += '</p>'; 
     
    293297    group_by_vol_checked = $('#group-results-by-id:checked').length; 
    294298    var search_all_checked = $('#search-all-langs:checked').length; 
    295     console.log("*** search all checked = " + search_all_checked); 
    296299     
    297300    if (q_text === "") { 
     
    435438    for (var i=0; i<langs_without_pos.length; i++) { 
    436439    var lang = langs_without_pos[i]; 
    437     //var labeled_checkbox = '<span style="white-space:nowrap;">\n'; 
    438440    var labeled_checkbox = '<nobr>'; 
    439441