Changeset 30780

Show
Ignore:
Timestamp:
01.09.2016 14:32:34 (3 years ago)
Author:
kjdon
Message:

removing hard coded text fragments from xsl/js files

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/documentmaker_scripts_util.js

    r30382 r30780  
    167167function enableSaveButtons(enabled) { 
    168168  if (enabled) { 
    169     $("#saveButton, #quickSaveButton").html(gs.text.dse.save_changes); 
     169    $("#saveButton, #quickSaveButton").html(gs.text.de.save_changes); 
    170170    $("#saveButton, #quickSaveButton").removeAttr("disabled"); 
    171171 
    172172  } else { 
    173     $("#saveButton, #quickSaveButton").html(gs.text.dse.saving + "..."); 
     173    $("#saveButton, #quickSaveButton").html(gs.text.de.saving + "..."); 
    174174    $("#saveButton, #quickSaveButton").attr("disabled", "disabled"); 
    175175    
     
    194194function rebuildCurrentCollection() { 
    195195 
    196   console.log("rebuilding collection"); 
     196  console.log(gs.text.de.rebuilding_collection); 
    197197  enableSaveButtons(false); 
    198198  var collection = gs.cgiParams.c; 
     
    276276            ajax.send("a=g&rt=r&s=DocumentExecuteTransaction&s1.transactions=" + request); 
    277277        } 
    278     } 
     278    } // end sendBuildRequest definition 
    279279 
    280280  var metadataChanges = new Array(); 
     
    427427    { 
    428428        var ajax = new gs.functions.ajaxRequest(); 
    429         ajax.open("GET", gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=" + buildOperation + "&s1.collection=" + collections[counter] + docs); 
     429        ajax.open("GET", gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=" + buildOperation + "&s1.incremental=true&s1.collection=" + collections[counter] + docs); 
    430430        ajax.onreadystatechange = function() 
    431431        { 
     
    754754      source: availableMetadataElements 
    755755      }); 
    756     metaNameField.attr("title", "Enter a metadata name, or use the down arrow to select one, then click 'Add New Metadata'"); 
     756      metaNameField.attr("title", gs.text.de.enter_meta_dropdwon); //"Enter a metadata name, or use the down arrow to select one, then click 'Add New Metadata'"); 
    757757  } else { 
    758 metaNameField.attr("title", "Enter a metadata name, then click 'Add New Metadata'"); 
     758      metaNameField.attr("title", gs.text.de.enter_meta_name); //"Enter a metadata name, then click 'Add New Metadata'"); 
    759759  } 
    760760   
     
    801801     
    802802    var addRowButton = $("<button>",{"class": "ui-state-default ui-corner-all", "style": "margin: 5px;"}); 
    803     addRowButton.html(gs.text.dse.add_new_metadata); 
     803    addRowButton.html(gs.text.de.add_new_metadata); 
    804804    addRowButton.click(function()  
    805805    {  
     
    807807        if(!name || name == "") 
    808808        { 
    809             console.log(gs.text.dse.no_value_given); 
     809            console.log(gs.text.de.no_meta_name_given); 
    810810            return; 
    811811        } 
     
    874874     
    875875    var metadataListLabel = document.createElement("SPAN"); 
    876     metadataListLabel.innerHTML = "Visible metadata: "; 
     876    metadataListLabel.innerHTML = gs.text.de.visible_metadata; //"Visible metadata: "; 
    877877    var metadataList = document.createElement("SELECT"); 
    878878    metadataList.setAttribute("id", "metadataSetList"); 
     
    880880    var allMetadataOption = document.createElement("OPTION"); 
    881881    metadataList.appendChild(allMetadataOption); 
    882     allMetadataOption.innerHTML = "All"; 
     882    allMetadataOption.innerHTML = gs.text.de.all_metadata; // "All"; 
    883883    metadataListCell.appendChild(metadataListLabel); 
    884884    metadataListCell.appendChild(metadataList); 
     
    900900    //The "Save changes" button 
    901901    var saveButton = document.createElement("BUTTON"); 
    902     saveButton.innerHTML = gs.text.dse.save_changes; 
     902    saveButton.innerHTML = gs.text.de.save_changes; 
    903903    saveButton.setAttribute("onclick", "saveAndRebuild();"); 
    904904    saveButton.setAttribute("id", "saveButton"); 
     
    907907    //The "Undo" button 
    908908    var undoButton = document.createElement("BUTTON"); 
    909     undoButton.innerHTML = "Undo"; 
     909    undoButton.innerHTML = gs.text.dse.undo; //"Undo"; 
    910910    undoButton.setAttribute("onclick", "undo();"); 
    911911    undoCell.appendChild(undoButton);