internationalization changes for java script files
This commit is contained in:
parent
041c091268
commit
2c49931672
60 changed files with 720 additions and 502 deletions
|
@ -8,6 +8,7 @@ $(document).ready(function(){
|
|||
var researchAreas = { "type": "FeatureCollection", "features": []};
|
||||
|
||||
$.extend(this, urlsBase);
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
getGeoJsonForMaps();
|
||||
|
||||
|
@ -66,10 +67,10 @@ $(document).ready(function(){
|
|||
}
|
||||
if (feature.properties && feature.properties.html) {
|
||||
if ( feature.properties.html == "1") {
|
||||
popupContent += ": " + feature.properties.html + " researcher";
|
||||
popupContent += ": " + feature.properties.html + " " + i18nStrings.researcherString;
|
||||
}
|
||||
else {
|
||||
popupContent += ": " + feature.properties.html + " researchers";
|
||||
popupContent += ": " + feature.properties.html + " " + i18nStrings.researchersString;
|
||||
}
|
||||
}
|
||||
layer.on('mouseover', function(e) {
|
||||
|
@ -313,7 +314,7 @@ $(document).ready(function(){
|
|||
|
||||
var results = $.parseJSON(xhr.responseText);
|
||||
if ( results.length == 0 ) {
|
||||
var html = "There are currently no researchers with a defined geographic focus.";
|
||||
var html = i18nStrings.currentlyNoResearchers;
|
||||
$('section#home-geo-focus div#timeIndicator span').html(html);
|
||||
$('section#home-geo-focus').css("height","175px");
|
||||
$('section#home-geo-focus div#timeIndicator').css("margin-top","50px");
|
||||
|
@ -341,13 +342,13 @@ $(document).ready(function(){
|
|||
var areaCount = 0;
|
||||
var text = "";
|
||||
if ( area == "global" ) {
|
||||
text = " countries and regions.";
|
||||
text = " " + i18nStrings.countriesAndRegions;
|
||||
}
|
||||
else if ( area == "US" ) {
|
||||
text = " states.";
|
||||
text = " " + i18nStrings.stateString;
|
||||
}
|
||||
else {
|
||||
text = " state-wide locations.";
|
||||
text = " " + i18nStrings.statewideLocations;
|
||||
}
|
||||
|
||||
$.each(researchAreas.features, function() {
|
||||
|
@ -358,12 +359,12 @@ $(document).ready(function(){
|
|||
});
|
||||
|
||||
if ( areaCount == 1 && text == " states.") {
|
||||
text = " state.";
|
||||
text = " " + i18nStrings.stateString;
|
||||
}
|
||||
|
||||
$('div#researcherTotal').html("<font style='font-size:1.05em;color:#167093'>"
|
||||
+ researcherCount.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2')
|
||||
+ "</font> researchers in <font style='font-size:1.05em;color:#167093'>"
|
||||
+ "</font> " + i18nStrings.researchersInString + " <font style='font-size:1.05em;color:#167093'>"
|
||||
+ areaCount + "</font>" + text);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ $(document).ready(function(){
|
|||
|
||||
$.extend(this, urlsBase);
|
||||
$.extend(this, facultyMemberCount);
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
// this will ensure that the hidden classgroup input is cleared if the back button is used
|
||||
// to return to th ehome page from the search results
|
||||
|
@ -51,7 +52,7 @@ $(document).ready(function(){
|
|||
$.getJSON(url, function(results) {
|
||||
|
||||
if ( results == null || results.individuals.length == 0 ) {
|
||||
individualList = "<p><li>No faculty members found.</li></p>";
|
||||
individualList = "<p><li>" + i18nStrings.noFacultyFound + "</li></p>";
|
||||
$('div#tempSpacing').hide();
|
||||
$('div#research-faculty-mbrs ul#facultyThumbs').append(individualList);
|
||||
}
|
||||
|
@ -66,7 +67,7 @@ $(document).ready(function(){
|
|||
|
||||
$.each($('div#research-faculty-mbrs ul#facultyThumbs li.individual'), function() {
|
||||
if ( $(this).children('img').length == 0 ) {
|
||||
var imgHtml = "<img width='60' alt='placeholder image' src='" + urlsBase + "/images/placeholders/person.bordered.thumbnail.jpg'>";
|
||||
var imgHtml = "<img width='60' alt='" + i18nStrings.placeholderImage + "' src='" + urlsBase + "/images/placeholders/person.bordered.thumbnail.jpg'>";
|
||||
$(this).prepend(imgHtml);
|
||||
}
|
||||
else {
|
||||
|
@ -77,14 +78,15 @@ $(document).ready(function(){
|
|||
});
|
||||
var viewMore = "<ul id='viewMoreFac'><li><a href='"
|
||||
+ urlsBase
|
||||
+ "/people/%23http://vivoweb.org/ontology/core%23FacultyMember' alt='view all faculty'>"
|
||||
+ "View all ...</a></li?</ul>";
|
||||
+ "/people/%23http://vivoweb.org/ontology/core%23FacultyMember' alt='"
|
||||
+ i18nStrings.viewAllFaculty + "'>"
|
||||
+ i18nStrings.viewAllString + "</a></li?</ul>";
|
||||
$('div#research-faculty-mbrs').append(viewMore);
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
individualList = "<p><li>No faculty members found.</li></p>";
|
||||
individualList = "<p><li>" + i18nStrings.noFacultyFound + "</li></p>";
|
||||
$('div#tempSpacing').hide();
|
||||
$('div#research-faculty-mbrs ul#facultyThumbs').append(individualList);
|
||||
$('div#research-faculty-mbrs ul#facultyThumbs').css("padding", "1.0em 0 0.825em 0.75em");
|
||||
|
@ -108,7 +110,8 @@ $(document).ready(function(){
|
|||
var index = Math.floor((Math.random()*deptNbr)+1)-1;
|
||||
|
||||
if ( deptNbr == 0 ) {
|
||||
html = "<ul style='list-style:none'><p><li style='padding-top:0.3em'>No academic departments found.</li></p></ul>";
|
||||
html = "<ul style='list-style:none'><p><li style='padding-top:0.3em'>"
|
||||
+ i18nStrings.noDepartmentsFound + "</li></p></ul>";
|
||||
}
|
||||
else if ( deptNbr > 6 ) {
|
||||
for ( var i=0;i<6;i++) {
|
||||
|
@ -126,7 +129,12 @@ $(document).ready(function(){
|
|||
}
|
||||
}
|
||||
if ( deptNbr > 0 ) {
|
||||
html += "</ul><ul style='list-style:none'><li style='font-size:0.9em;text-align:right;padding: 6px 16px 0 0'><a href='" + urlsBase + "/organizations/%23http://vivoweb.org/ontology/core%23AcademicDepartment' alt='view all academic departments'>View all ...</a></li></ul>";
|
||||
html += "</ul><ul style='list-style:none'>"
|
||||
+ "<li style='font-size:0.9em;text-align:right;padding: 6px 16px 0 0'><a href='"
|
||||
+ urlsBase
|
||||
+ "/organizations/%23http://vivoweb.org/ontology/core%23AcademicDepartment' alt='"
|
||||
+ i18nStrings.viewAllDepartments + "'>"
|
||||
+ i18nStrings.viewAllString + "</a></li></ul>";
|
||||
}
|
||||
$('div#academic-depts').html(html);
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ var profilePageType = {
|
|||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, profileTypeData);
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
|
||||
// Initial page setup. Called only at page load.
|
||||
|
@ -65,7 +66,7 @@ var profilePageType = {
|
|||
location.reload(true);
|
||||
}
|
||||
else {
|
||||
alert('Error processing request: the unchecked labels could not be deleted.');
|
||||
alert(profilePageType.errorProcessingTypeChange);
|
||||
$('select#profilePageType').val(profilePageType.selectedProfileType);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ $(document).ready(function(){
|
|||
$('div#activeGrantsLink').css("margin-top","30px");
|
||||
$('section#individual-info').children('h2#overview').css("clear","both");
|
||||
}
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
// "more"/"less" HTML truncator for showing more or less content in data property core:overview
|
||||
$('.overview-value').truncate({max_length: 500});
|
||||
|
@ -27,7 +28,7 @@ $(document).ready(function(){
|
|||
$toggleLink.click(function() {
|
||||
$itemContainer.show();
|
||||
$(this).attr('href', '#show less content');
|
||||
$(this).text('less');
|
||||
$(this).text(i18nStrings.displayLess);
|
||||
togglePropDisplay.showLess($toggleLink, $itemContainer);
|
||||
return false;
|
||||
});
|
||||
|
@ -37,7 +38,7 @@ $(document).ready(function(){
|
|||
$toggleLink.click(function() {
|
||||
$itemContainer.hide();
|
||||
$(this).attr('href', '#show more content');
|
||||
$(this).text('more...');
|
||||
$(this).text(i18nStrings.displayMoreEllipsis);
|
||||
togglePropDisplay.showMore($toggleLink, $itemContainer);
|
||||
return false;
|
||||
});
|
||||
|
@ -53,7 +54,7 @@ $(document).ready(function(){
|
|||
var $itemContainer = $('<div class="additionalItems" />').appendTo(this);
|
||||
|
||||
// create toggle link
|
||||
var $toggleLink = $('<a class="more-less" href="#show more content">more...</a>').appendTo(this);
|
||||
var $toggleLink = $('<a class="more-less" href="#show more content" title="' + i18nStrings.showMoreContent + '">' + i18nStrings.displayMoreEllipsis + '</a>').appendTo(this);
|
||||
|
||||
$additionalItems.appendTo($itemContainer);
|
||||
|
||||
|
@ -71,7 +72,7 @@ $(document).ready(function(){
|
|||
var $itemContainer = $('<div class="additionalItems" />').appendTo(this);
|
||||
|
||||
// create toggle link
|
||||
var $toggleLink = $('<a class="more-less" href="#show more content">more...</a>').appendTo(this);
|
||||
var $toggleLink = $('<a class="more-less" href="#show more content" title="' + i18nStrings.showMoreContent + '">' + i18nStrings.displayMoreEllipsis + '</a>').appendTo(this);
|
||||
|
||||
$additionalItems.appendTo($itemContainer);
|
||||
|
||||
|
@ -89,7 +90,7 @@ $(document).ready(function(){
|
|||
var $itemContainer = $('<div class="additionalItems" />').appendTo($subPropParent);
|
||||
|
||||
// create toggle link
|
||||
var $toggleLink = $('<a class="more-less" href="#show more content">more...</a>').appendTo($subPropParent);
|
||||
var $toggleLink = $('<a class="more-less" href="#show more content" title="' + i18nStrings.showMoreContent + '">' + i18nStrings.displayMoreEllipsis + '</a>').appendTo($subPropParent);
|
||||
|
||||
$additionalItems.appendTo($itemContainer);
|
||||
|
||||
|
@ -99,7 +100,7 @@ $(document).ready(function(){
|
|||
}
|
||||
|
||||
// Change background color button when verbose mode is off
|
||||
$('a#verbosePropertySwitch:contains("Turn off")').addClass('verbose-off');
|
||||
$('a#verbosePropertySwitch:contains("' + i18nStrings.verboseTurnOff + '")').addClass('verbose-off');
|
||||
|
||||
// Reveal vCard QR code when QR icon is clicked
|
||||
$('#qrIcon, .qrCloseLink').click(function() {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
$(document).ready(function(){
|
||||
|
||||
$.extend(this, individualLocalName);
|
||||
$.extend(this, i18nStringsTabs);
|
||||
adjustFontSize();
|
||||
padSectionBottoms();
|
||||
checkLocationHash();
|
||||
|
@ -33,7 +34,7 @@ $(document).ready(function(){
|
|||
$propertyGroupLi.removeClass("nonSelectedGroupTab clickable");
|
||||
$propertyGroupLi.addClass("selectedGroupTab clickable");
|
||||
}
|
||||
if ( $propertyGroupLi.text() == "View All" ) {
|
||||
if ( $propertyGroupLi.text() == i18nStringsTabs.viewAllCapitalized ) {
|
||||
processViewAllTab();
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
$.extend(this, i18nStringsCoPi);
|
||||
|
||||
var collaboratorTableMetadata = {
|
||||
tableID: "coinvestigations_table",
|
||||
tableContainer: "coinve_table_container",
|
||||
tableCaption: "Co-investigators ",
|
||||
tableColumnTitle1: "Investigator",
|
||||
tableColumnTitle2: "Grants with <br />",
|
||||
tableCaption: i18nStringsCoPi.coInvestigatorString + " ",
|
||||
tableColumnTitle1: i18nStringsCoPi.investigatorString,
|
||||
tableColumnTitle2: i18nStringsCoPi.grantsWithString + " <br />",
|
||||
tableCSVFileLink: egoCoInvestigatorsListDataFileURL,
|
||||
jsonNumberWorksProperty: "number_of_investigated_grants"
|
||||
};
|
||||
|
@ -25,8 +27,8 @@ function renderStatsOnNodeClicked(json){
|
|||
var latest_work = "";
|
||||
var number_of_works = "";
|
||||
|
||||
works = "Grant(s)";
|
||||
persons = "Co-investigator(s)";
|
||||
works = i18nStringsCoPi.grantsCapitalized;
|
||||
persons = i18nStringsCoPi.coInvestigatorCapitalized;
|
||||
relation = "coinvestigation";
|
||||
earliest_work = obj.earliest_grant;
|
||||
latest_work = obj.latest_grant;
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
$.extend(this, i18nStringsCoauthorship);
|
||||
|
||||
var collaboratorTableMetadata = {
|
||||
tableID: "coauthorships_table",
|
||||
tableContainer: "coauth_table_container",
|
||||
tableCaption: "Co-authors ",
|
||||
tableColumnTitle1: "Author",
|
||||
tableColumnTitle2: "Publications with <br />",
|
||||
tableCaption: i18nStringsCoauthorship.coAuthorsString + " ",
|
||||
tableColumnTitle1: i18nStringsCoauthorship.authorString,
|
||||
tableColumnTitle2: i18nStringsCoauthorship.publicationsWith + " <br />",
|
||||
tableCSVFileLink: egoCoAuthorsListDataFileURL,
|
||||
jsonNumberWorksProperty: "number_of_authored_works"
|
||||
};
|
||||
|
@ -23,8 +25,8 @@ function renderStatsOnNodeClicked(json){
|
|||
var latest_work = "";
|
||||
var number_of_works = "";
|
||||
|
||||
works = "Publication(s)";
|
||||
persons = "Co-author(s)";
|
||||
works = i18nStringsCoauthorship.publicationsString;
|
||||
persons = i18nStringsCoauthorship.coauthorsString;
|
||||
relation = "coauthorship"
|
||||
earliest_work = obj.earliest_publication;
|
||||
latest_work = obj.latest_publication;
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var disciplineOrSubdisciplineDataTableFilter = function(oSettings, aData, iDataIndex) {
|
||||
|
||||
/*
|
||||
|
@ -22,17 +24,14 @@ $.fn.dataTableExt.oPagination.gmail_style = {
|
|||
var nNext = document.createElement('span');
|
||||
var nLast = document.createElement('span');
|
||||
|
||||
/*
|
||||
nFirst.innerHTML = oSettings.oLanguage.oPaginate.sFirst;
|
||||
nPrevious.innerHTML = oSettings.oLanguage.oPaginate.sPrevious;
|
||||
nNext.innerHTML = oSettings.oLanguage.oPaginate.sNext;
|
||||
nLast.innerHTML = oSettings.oLanguage.oPaginate.sLast;
|
||||
*/
|
||||
|
||||
nFirst.innerHTML = "<span class='small-arrows'>«</span> <span class='paginate-nav-text'>First</span>";
|
||||
nPrevious.innerHTML = "<span class='small-arrows'>‹</span> <span class='paginate-nav-text'>Prev</span>";
|
||||
nNext.innerHTML = "<span class='paginate-nav-text'>Next</span><span class='small-arrows'>›</span>";
|
||||
nLast.innerHTML = "<span class='paginate-nav-text'>Last</span><span class='small-arrows'>»</span>";
|
||||
nFirst.innerHTML = "<span class='small-arrows'>«</span> <span class='paginate-nav-text'>"
|
||||
+ i18nStrings.firstString + "</span>";
|
||||
nPrevious.innerHTML = "<span class='small-arrows'>‹</span> <span class='paginate-nav-text'>"
|
||||
+ i18nStrings.previousString + "</span>";
|
||||
nNext.innerHTML = "<span class='paginate-nav-text'>"
|
||||
+ i18nStrings.nextString + "</span><span class='small-arrows'>›</span>";
|
||||
nLast.innerHTML = "<span class='paginate-nav-text'>"
|
||||
+ i18nStrings.lastString + "</span><span class='small-arrows'>»</span>";
|
||||
|
||||
var oClasses = oSettings.oClasses;
|
||||
nFirst.className = oClasses.sPageButton + " " + oClasses.sPageFirst;
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
$(document).ready(function() {
|
||||
|
||||
$.extend(this, i18nStringsGuiEvents);
|
||||
|
||||
/*
|
||||
* This will set initial values of the constants present in constants.js
|
||||
* */
|
||||
|
@ -65,11 +67,13 @@ $(document).ready(function() {
|
|||
* So below is used to replace text taht is specific to the errors that would have caused
|
||||
* due to the original parameters.
|
||||
* */
|
||||
var alternateVisInfo = COMPARISON_PARAMETERS_INFO[currentParameter].value
|
||||
+ " Temporal Graph "
|
||||
var alternateVisInfo = COMPARISON_PARAMETERS_INFO[currentParameter].value + " "
|
||||
+ i18nStringsGuiEvents.temporalGraphCapped + " "
|
||||
+ '<span id="noPubsOrGrants-span">| '
|
||||
+ '<a href="' + COMPARISON_PARAMETERS_INFO[oldParameter].viewLink + '">'
|
||||
+ 'view ' + COMPARISON_PARAMETERS_INFO[oldParameter].pluralName + ' temporal graph</a></span>'
|
||||
+ i18nStringsGuiEvents.viewString + ' '
|
||||
+ COMPARISON_PARAMETERS_INFO[oldParameter].pluralName
|
||||
+ i18nStringsGuiEvents.temporalGraphLower + '</a></span>'
|
||||
|
||||
options.errorContainer.find("#alternative-vis-info").html(alternateVisInfo);
|
||||
|
||||
|
@ -126,7 +130,7 @@ $(".disabled-checkbox-event-receiver").live("click", function () {
|
|||
|
||||
createNotification("warning-notification", {
|
||||
title: 'Error',
|
||||
text: 'A Maximum 10 entities can be compared. Please remove some & try again.'
|
||||
text: i18nStringsGuiEvents.entityMaxNote
|
||||
}, {
|
||||
custom: true,
|
||||
expires: false
|
||||
|
@ -222,7 +226,7 @@ var processJSONData = {
|
|||
|
||||
isParentEntityAvailable: false,
|
||||
|
||||
currentEntityLevel: "Organizations",
|
||||
currentEntityLevel: i18nStringsGuiEvents.organizationsCappedString,
|
||||
|
||||
|
||||
/**
|
||||
|
@ -298,9 +302,9 @@ var processJSONData = {
|
|||
* Setup the entity level
|
||||
* */
|
||||
if (val.visMode === "PERSON"){
|
||||
entityLevels.push("People");
|
||||
entityLevels.push(i18nStringsGuiEvents.peopleCappedString);
|
||||
} else if (val.visMode === "ORGANIZATION"){
|
||||
entityLevels.push("Organizations");
|
||||
entityLevels.push(i18nStringsGuiEvents.organizationsCappedString);
|
||||
}
|
||||
|
||||
|
||||
|
@ -359,14 +363,14 @@ var processJSONData = {
|
|||
* to the parent organization.
|
||||
* */
|
||||
if (uniqueEntityLevels.length > 1) {
|
||||
processJSONData.currentEntityLevel = "Organizations & People";
|
||||
processJSONData.currentEntityLevel = i18nStringsGuiEvents.organizationsAndPeople;
|
||||
$("#people-organizations-filter").show();
|
||||
} else if (uniqueEntityLevels.length === 1) {
|
||||
processJSONData.currentEntityLevel = uniqueEntityLevels[0];
|
||||
$("#people-organizations-filter").hide();
|
||||
} else {
|
||||
/* To provide graceful degradation set entity level to a default error message.*/
|
||||
processJSONData.currentEntityLevel = "ENTITY LEVEL UNDEFINED ERROR";
|
||||
processJSONData.currentEntityLevel = i18nStringsGuiEvents.levelUndefinedError;
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -458,7 +462,7 @@ function setupLoadingScreen(visContainerDIV) {
|
|||
|
||||
visContainerDIV.block({
|
||||
message: '<div id="loading-data-container"><h3><img id="data-loading-icon" src="' + loadingImageLink
|
||||
+ '" /> Loading data for <i>'
|
||||
+ '" /> ' + i18nStringsGuiEvents.loadingDataFor + ' <i>'
|
||||
+ organizationLabel
|
||||
+ '</i></h3></div>'
|
||||
});
|
||||
|
@ -469,9 +473,9 @@ function setupLoadingScreen(visContainerDIV) {
|
|||
$("#loading-data-container")
|
||||
.html('<h3><img id="refresh-page-icon" src="'
|
||||
+ refreshPageImageLink
|
||||
+ '" /> Data for <i>' + organizationLabel
|
||||
+ '</i> is now being refreshed. The visualization will load as soon as we are done computing, '
|
||||
+ 'or you can search or browse other data in VIVO and come back in a few minutes.</h3>')
|
||||
+ '" /> ' + i18nStringsGuiEvents.dataForString + ' <i>' + organizationLabel
|
||||
+ '</i> ' + i18nStringsGuiEvents.refreshingDataMsg
|
||||
+ '</h3>')
|
||||
.css({'cursor': 'pointer'});
|
||||
|
||||
}, 10 * 1000);
|
||||
|
@ -535,8 +539,8 @@ var lastCachedAtDateTimeParser = {
|
|||
dateObject = this.getDateObjectFromRawXSDateTimeString(dateObject);
|
||||
}
|
||||
|
||||
var day = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
||||
var month = ['January','February','March','April','May','June','July','August','September','October','November'];
|
||||
var day = [i18nStringsGuiEvents.sundayString, i18nStringsGuiEvents.mondayString, i18nStringsGuiEvents.tuesdayString, i18nStringsGuiEvents.wednesdayString, i18nStringsGuiEvents.thursdayString, i18nStringsGuiEvents.fridayString, i18nStringsGuiEvents.saturdayString];
|
||||
var month = [i18nStringsGuiEvents.januaryString, i18nStringsGuiEvents.februaryString, i18nStringsGuiEvents.marchString, i18nStringsGuiEvents.aprilString, i18nStringsGuiEvents.mayString, i18nStringsGuiEvents.juneString, i18nStringsGuiEvents.julyString, i18nStringsGuiEvents.augustString, i18nStringsGuiEvents.septemberString, i18nStringsGuiEvents.octoberString, i18nStringsGuiEvents.novemberString];
|
||||
|
||||
return month[dateObject.getMonth()] + " " + dateObject.getDate() + ", " + dateObject.getFullYear() + ".";
|
||||
},
|
||||
|
@ -610,10 +614,10 @@ temporalGraphProcessor = {
|
|||
|
||||
if ($("#incomplete-data-disclaimer").length > 0 && lastCachedAtDateTimes.length > 0) {
|
||||
|
||||
var disclaimerText = "This information is based solely on "
|
||||
var disclaimerText = i18nStringsGuiEvents.disclaimerTextOne + " "
|
||||
+ COMPARISON_PARAMETERS_INFO[currentParameter].value
|
||||
+ " which have been loaded into the VIVO system"
|
||||
+ " as of " + lastCachedAtDateTimeParser.getReadableDateString(lastCachedAtDateTimes[0]);
|
||||
+ " " + i18nStringsGuiEvents.disclaimerTextTwo + " "
|
||||
+ lastCachedAtDateTimeParser.getReadableDateString(lastCachedAtDateTimes[0]);
|
||||
|
||||
$("#incomplete-data-disclaimer").attr(
|
||||
"title",
|
||||
|
@ -695,10 +699,10 @@ temporalGraphProcessor = {
|
|||
|
||||
if ($("#incomplete-data-disclaimer").length > 0 && lastCachedAtDateTimes.length > 0) {
|
||||
|
||||
var disclaimerText = "This information is based solely on "
|
||||
var disclaimerText = i18nStringsGuiEvents.disclaimerTextOne + " "
|
||||
+ COMPARISON_PARAMETERS_INFO[currentParameter].value
|
||||
+ " which have been loaded into the VIVO system"
|
||||
+ " as of " + lastCachedAtDateTimeParser.getReadableDateString(lastCachedAtDateTimes[0]);
|
||||
+ i18nStringsGuiEvents.disclaimerTextTwo + " "
|
||||
+ lastCachedAtDateTimeParser.getReadableDateString(lastCachedAtDateTimes[0]);
|
||||
|
||||
$("#incomplete-data-disclaimer").attr(
|
||||
"title", disclaimerText);
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStringsUtil);
|
||||
|
||||
(function ($) {
|
||||
|
||||
$.fn.dataTableExt.oPagination.gmail_style = {
|
||||
|
@ -19,10 +21,14 @@
|
|||
nLast.innerHTML = oSettings.oLanguage.oPaginate.sLast;
|
||||
*/
|
||||
|
||||
nFirst.innerHTML = "<span class='small-arrows'>«</span> <span class='paginate-nav-text'>First</span>";
|
||||
nPrevious.innerHTML = "<span class='small-arrows'>‹</span> <span class='paginate-nav-text'>Prev</span>";
|
||||
nNext.innerHTML = "<span class='paginate-nav-text'>Next</span><span class='small-arrows'>›</span>";
|
||||
nLast.innerHTML = "<span class='paginate-nav-text'>Last</span><span class='small-arrows'>»</span>";
|
||||
nFirst.innerHTML = "<span class='small-arrows'>«</span> <span class='paginate-nav-text'>"
|
||||
+ i18nStringsUtil.firstString + "</span>";
|
||||
nPrevious.innerHTML = "<span class='small-arrows'>‹</span> <span class='paginate-nav-text'>"
|
||||
+ i18nStringsUtil.previousString + "</span>";
|
||||
nNext.innerHTML = "<span class='paginate-nav-text'>" + i18nStringsUtil.nextString
|
||||
+ "</span><span class='small-arrows'>›</span>";
|
||||
nLast.innerHTML = "<span class='paginate-nav-text'>" + i18nStringsUtil.lastString
|
||||
+ "</span><span class='small-arrows'>»</span>";
|
||||
|
||||
var oClasses = oSettings.oClasses;
|
||||
nFirst.className = oClasses.sPageButton + " " + oClasses.sPageFirst;
|
||||
|
@ -244,12 +250,12 @@ function init(graphContainer) {
|
|||
|
||||
var optionSelected = $("select.comparisonValues option:selected").val();
|
||||
// TODO: make use of the id on the select field instead of a generic one.
|
||||
$("#comparisonParameter").text("Total Number of " + optionSelected);
|
||||
$('#yaxislabel').html("Number of " + optionSelected).mbFlipText(false);
|
||||
$("#comparisonParameter").text(i18nStringsUtil.totalNumberOf + " " + optionSelected);
|
||||
$('#yaxislabel').html(i18nStringsUtil.numberOf + " " + optionSelected).mbFlipText(false);
|
||||
$('#comparisonHeader').html(optionSelected).css('font-weight', 'bold');
|
||||
$('#legend-unknown-bar-text').text(toTitleCase(COMPARISON_PARAMETERS_INFO[currentParameter].name) + " with unknown year");
|
||||
$('#legend-known-bar-text').text(toTitleCase(COMPARISON_PARAMETERS_INFO[currentParameter].name) + " with known year");
|
||||
$('#legend-current-year-bar-text').text(toTitleCase(COMPARISON_PARAMETERS_INFO[currentParameter].name) + " from current incomplete year");
|
||||
$('#legend-unknown-bar-text').text(toTitleCase(COMPARISON_PARAMETERS_INFO[currentParameter].name) + " " + i18nStringsUtil.withUnknownYear);
|
||||
$('#legend-known-bar-text').text(toTitleCase(COMPARISON_PARAMETERS_INFO[currentParameter].name) + " " + i18nStringsUtil.withKnownYear);
|
||||
$('#legend-current-year-bar-text').text(toTitleCase(COMPARISON_PARAMETERS_INFO[currentParameter].name) + " " + i18nStringsUtil.fromIncompleteYear);
|
||||
|
||||
var defaultFlotOptions = {
|
||||
xaxis : {
|
||||
|
@ -704,8 +710,11 @@ function renderBarAndLabel(entity, divBar, divLabel, spanElement) {
|
|||
|
||||
var knownNormalizedWidth = getNormalizedWidth(entity, combinedCount.knownYearCount - combinedCount.currentYearCount);
|
||||
|
||||
var countExplanation = (combinedCount.knownYearCount - combinedCount.currentYearCount) + ' of '
|
||||
+ sum + ' were ' + COMPARISON_PARAMETERS_INFO[currentParameter].verbName + " in a completed year";
|
||||
var countExplanation = (combinedCount.knownYearCount - combinedCount.currentYearCount)
|
||||
+ ' ' + i18nStringsUtil.ofString + ' ' + sum
|
||||
+ ' ' + i18nStringsUtil.wereString + ' '
|
||||
+ COMPARISON_PARAMETERS_INFO[currentParameter].verbName
|
||||
+ ' ' + i18nStringsUtil.inCompletedYear;
|
||||
|
||||
divBar.children(".known-bar").attr("title", countExplanation);
|
||||
|
||||
|
@ -720,8 +729,10 @@ function renderBarAndLabel(entity, divBar, divLabel, spanElement) {
|
|||
if (combinedCount.unknownYearCount) {
|
||||
var unknownNormalizedWidth = getNormalizedWidth(entity, combinedCount.unknownYearCount);
|
||||
|
||||
var countExplanation = combinedCount.unknownYearCount + ' of '
|
||||
+ sum + ' have an unknown ' + COMPARISON_PARAMETERS_INFO[currentParameter].name + " year (not charted above)";
|
||||
var countExplanation = combinedCount.unknownYearCount + ' ' + i18nStringsUtil.ofString + ' '
|
||||
+ sum + ' ' + i18nStringsUtil.haveAnUnknown + ' '
|
||||
+ COMPARISON_PARAMETERS_INFO[currentParameter].name
|
||||
+ ' ' + i18nStringsUtil.yearNotChartered;
|
||||
|
||||
divBar.children(".unknown-bar").attr("title", countExplanation);
|
||||
|
||||
|
@ -735,8 +746,10 @@ function renderBarAndLabel(entity, divBar, divLabel, spanElement) {
|
|||
if (combinedCount.currentYearCount) {
|
||||
var currentNormalizedWidth = getNormalizedWidth(entity, combinedCount.currentYearCount);
|
||||
|
||||
var countExplanation = combinedCount.currentYearCount + ' of '
|
||||
+ sum + ' were ' + COMPARISON_PARAMETERS_INFO[currentParameter].verbName + ' in the current incomplete year (not charted above)';
|
||||
var countExplanation = combinedCount.currentYearCount + ' ' + i18nStringsUtil.ofString + ' ' + sum
|
||||
+ ' ' + i18nStringsUtil.wereString + ' '
|
||||
+ COMPARISON_PARAMETERS_INFO[currentParameter].verbName + ' '
|
||||
+ i18nStringsUtil.inIncompleteYear;
|
||||
|
||||
divBar.children(".current-year-bar").attr("title", countExplanation);
|
||||
|
||||
|
@ -837,8 +850,8 @@ function setOptionsForPagination(object, itemsPerPage, numberOfDisplayEntries,
|
|||
items_per_page : itemsPerPage,
|
||||
num_display_entries : numberOfDisplayEntries,
|
||||
num_edge_entries : numOfEdgeEntries,
|
||||
prev_text : "Prev",
|
||||
next_text : "Next"
|
||||
prev_text : i18nStringsUtil.previousString,
|
||||
next_text : i18nStringsUtil.nextString
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1072,18 +1085,18 @@ function prepareTableForDataTablePagination(jsonData, dataTableParams){
|
|||
checkboxTH.html(' ');
|
||||
|
||||
var entityLabelTH = $('<th>');
|
||||
entityLabelTH.html('Entity Name');
|
||||
entityLabelTH.html(i18nStringsUtil.entityTypeString);
|
||||
|
||||
var activityCountTH = $('<th>');
|
||||
if ($("select.comparisonValues option:selected").text() === "by Publications") {
|
||||
activityCountTH.html('Publication Count');
|
||||
if ($("select.comparisonValues option:selected").text() === i18nStringsUtil.byPublications) {
|
||||
activityCountTH.html(i18nStringsUtil.publicationCount);
|
||||
} else {
|
||||
activityCountTH.html('Grant Count');
|
||||
activityCountTH.html(i18nStringsUtil.grantCount);
|
||||
}
|
||||
activityCountTH.attr("id", "activity-count-column");
|
||||
|
||||
var entityTypeTH = $('<th>');
|
||||
entityTypeTH.html('Entity Type');
|
||||
entityTypeTH.html(i18nStringsUtil.entityType);
|
||||
|
||||
tr.append(checkboxTH);
|
||||
tr.append(entityLabelTH);
|
||||
|
@ -1141,7 +1154,7 @@ function prepareTableForDataTablePagination(jsonData, dataTableParams){
|
|||
"bInfo": true,
|
||||
"oLanguage": {
|
||||
"sInfo": "Records _START_ - _END_ of _TOTAL_",
|
||||
"sInfoEmpty": "No matching entities found",
|
||||
"sInfoEmpty": i18nStringsUtil.noMatchingEntities,
|
||||
"sInfoFiltered": ""
|
||||
},
|
||||
"sPaginationType": "gmail_style",
|
||||
|
@ -1159,7 +1172,7 @@ function prepareTableForDataTablePagination(jsonData, dataTableParams){
|
|||
|
||||
var searchInputBox = $("." + dataTableParams.searchBarParentContainerDIVClass).find("input[type=text]");
|
||||
|
||||
searchInputBox.after("<span id='reset-search' title='Clear Search query'>X</span>");
|
||||
searchInputBox.after("<span id='reset-search' title='" + i18nStringsUtil.clerSearchQuery + "'>X</span>");
|
||||
|
||||
$("#reset-search").live('click', function() {
|
||||
entityListTable.fnFilter("");
|
||||
|
@ -1197,10 +1210,10 @@ function reloadDataTablePagination(preselectedEntityURIs, jsonData){
|
|||
|
||||
currentDataTable.fnClearTable();
|
||||
|
||||
if ($("select.comparisonValues option:selected").text() === "by Publications") {
|
||||
$("#activity-count-column").html('Publication Count');
|
||||
if ($("select.comparisonValues option:selected").text() === "i18nStringsUtil.byPublications") {
|
||||
$("#activity-count-column").html(i18nStringsUtil.publicationCount);
|
||||
} else {
|
||||
$("#activity-count-column").html('Grant Count');
|
||||
$("#activity-count-column").html(i18nStringsUtil.grantCount);
|
||||
}
|
||||
|
||||
function addNewRowAfterReload(entity) {
|
||||
|
@ -1310,8 +1323,8 @@ function disableUncheckedEntities(){
|
|||
* */
|
||||
if ($("#datatable").data("isEntitySelectionAllowed")) {
|
||||
if ($.browser.msie) {
|
||||
createNotification("warning-notification", { title:'Information',
|
||||
text:'A Maximum of 10 entities can be compared.' },{
|
||||
createNotification("warning-notification", { title: i18nStringsUtil.informationString,
|
||||
text: i18nStringsUtil.shortMaxEntityNote },{
|
||||
custom: false,
|
||||
expires: false
|
||||
});
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var ComparisonDataTableWidget = Class.extend({
|
||||
|
||||
dom: {
|
||||
firstFilterLabel: "Organizations",
|
||||
secondFilterLabel: "People",
|
||||
firstFilterLabel: i18nStrings.organizationsString,
|
||||
secondFilterLabel: i18nStrings.peopleString,
|
||||
|
||||
searchBarParentContainerClass : "comparisonSearchbar",
|
||||
paginationContainerClass : "paginatedtabs",
|
||||
|
@ -67,7 +69,7 @@ var ComparisonDataTableWidget = Class.extend({
|
|||
' | ' +
|
||||
'<span id="' + dom.secondFilterID + '" class="' + dom.filterOptionClass + '">' + dom.secondFilterLabel + '</span>' +
|
||||
*/
|
||||
'<img class="' + dom.filterInfoIconClass + '" id="comparisonImageIconTwo" src="'+ infoIconUrl +'" alt="information icon" title="" /></div>');
|
||||
'<img class="' + dom.filterInfoIconClass + '" id="comparisonImageIconTwo" src="'+ infoIconUrl +'" alt="' + i18nStrings.infoIconString + '" title="" /></div>');
|
||||
me.tableDiv.append(filter);
|
||||
createToolTip($("#comparisonImageIconTwo"), $("#comparisonToolTipTwo").html(), "topLeft");
|
||||
initFilter(dom);
|
||||
|
@ -81,7 +83,7 @@ var ComparisonDataTableWidget = Class.extend({
|
|||
var tr = $('<tr>');
|
||||
|
||||
var levelOfScienceAreaTH = $('<th>');
|
||||
levelOfScienceAreaTH.html('Entity Type');
|
||||
levelOfScienceAreaTH.html(i18nStrings.entityTypeString);
|
||||
|
||||
var checkBoxTH = $('<th>');
|
||||
checkBoxTH.html('');
|
||||
|
@ -89,13 +91,13 @@ var ComparisonDataTableWidget = Class.extend({
|
|||
var scienceAreasTH = $('<th>');
|
||||
scienceAreasTH.attr("id", "comparison-science-areas-th");
|
||||
if (this.currentSelectedFilter === COMPARISON_TYPE.ORGANIZATION ) {
|
||||
scienceAreasTH.html('Organization');
|
||||
scienceAreasTH.html(i18nStrings.organizationString);
|
||||
} else {
|
||||
scienceAreasTH.html('Person');
|
||||
scienceAreasTH.html(i18nStrings.personString);
|
||||
}
|
||||
|
||||
var activityCountTH = $('<th width="53">');
|
||||
activityCountTH.html('# of pubs.');
|
||||
activityCountTH.html('# ' + i18nStrings.numberOfPubs);
|
||||
activityCountTH.attr("id", "activity-count-column");
|
||||
|
||||
tr.append(levelOfScienceAreaTH);
|
||||
|
@ -144,7 +146,7 @@ var ComparisonDataTableWidget = Class.extend({
|
|||
if (element.attr('checked')) {
|
||||
if ($("input:checkbox[class=chk]:checked").length > 3) {
|
||||
element.attr('checked', false);
|
||||
alert("The maximum number of items for comparison is 3.");
|
||||
alert(i18nStrings.maxNbrForComp);
|
||||
} else {
|
||||
me.loadEntity(item.uri, index);
|
||||
}
|
||||
|
@ -180,7 +182,7 @@ var ComparisonDataTableWidget = Class.extend({
|
|||
"bInfo": true,
|
||||
"oLanguage": {
|
||||
"sInfo": "_START_ - _END_ of _TOTAL_",
|
||||
"sInfoEmpty": "No matching science areas found",
|
||||
"sInfoEmpty": i18nStrings.noMatchingScienceAreas,
|
||||
"sInfoFiltered": ""
|
||||
},
|
||||
"sPaginationType": "gmail_style",
|
||||
|
@ -198,8 +200,8 @@ var ComparisonDataTableWidget = Class.extend({
|
|||
/* Create search box */
|
||||
var searchInputBox = $("." + me.dom.searchBarParentContainerClass).find("input[type=text]");
|
||||
searchInputBox.css("width", "140px");
|
||||
searchInputBox.after("<span id='comparison-reset-search' title='Clear search query'>X</span>"
|
||||
+ "<img class='comparisonFilterInfoIcon' id='comparisonSearchInfoIcon' src='" + infoIconUrl + "' alt='information icon' title='' />");
|
||||
searchInputBox.after("<span id='comparison-reset-search' title='" + i18nStrings.clearSearchQuery + "'>X</span>"
|
||||
+ "<img class='comparisonFilterInfoIcon' id='comparisonSearchInfoIcon' src='" + infoIconUrl + "' alt='" + i18nStrings.infoIconString + "' title='' />");
|
||||
$("#comparison-reset-search").live('click', function() {
|
||||
me.widget.fnFilter("");
|
||||
});
|
||||
|
@ -208,18 +210,18 @@ var ComparisonDataTableWidget = Class.extend({
|
|||
/* Create csv download button */
|
||||
var csvButton = '<hr class="subtle-hr"/><div id="main-science-areas-table-footer"><a href="' +
|
||||
comparisonScienceMapCsvDataUrlPrefix + me.uri +
|
||||
'" class="map-of-science-links">Save All as CSV</a></div>';
|
||||
'" class="map-of-science-links">' + i18nStrings.saveAllAsCSV + '</a></div>';
|
||||
me.tableDiv.append(csvButton);
|
||||
},
|
||||
changeFilter: function(filterType) {
|
||||
var me = this;
|
||||
if (filterType === COMPARISON_TYPE.ORGANIZATION) {
|
||||
|
||||
$("#comparison-science-areas-th").html("Organization");
|
||||
$("#comparison-science-areas-th").html(i18nStrings.organizationString);
|
||||
me.currentSelectedFilter = COMPARISON_TYPE.ORGANIZATION;
|
||||
} else {
|
||||
|
||||
$("#comparison-science-areas-th").html("Person");
|
||||
$("#comparison-science-areas-th").html(i18nStrings.personString);
|
||||
me.currentSelectedFilter = COMPARISON_TYPE.PERSON;
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
COMPARISON = {
|
||||
"one":{ "name": "one", "color": "#99CC00"},
|
||||
"two":{ "name": "two", "color": "#FF9900"},
|
||||
|
@ -85,7 +87,7 @@ var ComparisonScimapWidget = Class.extend({
|
|||
me.disciplineLabelsControl = new CheckBoxPanel({
|
||||
map: map,
|
||||
checked: true,
|
||||
text: "Show discipline labels",
|
||||
text: i18nStrings.showDisciplineLabels,
|
||||
click: function() {
|
||||
if($(this).attr('checked')) {
|
||||
me.labelsMarkerManager.showMarkers();
|
||||
|
@ -250,7 +252,7 @@ var ComparisonScimapWidget = Class.extend({
|
|||
if (compositeManager) {
|
||||
var length = compositeManager.length();
|
||||
var slider = this.sliderControl;
|
||||
slider.setTypeString("subdisciplines");
|
||||
slider.setTypeString(i18nStrings.subdisciplinesLower);
|
||||
slider.setMin(Math.min(1, length));
|
||||
slider.setMax(length);
|
||||
slider.setValue(length);
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var DataTableWidget = Class.extend({
|
||||
|
||||
dom: {
|
||||
firstFilterLabel: "554 Subdisciplines",
|
||||
secondFilterLabel: "13 Disciplines",
|
||||
firstFilterLabel: "554 " + i18nStrings.subdisciplinesString,
|
||||
secondFilterLabel: "13 " + i18nStrings.disciplinesString,
|
||||
|
||||
searchBarParentContainerClass: "searchbar",
|
||||
paginationContainerClass: "paginatedtabs",
|
||||
|
@ -118,22 +120,22 @@ var DataTableWidget = Class.extend({
|
|||
var tr = $('<tr>');
|
||||
|
||||
var levelOfScienceAreaTH = $('<th>');
|
||||
levelOfScienceAreaTH.html('Level of Science Area');
|
||||
levelOfScienceAreaTH.html(i18nStrings.scienceAreaLevel);
|
||||
|
||||
var scienceAreasTH = $('<th>');
|
||||
scienceAreasTH.attr("id", "science-areas-th");
|
||||
if (this.currentSelectedFilter === SCIMAP_TYPE.SUBDISCIPLINE ) {
|
||||
scienceAreasTH.html('Subdisciplines');
|
||||
scienceAreasTH.html(i18nStrings.subdisciplinesString);
|
||||
} else {
|
||||
scienceAreasTH.html('Disciplines');
|
||||
scienceAreasTH.html(i18nStrings.disciplinesString);
|
||||
}
|
||||
|
||||
var activityCountTH = $('<th>');
|
||||
activityCountTH.html('# of pubs.');
|
||||
activityCountTH.html('# ' + i18nStrings.numberOfPubs);
|
||||
activityCountTH.attr("id", "activity-count-column");
|
||||
|
||||
var percentageActivityTH = $('<th>');
|
||||
percentageActivityTH.html('% of activity');
|
||||
percentageActivityTH.html('% ' + i18nStrings.ofActivityString);
|
||||
percentageActivityTH.attr("id", "percentage-activity-column");
|
||||
|
||||
tr.append(levelOfScienceAreaTH);
|
||||
|
@ -209,7 +211,7 @@ var DataTableWidget = Class.extend({
|
|||
"bInfo": true,
|
||||
"oLanguage": {
|
||||
"sInfo": "_START_ - _END_ of _TOTAL_",
|
||||
"sInfoEmpty": "No matching science areas found",
|
||||
"sInfoEmpty": i18nStrings.noMatchingScienceAreas,
|
||||
"sInfoFiltered": ""
|
||||
},
|
||||
"sPaginationType": "gmail_style",
|
||||
|
@ -227,8 +229,9 @@ var DataTableWidget = Class.extend({
|
|||
|
||||
var searchInputBox = $("." + me.dom.searchBarParentContainerClass).find("input[type=text]");
|
||||
searchInputBox.css("width", "140px");
|
||||
searchInputBox.after("<span id='reset-search' title='Clear search query'>X</span>"
|
||||
+ "<img class='filterInfoIcon' id='searchInfoIcon' src='" + infoIconUrl + "' alt='information icon' title='' />");
|
||||
searchInputBox.after("<span id='reset-search' title='" + i18nStrings.clearSearchQuery + "'>X</span>"
|
||||
+ "<img class='filterInfoIcon' id='searchInfoIcon' src='" + infoIconUrl
|
||||
+ "' alt='" + i18nStrings.infoIconString + "' title='' />");
|
||||
$("#reset-search").live('click', function() {
|
||||
me.widget.fnFilter("");
|
||||
});
|
||||
|
@ -236,7 +239,7 @@ var DataTableWidget = Class.extend({
|
|||
|
||||
var csvButton = '<hr class="subtle-hr"/><div id="main-science-areas-table-footer"><a id="csv" href="' +
|
||||
entityMapOfScienceSubDisciplineCSVURL +
|
||||
'" class="map-of-science-links">Save All as CSV</a></div>';
|
||||
'" class="map-of-science-links">' + i18nStrings.saveAllAsCSV + '</a></div>';
|
||||
this.tableDiv.append(csvButton);
|
||||
|
||||
var totalPublications = me.pubsWithNoJournals + me.pubsWithInvalidJournals + me.pubsMapped;
|
||||
|
@ -249,7 +252,7 @@ var DataTableWidget = Class.extend({
|
|||
var me = this;
|
||||
if (filterType === SCIMAP_TYPE.SUBDISCIPLINE) {
|
||||
|
||||
$("#science-areas-th").html("Subdisciplines");
|
||||
$("#science-areas-th").html(i18nStrings.subdisciplinesString);
|
||||
if (me.widget) {
|
||||
me.widget.fnSettings()._iDisplayLength = 10;
|
||||
}
|
||||
|
@ -258,7 +261,7 @@ var DataTableWidget = Class.extend({
|
|||
|
||||
} else {
|
||||
|
||||
$("#science-areas-th").html("Disciplines");
|
||||
$("#science-areas-th").html(i18nStrings.disciplinesString);
|
||||
me.currentSelectedFilter = SCIMAP_TYPE.DISCIPLINE;
|
||||
if (me.widget) {
|
||||
me.widget.fnSettings()._iDisplayLength = 13;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var ErrorDisplayWidget = Class.extend({
|
||||
|
||||
container: '',
|
||||
|
@ -36,7 +38,7 @@ var ErrorDisplayWidget = Class.extend({
|
|||
* */
|
||||
if (isZeroPublicationsCase) {
|
||||
|
||||
newErrorMessage += "No publications in the system have been attributed to this " + errorForType.toLowerCase() + ".";
|
||||
newErrorMessage += i18nStrings.noAttributedPubs + " " + errorForType.toLowerCase() + ".";
|
||||
|
||||
} else {
|
||||
/*
|
||||
|
@ -60,12 +62,14 @@ var ErrorDisplayWidget = Class.extend({
|
|||
var newErrorMessage = "";
|
||||
|
||||
if (totalPublications > 1) {
|
||||
newErrorMessage = "None of the " + totalPublications + " publications attributed to this "
|
||||
+ errorForType.toLowerCase() + " have been 'science-located'.";
|
||||
newErrorMessage = i18nStrings.noneOfThe + " " + totalPublications + " "
|
||||
+ i18nStrings.pubsAttributedTo + " "
|
||||
+ errorForType.toLowerCase()
|
||||
+ " " + i18nStrings.beenScienceLocated;
|
||||
|
||||
} else {
|
||||
newErrorMessage = "The publication attributed to this "
|
||||
+ errorForType.toLowerCase() + " has not been 'science-located'.";
|
||||
newErrorMessage = i18nStrings.pubAttributedTo + " "
|
||||
+ errorForType.toLowerCase() + " " + i18nStrings.notScienceLocated;
|
||||
}
|
||||
|
||||
|
||||
|
@ -73,19 +77,19 @@ var ErrorDisplayWidget = Class.extend({
|
|||
|
||||
if (responseData.pubsWithNoJournals && responseData.pubsWithNoJournals > 0) {
|
||||
|
||||
var publicationsText = (responseData.pubsWithNoJournals > 1) ? "publications" : "publication";
|
||||
var publicationsText = (responseData.pubsWithNoJournals > 1) ? i18nStrings.publicationsString : i18nStrings.publicationString;
|
||||
|
||||
newErrorMessage += "<li>" + responseData.pubsWithNoJournals + " " + publicationsText + " have no journal"
|
||||
+ " information.</li>"
|
||||
newErrorMessage += "<li>" + responseData.pubsWithNoJournals + " " + publicationsText
|
||||
+ " " + i18nStrings.noJournalInformation + "</li>"
|
||||
|
||||
}
|
||||
|
||||
if (responseData.pubsWithInvalidJournals && responseData.pubsWithInvalidJournals > 0) {
|
||||
|
||||
var publicationsText = (responseData.pubsWithInvalidJournals > 1) ? "publications" : "publication";
|
||||
var publicationsText = (responseData.pubsWithInvalidJournals > 1) ? i18nStrings.publicationsString : i18nStrings.publicationString;
|
||||
|
||||
newErrorMessage += "<li>" + responseData.pubsWithInvalidJournals + " " + publicationsText + " "
|
||||
+ " could not be matched with a map location using their journal information.</li>"
|
||||
+ " " + i18nStrings.noMatchingMapLocation + "</li>"
|
||||
}
|
||||
|
||||
newErrorMessage += "</ul>";
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var map;
|
||||
var downloader;
|
||||
var currentVisMode;
|
||||
|
@ -26,7 +29,7 @@ function setupLoadingScreen() {
|
|||
|
||||
$("#" + responseContainerID).block({
|
||||
message: '<div id="loading-data-container"><h3><img id="data-loading-icon" src="' + loadingImageLink
|
||||
+ '" /> Loading data for <i>'
|
||||
+ '" /> ' + i18nStrings.loadingDataFor + ' <i>'
|
||||
+ entityLabel
|
||||
+ '</i></h3></div>'
|
||||
});
|
||||
|
@ -38,8 +41,7 @@ function setupLoadingScreen() {
|
|||
.html('<h3><img id="refresh-page-icon" src="'
|
||||
+ refreshPageImageLink
|
||||
+ '" /> Data for <i>' + entityLabel
|
||||
+ '</i> is now being refreshed. The visualization will load as soon as we are done computing, '
|
||||
+ 'or you can search or browse other data in VIVO and come back in a few minutes.</h3>')
|
||||
+ '</i> ' + i18nStrings.mapBeingRefreshed + '</h3>')
|
||||
.css({'cursor': 'pointer'});
|
||||
}, 10 * 1000);
|
||||
}
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
* The MarkerManager is more like a composite class of Marker. It manages
|
||||
* markers by grouping the markers by keys.
|
||||
*/
|
||||
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var MarkerManager = Class.extend({
|
||||
init: function() {
|
||||
this.keyToMarker = {};
|
||||
|
@ -184,8 +187,8 @@ var DisciplineMarkerManager = ScimapMarkerManager.extend({
|
|||
marker.setContent(
|
||||
'<div style="font-size: 80%; padding: 5px; text-align: left;"><b>'
|
||||
+ poly.label +'</b><br />'
|
||||
+ addCommasToNumber(poly.value.toFixed(2)) + ' publications (pubs.)<br />'
|
||||
+ (poly.value * 100 / this.maxValue).toFixed(2) + '% activity</div>'
|
||||
+ addCommasToNumber(poly.value.toFixed(2)) + ' ' + i18nStrings.publicationsPubs + '<br />'
|
||||
+ (poly.value * 100 / this.maxValue).toFixed(2) + i18nStrings.percentActivity
|
||||
);
|
||||
return marker;
|
||||
}
|
||||
|
@ -205,8 +208,8 @@ var SubdisciplineMarkerManager = ScimapMarkerManager.extend({
|
|||
marker.setContent(
|
||||
'<div style="font-size: 80%; padding: 5px; text-align: left;"><b>'
|
||||
+ poly.label + '</b> in ' + disciplineLabel +'<br />'
|
||||
+ addCommasToNumber(poly.value.toFixed(2)) + ' publications (pubs.)<br />'
|
||||
+ (poly.value * 100 / this.maxValue).toFixed(2) + '% activity</div>'
|
||||
+ addCommasToNumber(poly.value.toFixed(2)) + ' ' + i18nStrings.publicationsPubs + '<br />'
|
||||
+ (poly.value * 100 / this.maxValue).toFixed(2) + i18nStrings.percentActivity
|
||||
);
|
||||
|
||||
return marker;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var ScimapWidget = Class.extend({
|
||||
init: function(map) {
|
||||
var me = this;
|
||||
|
@ -48,7 +50,7 @@ var ScimapWidget = Class.extend({
|
|||
me.disciplineLabelsControl = new CheckBoxPanel({
|
||||
map: map,
|
||||
checked: true,
|
||||
text: "Show discipline labels",
|
||||
text: i18nStrings.showDisciplineLabels,
|
||||
click: function() {
|
||||
if($(this).attr('checked')) {
|
||||
me.labelsMarkerManager.showMarkers();
|
||||
|
@ -204,9 +206,9 @@ var ScimapWidget = Class.extend({
|
|||
var length = manager.length();
|
||||
var slider = this.sliderControl;
|
||||
if (this.getMarkerManager(SCIMAP_TYPE.DISCIPLINE) == manager) {
|
||||
slider.setTypeString("disciplines");
|
||||
slider.setTypeString(i18nStrings.disciplinesLower);
|
||||
} else {
|
||||
slider.setTypeString("subdisciplines");
|
||||
slider.setTypeString(i18nStrings.subdisciplinesLower);
|
||||
}
|
||||
slider.setMin(Math.min(1, length));
|
||||
slider.setMax(length);
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
var SimpleDataTableWidget = Class.extend({
|
||||
|
||||
dom: {
|
||||
|
@ -61,7 +63,7 @@ var SimpleDataTableWidget = Class.extend({
|
|||
entityVivoProfileURLPrefix + me.uri +'">' +
|
||||
truncateText(me.label, 23) + '</a><a href="' + entityMapOfScienceURLPrefix +
|
||||
me.uri + '"><img class="drillDownIcon" src="' +
|
||||
drillDownIconUrl + '" alt="drill down" title="drill down" /></a></div>');
|
||||
drillDownIconUrl + '" alt="' + i18nStrings.drillDownString + '" title="' + i18nStrings.drillDownString + '" /></a></div>');
|
||||
me.tableDiv.append(organizationHeader);
|
||||
|
||||
/* Create table */
|
||||
|
@ -78,10 +80,10 @@ var SimpleDataTableWidget = Class.extend({
|
|||
|
||||
var scienceAreasTH = $('<th>');
|
||||
scienceAreasTH.attr("id", "entity-science-areas-th");
|
||||
scienceAreasTH.html('Subdisciplines');
|
||||
scienceAreasTH.html(i18nStrings.subdisciplinesString);
|
||||
|
||||
var activityCountTH = $('<th width="53">');
|
||||
activityCountTH.html('# of pubs.');
|
||||
activityCountTH.html('# ' + i18nStrings.numberOfPubs);
|
||||
|
||||
//tr.append(levelOfScienceAreaTH);
|
||||
tr.append(scienceAreasTH);
|
||||
|
@ -129,7 +131,7 @@ var SimpleDataTableWidget = Class.extend({
|
|||
"bFilter": false,
|
||||
"oLanguage": {
|
||||
"sInfo": "_START_ - _END_ of _TOTAL_",
|
||||
"sInfoEmpty": "No matching science areas found",
|
||||
"sInfoEmpty": i18nStrings.noMatchingScienceAreas,
|
||||
"sInfoFiltered": ""
|
||||
},
|
||||
"sPaginationType": "gmail_style",
|
||||
|
@ -140,7 +142,7 @@ var SimpleDataTableWidget = Class.extend({
|
|||
/* Create csv download button */
|
||||
var csvButton = '<hr class="subtle-hr" /><div id="main-science-areas-table-footer" style="background-color:' + me.color + ';"><a href="' +
|
||||
entityMapOfScienceSubDisciplineCSVURLPrefix + me.uri +
|
||||
'" class="map-of-science-links">Save All as CSV</a></div>';
|
||||
'" class="map-of-science-links">' + i18nStrings.saveAllAsCSV + '</a></div>';
|
||||
me.tableDiv.append(csvButton);
|
||||
|
||||
/* Create mapping statistic result */
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
$.extend(this, i18nStringsPersonLvl);
|
||||
|
||||
function getWellFormedURLs(given_uri, type) {
|
||||
|
||||
if (!given_uri || given_uri == "") {
|
||||
|
@ -223,7 +225,7 @@ function createTable(tableID, tableContainer, tableData) {
|
|||
|
||||
table.append($('<caption>').html(collaboratorTableMetadata.tableCaption
|
||||
+ "<a href=\"" + collaboratorTableMetadata.tableCSVFileLink
|
||||
+ "\">(.CSV File)</a>"));
|
||||
+ "\">(.CSV " + i18nStringsPersonLvl.fileCapitalized + ")</a>"));
|
||||
|
||||
var header = $('<thead>');
|
||||
|
||||
|
@ -326,8 +328,8 @@ function renderCollaborationshipVisualization() {
|
|||
);
|
||||
} else { // flash is too old or we can't detect the plugin
|
||||
var alternateContent = '<br /><h3 style="color: red;">'
|
||||
+ 'This content requires the Adobe Flash Player. '
|
||||
+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a></h3>';
|
||||
+ i18nStringsPersonLvl.contentRequiresFlash + ' '
|
||||
+ '<a href=http://www.adobe.com/go/getflash/>' + i18nStringsPersonLvl.getFlashString + '</a></h3>';
|
||||
document.write(alternateContent); // insert non-flash content
|
||||
|
||||
}
|
||||
|
|
|
@ -60,13 +60,13 @@
|
|||
<@p.mostSpecificTypesPerson individual editable/>
|
||||
</#if>
|
||||
</#if>
|
||||
<span id="iconControlsRightSide" class="<#if editable>iconControlsEditable<#else>iconControlsNotEditable</#if>">
|
||||
<span id="iconControlsRightSide" class="<#if editable>iconControlsEditable<#else>iconControlsNotEditable</#if>" <#if !user.hasSiteAdminAccess>style="top:5px"</#if>>
|
||||
<#include "individual-iconControls.ftl">
|
||||
</span>
|
||||
<#if editable && profilePageTypesEnabled >
|
||||
<div id="profileTypeContainer">
|
||||
<div id="profileTypeContainer" <#if !user.hasSiteAdminAccess>style="top:55px"</#if> >
|
||||
<!-- The text in this h2 element is set via the wilma.css file -->
|
||||
<h2></h2>
|
||||
<h2>${i18n().profile_type}</h2>
|
||||
<select id="profilePageType">
|
||||
<option value="standard" <#if profileType == "standard" || profileType == "none">selected</#if> >${i18n().standard_view}</option>
|
||||
<option value="quickView" <#if profileType == "quickView">selected</#if> >${i18n().quick_view}</option>
|
||||
|
@ -154,6 +154,13 @@ var profileTypeData = {
|
|||
individualUri: '${individual.uri!}',
|
||||
defaultProfileType: '${profileType!}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
errorProcessingTypeChange: '${i18n().error_processing_type_change}',
|
||||
displayLess: '${i18n().display_less}',
|
||||
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
||||
showMoreContent: '${i18n().show_more_content}',
|
||||
verboseTurnOff: '${i18n().verbose_turn_off}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual.css" />',
|
||||
|
|
|
@ -81,8 +81,7 @@
|
|||
</span>
|
||||
<#if editable && profilePageTypesEnabled >
|
||||
<div id="profileTypeContainer" <#if editable>style="margin-top:22px"</#if>>
|
||||
<!-- The text in this h2 element is set via the wilma.css file -->
|
||||
<h2></h2>
|
||||
<h2>${i18n().profile_type}</h2>
|
||||
<select id="profilePageType">
|
||||
<option value="standard" <#if profileType == "standard" || profileType == "none">selected</#if> >${i18n().standard_view}</option>
|
||||
<option value="quickView" <#if profileType == "quickView">selected</#if> >${i18n().quick_view}</option>
|
||||
|
@ -201,6 +200,13 @@ var profileTypeData = {
|
|||
individualUri: '${individual.uri!}',
|
||||
defaultProfileType: '${profileType!}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
errorProcessingTypeChange: '${i18n().error_processing_type_change}',
|
||||
displayLess: '${i18n().display_less}',
|
||||
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
||||
showMoreContent: '${i18n().show_more_content}',
|
||||
verboseTurnOff: '${i18n().verbose_turn_off}'
|
||||
};
|
||||
</script>
|
||||
<#if editable>
|
||||
<script>
|
||||
|
|
|
@ -19,6 +19,14 @@
|
|||
</#assign>
|
||||
|
||||
<#include "individual-vitro.ftl">
|
||||
<script>
|
||||
var i18nStrings = {
|
||||
displayLess: '${i18n().display_less}',
|
||||
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
||||
showMoreContent: '${i18n().show_more_content}',
|
||||
verboseTurnOff: '${i18n().verbose_turn_off}',
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual-vivo.css" />')}
|
||||
|
||||
|
|
|
@ -120,14 +120,25 @@
|
|||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
dataServiceUrl: '${urls.base}/conceptSearchService',
|
||||
subjectUri: '${editConfiguration.subjectUri}',
|
||||
predicateUri: '${editConfiguration.predicateUri}',
|
||||
inversePredicateUri: '${inversePredicate}'
|
||||
};
|
||||
</script>
|
||||
};
|
||||
var i18nStrings = {
|
||||
vocServiceUnavailable: '${i18n().vocabulary_service_unavailable}',
|
||||
noResultsFound: '${i18n().no_serch_results_found}',
|
||||
labelTypeString: '${i18n().label_type}',
|
||||
definitionString: '${i18n().definition_capitalized}',
|
||||
bestMatchString: '${i18n().best_match}',
|
||||
selectTermFromResults: '${i18n().select_term_from_results}',
|
||||
selectVocSource: '${i18n().select_vocabulary_source_to_search}',
|
||||
confirmTermDelete: '${i18n().confirm_term_deletion}',
|
||||
errorTernNotRemoved: '${i18n().error_term_not_deleted}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/templates/freemarker/edit/forms/css/customForm.css" />')}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<#assign title="<em>${editConfiguration.subjectName}</em>" />
|
||||
<#assign requiredHint="<span class='requiredHint'> *</span>" />
|
||||
<#assign initialHint="<span class='hint'>(${i18n().initial okay})</span>" />
|
||||
<#assign initialHint="<span class='hint'>(${i18n().initial_okay})</span>" />
|
||||
|
||||
<@lvf.unsupportedBrowser urls.base/>
|
||||
|
||||
|
@ -184,6 +184,16 @@ var customFormData = {
|
|||
orgUrl: 'http://xmlns.com/foaf/0.1/Organization',
|
||||
reorderUrl: '${urls.base}/edit/reorder'
|
||||
};
|
||||
var i18nStrings = {
|
||||
authorNameWrapperTitle: '${i18n().drag_drop_reorder_authors}',
|
||||
reorderAuthorsAlert: '${i18n().reordering_authors_failed}',
|
||||
removeAuthorshipMessage: '${i18n().confirm_author_removal}',
|
||||
removeAuthorshipAlert: '${i18n().error_processing_aithor_request}',
|
||||
authorTypeText: '${i18n().author_capitalized}',
|
||||
organizationTypeText: '${i18n().organization_capitalized}',
|
||||
helpTextSelect: '${i18n().select_an_existing}',
|
||||
helptextAdd: '${i18n().or_add_new_one}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />',
|
||||
|
|
|
@ -165,6 +165,11 @@ var customFormData = {
|
|||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/templates/freemarker/edit/forms/css/customForm.css" />')}
|
||||
|
|
|
@ -192,6 +192,11 @@ var customFormData = {
|
|||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
|
|
|
@ -326,6 +326,11 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -219,6 +219,11 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
|
|
|
@ -55,6 +55,11 @@
|
|||
defaultTypeName: 'concept', // used in repair mode to generate button text
|
||||
baseHref: '${urls.base}/individual?uri='
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
|
|
|
@ -70,6 +70,11 @@ Also multiple types parameter set to true only if more than one type returned-->
|
|||
sparqlQueryUrl: '${sparqlQueryUrl}',
|
||||
defaultTypeName: '${propertyPublicName}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '$i18n().or_create_new_one}',
|
||||
selectedString: '$i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
|
|
|
@ -34,6 +34,9 @@ var addAuthorForm = {
|
|||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
|
||||
// Get the i18n variables from the page
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
|
||||
// On page load, create references for easy access to form elements.
|
||||
|
@ -372,7 +375,7 @@ var addAuthorForm = {
|
|||
}
|
||||
|
||||
$('.authorNameWrapper').each(function() {
|
||||
$(this).attr('title', 'Drag and drop to reorder authors');
|
||||
$(this).attr('title', addAuthorForm.authorNameWrapperTitle);
|
||||
});
|
||||
|
||||
authorshipList.sortable({
|
||||
|
@ -427,7 +430,7 @@ var addAuthorForm = {
|
|||
ui.item.appendTo(authorships);
|
||||
}
|
||||
|
||||
alert('Reordering of authors failed.');
|
||||
alert(addAuthorForm.reorderAuthorsAlert);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -549,13 +552,6 @@ var addAuthorForm = {
|
|||
return false;
|
||||
});
|
||||
|
||||
// this.undoLinks.click(function() {
|
||||
// $.ajax({
|
||||
// url: $(this).attr('href')
|
||||
// });
|
||||
// return false;
|
||||
// });
|
||||
|
||||
},
|
||||
|
||||
prepareSubmit: function() {
|
||||
|
@ -618,7 +614,7 @@ var addAuthorForm = {
|
|||
authorName = $(link).prev().children().text();
|
||||
|
||||
var removeLast = false,
|
||||
message = 'Are you sure you want to remove this author:\n\n' + authorName + ' ?\n\n';
|
||||
message = addAuthorForm.removeAuthorshipMessage + '\n\n' + authorName + ' ?\n\n';
|
||||
if (!confirm(message)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -710,7 +706,7 @@ var addAuthorForm = {
|
|||
});
|
||||
|
||||
} else {
|
||||
alert('Error processing request: author not removed');
|
||||
alert(addAuthorForm.removeAuthorshipAlert);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -743,14 +739,14 @@ var addAuthorForm = {
|
|||
addAcHelpText: function(selectedObj) {
|
||||
var typeText;
|
||||
if ( $(selectedObj).attr('id') == "lastName" ) {
|
||||
typeText = "Author";
|
||||
typeText = addAuthorForm.authorTypeText;
|
||||
}
|
||||
else {
|
||||
typeText = "Organization";
|
||||
typeText = addAuthorForm.organizationTypeText;
|
||||
}
|
||||
|
||||
if (!$(selectedObj).val()) {
|
||||
$(selectedObj).val("Select an existing " + typeText + " or add a new one.")
|
||||
$(selectedObj).val(addAuthorForm.helpTextSelect + " " + typeText + " " + addAuthorForm.helpTextAdd)
|
||||
.addClass(this.acHelpTextClass);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -33,6 +33,8 @@ var addConceptForm = {
|
|||
$.extend(this, vitro.customFormUtils);
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
// Get the i18n variables from the page
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
// On page load, create references for easy access to form elements.
|
||||
initObjects: function() {
|
||||
|
@ -145,7 +147,7 @@ var addConceptForm = {
|
|||
//This should return an object including the concept list or any errors if there are any
|
||||
$.getJSON(dataServiceUrl, function(results) {
|
||||
var htmlAdd = "";
|
||||
var vocabUnavailable = "<p>The vocabulary service is unavailable. Please try again later.</p>";
|
||||
var vocabUnavailable = "<p>" + addConceptForm.vocServiceUnavailable + "</p>";
|
||||
if ( results== null || results.semanticServicesError != null || results.conceptList == null) {
|
||||
htmlAdd = vocabUnavailable;
|
||||
}
|
||||
|
@ -176,7 +178,7 @@ var addConceptForm = {
|
|||
}
|
||||
htmlAdd+= "</ul>";
|
||||
} else {
|
||||
htmlAdd+= "<p>No search results were found.</p>";
|
||||
htmlAdd+= "<p>" + addConceptForm.noResultsFound + "</p>";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -221,7 +223,7 @@ var addConceptForm = {
|
|||
return {"bestMatch":bestMatchResults, "alternate":alternateResults};
|
||||
},
|
||||
addResultsHeader:function() {
|
||||
var htmlAdd = "<li class='concepts'><div class='row'><span class='column conceptLabel'>Label (Type) </span><span class='column conceptDefinition'>Definition</span><span class='column'>Best Match</span></div></li>";
|
||||
var htmlAdd = "<li class='concepts'><div class='row'><span class='column conceptLabel'>" + addConceptForm.labelTypeString + " </span><span class='column conceptDefinition'>" + addConceptForm.definitionString + "</span><span class='column'>" + addConceptForm.bestMatchString + "</span></div></li>";
|
||||
return htmlAdd;
|
||||
},
|
||||
hideSearchResults:function() {
|
||||
|
@ -293,17 +295,17 @@ var addConceptForm = {
|
|||
validateConceptSelection:function(checkedElements) {
|
||||
var numberElements = checkedElements.length;
|
||||
if(numberElements < 1) {
|
||||
addConceptForm.errors.html("<p class='validationError'>Please select at least one term from the search search results.</p>");
|
||||
addConceptForm.errors.html("<p class='validationError'>" + addConceptForm.selectTermFromResults + "</p>");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
showUncheckedSourceError:function() {
|
||||
addConceptForm.errors.html("<p class='validationError'>Please select at least one external vocabulary source to search.</p>");
|
||||
addConceptForm.errors.html("<p class='validationError'>" + addConceptForm.selectVocSource + "</p>");
|
||||
},
|
||||
removeExistingConcept: function(link) {
|
||||
var removeLast = false,
|
||||
message = 'Are you sure you want to remove this term?';
|
||||
message = addConceptForm.confirmTermDelete;
|
||||
|
||||
if (!confirm(message)) {
|
||||
return false;
|
||||
|
@ -339,7 +341,7 @@ var addConceptForm = {
|
|||
});
|
||||
|
||||
} else {
|
||||
alert('Error processing request: term not removed');
|
||||
alert(addConceptForm.errorTernNotRemoved);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,250 +0,0 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
var addTerminologyForm = {
|
||||
|
||||
/* *** Initial page setup *** */
|
||||
|
||||
onLoad: function() {
|
||||
|
||||
if (this.disableFormInUnsupportedBrowsers()) {
|
||||
return;
|
||||
}
|
||||
this.mixIn();
|
||||
this.initObjects();
|
||||
this.initPage();
|
||||
},
|
||||
|
||||
disableFormInUnsupportedBrowsers: function() {
|
||||
var disableWrapper = $('#ie67DisableWrapper');
|
||||
|
||||
// Check for unsupported browsers only if the element exists on the page
|
||||
if (disableWrapper.length) {
|
||||
if (vitro.browserUtils.isIELessThan8()) {
|
||||
disableWrapper.show();
|
||||
$('.noIE67').hide();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
mixIn: function() {
|
||||
// Mix in the custom form utility methods
|
||||
$.extend(this, vitro.customFormUtils);
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
},
|
||||
// On page load, create references for easy access to form elements.
|
||||
initObjects: function() {
|
||||
|
||||
this.form = $('#addTerminologyForm');
|
||||
this.showFormButtonWrapper = $('#showAddForm');
|
||||
this.submit = this.form.find(':submit');
|
||||
this.cancel = this.form.find('.cancel');
|
||||
//Add term
|
||||
this.addTermButton = $('#showAddFormButton');
|
||||
//section where results should be displayed
|
||||
this.selectedTerm = $('#selectedTerm');
|
||||
//input for search term form
|
||||
this.searchTerm = $('#searchTerm');
|
||||
this.searchSubmit = $('#searchButton');
|
||||
//Hidden inputs for eventual submission
|
||||
this.referencedTerm = $('#referencedTerm');
|
||||
this.entryTerm = $('#entryTerm');
|
||||
this.termLabel = $('#termLabel');
|
||||
this.termType = $('#termType');
|
||||
this.removeTermLinks = $('a.remove');
|
||||
this.errors = $('#errors');
|
||||
},
|
||||
|
||||
initPage: function() {
|
||||
this.initTermData();
|
||||
this.bindEventListeners();
|
||||
|
||||
},
|
||||
bindEventListeners: function() {
|
||||
this.searchSubmit.click(function() {
|
||||
addTerminologyForm.submitSearchTerm();
|
||||
addTerminologyForm.clearErrors();
|
||||
return false;
|
||||
});
|
||||
|
||||
this.form.submit(function() {
|
||||
return addTerminologyForm.prepareSubmit();
|
||||
});
|
||||
|
||||
this.addTermButton.click(function() {
|
||||
addTerminologyForm.initForm();
|
||||
|
||||
});
|
||||
this.removeTermLinks.click(function() {
|
||||
addTerminologyForm.removeExistingTerm(this);
|
||||
return false;
|
||||
});
|
||||
},
|
||||
initForm: function() {
|
||||
// Hide the button that shows the form
|
||||
this.showFormButtonWrapper.hide();
|
||||
this.clearSearchResults();
|
||||
|
||||
this.cancel.unbind('click');
|
||||
this.cancel.bind('click', function() {
|
||||
//show only list of existing terms and hide adding term form
|
||||
addTerminologyForm.showTermListOnlyView();
|
||||
return false;
|
||||
});
|
||||
|
||||
// Show the form
|
||||
this.form.show();
|
||||
},
|
||||
// On page load, associate data with each existing term element. Then we don't
|
||||
// have to keep retrieving data from or modifying the DOM as we manipulate the
|
||||
// authorships.
|
||||
initTermData: function() {
|
||||
$('.existingTerm').each(function(index) {
|
||||
$(this).data(existingTermsData[index]);
|
||||
$(this).data('position', index+1);
|
||||
});
|
||||
},
|
||||
clearSearchResults:function() {
|
||||
$('#selectedTerm').empty();
|
||||
},
|
||||
clearErrors:function() {
|
||||
addTerminologyForm.errors.empty();
|
||||
},
|
||||
showTermListOnlyView: function() {
|
||||
this.hideForm();
|
||||
this.showFormButtonWrapper.show();
|
||||
},
|
||||
submitSearchTerm: function() {
|
||||
//Get value of search term
|
||||
var searchValue = this.searchTerm.val();
|
||||
this.entryTerm.val(searchValue);
|
||||
var dataServiceUrl = addTerminologyForm.dataServiceUrl + "?searchTerm=" + encodeURIComponent(searchValue);
|
||||
$.getJSON(dataServiceUrl, function(results) {
|
||||
if ( results.All.length == 0 ) {
|
||||
} else {
|
||||
//update existing content type with correct class group name and hide class group select again
|
||||
var bestMatchResults = results["Best Match"];
|
||||
var numberMatches = bestMatchResults.length;
|
||||
var i;
|
||||
//For each result, display
|
||||
var htmlAdd = "";
|
||||
if(numberMatches > 0) {
|
||||
htmlAdd = "<ul class='dd' id='terms' name='terms'>";
|
||||
htmlAdd+= addTerminologyForm.addResultsHeader();
|
||||
for(i = 0; i < numberMatches; i++) {
|
||||
var termResult = bestMatchResults[i];
|
||||
var CUI = termResult.CUI;
|
||||
var label = termResult.label;
|
||||
var definition = termResult.definition;
|
||||
var type = termResult.type;
|
||||
var cuiURI = addTerminologyForm.UMLSCUIURL + CUI;
|
||||
htmlAdd+= addTerminologyForm.generateIndividualTermDisplay(cuiURI, label, definition, type);
|
||||
}
|
||||
htmlAdd+= "</ul>";
|
||||
} else {
|
||||
htmlAdd+= "<p>No search results found.</p>";
|
||||
}
|
||||
$('#selectedTerm').html(htmlAdd);
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
addResultsHeader:function() {
|
||||
var htmlAdd = "<li class='terminology'><div class='row'><span class='column termLabel'>Label (Type) </span><span class='column termDefinition'>Definition</span></div></li>";
|
||||
return htmlAdd;
|
||||
},
|
||||
hideSearchResults:function() {
|
||||
this.selectedTerm.hide();
|
||||
},
|
||||
prepareSubmit:function() {
|
||||
var checkedElements = $("#CUI:checked");
|
||||
if(!addTerminologyForm.validateTermSelection(checkedElements)) {
|
||||
return false;
|
||||
}
|
||||
var i;
|
||||
var len = checkedElements.length;
|
||||
var checkedTerm, checkedTermElement, termLabel, termType;
|
||||
var referencedTerms = [];
|
||||
var termLabels = [];
|
||||
var termTypes = [];
|
||||
|
||||
checkedElements.each(function() {
|
||||
checkedTermElement = $(this);
|
||||
checkedTerm = checkedTermElement.val();
|
||||
termType = checkedTermElement.attr("termType");
|
||||
termLabel = checkedTermElement.attr("label");
|
||||
referencedTerms.push(checkedTerm);
|
||||
termLabels.push(termLabel);
|
||||
termTypes.push(termType);
|
||||
});
|
||||
this.referencedTerm.val(referencedTerms);
|
||||
this.termLabel.val(termLabels);
|
||||
this.termType.val(termTypes);
|
||||
return true;
|
||||
},
|
||||
generateIndividualTermDisplay: function(cuiURI, label, definition, type) {
|
||||
var htmlAdd = "<li class='terminology'>" +
|
||||
"<div class='row'>" +
|
||||
"<span class='column termLabel'>" +
|
||||
"<input type='checkbox' id='CUI' name='CUI' value='" + cuiURI + "' label='" + label + "' termType='" + type + "'/>" +
|
||||
label + " (" + type + ")</span>" +
|
||||
"<span class='column termDefinition'>" + definition + "</span>" +
|
||||
"</div>" +
|
||||
"</li>";
|
||||
return htmlAdd;
|
||||
}, validateTermSelection:function(checkedElements) {
|
||||
var numberElements = checkedElements.length;
|
||||
if(numberElements < 1) {
|
||||
addTerminologyForm.errors.html("<p class='validationError'>Please select at least one term from search results to add or click cancel.</p>");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}, removeExistingTerm: function(link) {
|
||||
var removeLast = false,
|
||||
message = 'Are you sure you want to remove this term?';
|
||||
|
||||
if (!confirm(message)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($(link)[0] === $('.remove:last')[0]) {
|
||||
removeLast = true;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: $(link).attr('href'),
|
||||
type: 'POST',
|
||||
data: {
|
||||
deletion: $(link).parents('.existingTerm').data('termNodeUri')
|
||||
},
|
||||
dataType: 'json',
|
||||
context: link, // context for callback
|
||||
complete: function(request, status) {
|
||||
var existingTerm,
|
||||
termNodeUri;
|
||||
|
||||
if (status === 'success') {
|
||||
|
||||
existingTerm = $(this).parents('.existingTerm');
|
||||
existingTerm.fadeOut(400, function() {
|
||||
var numTerms;
|
||||
// For undo link: add to a deletedAuthorships array
|
||||
// Remove from the DOM
|
||||
$(this).remove();
|
||||
// Actions that depend on the author having been removed from the DOM:
|
||||
numTerms = $('.existingTerm').length; // retrieve the length after removing authorship from the DOM
|
||||
});
|
||||
|
||||
} else {
|
||||
alert('Error processing request: term not removed');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
addTerminologyForm.onLoad();
|
||||
});
|
|
@ -13,6 +13,7 @@ var advisingRelUtils = {
|
|||
this.bindEventListeners();
|
||||
|
||||
$.extend(this, vitro.customFormUtils);
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
if ( this.findValidationErrors() ) {
|
||||
this.resetLastNameLabel();
|
||||
|
@ -41,9 +42,9 @@ var advisingRelUtils = {
|
|||
bindEventListeners: function() {
|
||||
this.idCache = {};
|
||||
|
||||
//we want to use the advisee label in the relationship label.
|
||||
// we want to use the advisee label in the relationship label.
|
||||
// since the former gets cleared on submit in some cases, store
|
||||
//the value in a hidden field and map to relationship label
|
||||
// the value in a hidden field and map to relationship label
|
||||
this.advisee.change( function(objEvent) {
|
||||
window.setTimeout('advisingRelUtils.mapAdviseeValue()', 180);
|
||||
});
|
||||
|
@ -89,13 +90,13 @@ var advisingRelUtils = {
|
|||
|
||||
buildAdvisingRelLabel: function() {
|
||||
if ( this.advisee.val() != "" ) {
|
||||
this.adRelshiplabel.val(this.subjName + " advising " + this.advisee.val());
|
||||
this.adRelshiplabel.val(this.subjName + " " + advisingRelUtils.advisingString + " " + this.advisee.val());
|
||||
}
|
||||
else if ( this.saveAdviseeLabel.val() != "" ){
|
||||
this.adRelshiplabel.val(this.subjName + " advising " + this.saveAdviseeLabel.val());
|
||||
this.adRelshiplabel.val(this.subjName + " " + advisingRelUtils.advisingString + " " + this.saveAdviseeLabel.val());
|
||||
}
|
||||
else {
|
||||
this.adRelshiplabel.val(this.subjName + " advising relationship");
|
||||
this.adRelshiplabel.val(this.subjName + " " + advisingRelUtils.advisingRelationshipString);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ var awardReceiptUtils = {
|
|||
this.baseHref = href;
|
||||
this.editMode = mode;
|
||||
$.extend(this, vitro.customFormUtils);
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
// in edit mode copy the year awarded to the displayed input element
|
||||
if ( this.editMode == "edit" ) {
|
||||
this.hiddenOrgDiv = $('div#hiddenOrgLabel');
|
||||
|
@ -67,7 +69,7 @@ var awardReceiptUtils = {
|
|||
},
|
||||
|
||||
showConferredBy: function() {
|
||||
this.org.val('Select an existing Organization or create a new one.');
|
||||
this.org.val(awardReceiptUtils.selectAnOrganization);
|
||||
this.org.addClass('acSelectorWithHelpText');
|
||||
this.org.parent('p').show();
|
||||
if ( this.editMode == "edit" ) {
|
||||
|
|
|
@ -34,6 +34,7 @@ var customForm = {
|
|||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
|
||||
// On page load, create references for easy access to form elements.
|
||||
|
@ -126,7 +127,7 @@ var customForm = {
|
|||
this.or.show();
|
||||
this.requiredLegend.show();
|
||||
this.button.show();
|
||||
this.setButtonText('new');
|
||||
// this.setButtonText('new');
|
||||
this.setLabels();
|
||||
|
||||
// Set the initial autocomplete help text in the acSelector field.
|
||||
|
@ -330,7 +331,7 @@ var customForm = {
|
|||
this.acSelector.val(label);
|
||||
this.acSelectionInfo.html(label);
|
||||
|
||||
this.setButtonText('existing');
|
||||
// this.setButtonText('existing');
|
||||
|
||||
this.cancel.unbind('click');
|
||||
this.cancel.click(function() {
|
||||
|
@ -355,7 +356,8 @@ var customForm = {
|
|||
this.acSelectionInfo.html('');
|
||||
|
||||
if (this.formSteps > 1) {
|
||||
this.acSelection.find('label').html('Selected ');
|
||||
htmlString = customForm.selectedString + " ";
|
||||
this.acSelection.find('label').html(htmlString);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -419,7 +421,7 @@ var customForm = {
|
|||
|
||||
// First case applies on page load; second case applies when the type gets changed.
|
||||
if (!this.acSelector.val() || this.acSelector.hasClass(this.acHelpTextClass)) {
|
||||
var helpText = "Select an existing " + typeText + " or create a new one.";
|
||||
var helpText = customForm.selectExisting + " " + typeText + " " + customForm.orCreateNewOne;
|
||||
//Different for object property autocomplete
|
||||
this.acSelector.val(helpText)
|
||||
.addClass(this.acHelpTextClass);
|
||||
|
|
|
@ -6,6 +6,7 @@ var mailingAddressUtils = {
|
|||
this.initObjectReferences();
|
||||
this.bindEventListeners();
|
||||
this.sortCountrySelector(mode,country);
|
||||
$.extend(this, i18nStrings);
|
||||
|
||||
if ( mode == "add" && !this.errorSection.attr('id') ) {
|
||||
this.containerDiv.hide();
|
||||
|
@ -76,14 +77,14 @@ var mailingAddressUtils = {
|
|||
|
||||
processCountryRelatedFields: function() {
|
||||
if ( mailingAddressUtils.addressClassIsNonUS() ) {
|
||||
this.stateLabel.text("Province or Region");
|
||||
this.stateLabel.text(mailingAddressUtils.provinceOrRegion);
|
||||
this.postalCodeField.attr('size', '40');
|
||||
this.stateSelector.hide();
|
||||
this.stateField.show();
|
||||
this.addrTypeField.val("http://vivoweb.org/ontology/core#Address");
|
||||
}
|
||||
else {
|
||||
this.stateLabel.text("State");
|
||||
this.stateLabel.text(mailingAddressUtils.stateString);
|
||||
this.postalCodeField.attr('size', '8');
|
||||
this.stateField.hide();
|
||||
this.stateSelector.show();
|
||||
|
@ -122,24 +123,24 @@ var mailingAddressUtils = {
|
|||
if ( this.errorSection.is(':visible') ) {
|
||||
this.countrySelector.prepend($("<option></option>")
|
||||
.attr("value","")
|
||||
.text("Select one"));
|
||||
.text(mailingAddressUtils.selectOne));
|
||||
this.countrySelector.val(country);
|
||||
}
|
||||
else if ( mode == "add" ) {
|
||||
this.countrySelector.prepend($("<option selected></option>")
|
||||
.attr("value","")
|
||||
.text("Select one"));
|
||||
.text(mailingAddressUtils.selectOne));
|
||||
}
|
||||
else if ( mode == "edit" || country.length > 1 ) {
|
||||
this.countrySelector.prepend($("<option></option>")
|
||||
.attr("value","")
|
||||
.text("Select one"));
|
||||
.text(mailingAddressUtils.selectOne));
|
||||
this.countrySelector.val(country);
|
||||
}
|
||||
else if ( country.length == 0 ) {
|
||||
this.countrySelector.prepend($("<option selected></option>")
|
||||
.attr("value","")
|
||||
.text("Select one"));
|
||||
.text(mailingAddressUtils.selectOne));
|
||||
this.countrySelector.val(country);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ var manageGrants = {
|
|||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
|
||||
// Initial page setup. Called only at page load.
|
||||
|
@ -68,10 +69,10 @@ var manageGrants = {
|
|||
complete: function(request, status) {
|
||||
|
||||
if (status === 'success') {
|
||||
window.status = "The item has been successfully excluded from the profile page.";
|
||||
window.status = manageGrants.grantSuccessfullyExcluded;
|
||||
|
||||
} else {
|
||||
alert('Error processing request: the item cannot be excluded from the profile page.');
|
||||
alert(manageGrants.errorExcludingGrant);
|
||||
$(grant).removeAttr('checked');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ var managePeople = {
|
|||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
|
||||
// Initial page setup. Called only at page load.
|
||||
|
@ -68,10 +69,10 @@ var managePeople = {
|
|||
complete: function(request, status) {
|
||||
|
||||
if (status === 'success') {
|
||||
window.status = "The person has been successfully excluded from the organization page.";
|
||||
window.status = managePeople.personSuccessfullyExcluded;
|
||||
|
||||
} else {
|
||||
alert('Error processing request: the person cannot be excluded from the organization page.');
|
||||
alert(managePeople.errorExcludingPerson);
|
||||
$(person).removeAttr('checked');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ var managePublications = {
|
|||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
|
||||
// Initial page setup. Called only at page load.
|
||||
|
@ -68,10 +69,10 @@ var managePublications = {
|
|||
complete: function(request, status) {
|
||||
|
||||
if (status === 'success') {
|
||||
window.status = "The publication will has been successfully excluded from the profile page.";
|
||||
window.status = managePublications.publicationSuccessfullyExcluded;
|
||||
|
||||
} else {
|
||||
alert('Error processing request: the publication cannot be excluded from the profile page.');
|
||||
alert(managePublications.errorExcludingPublication);
|
||||
$(publication).removeAttr('checked');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ var manageWebpages = {
|
|||
|
||||
// Get the custom form data from the page
|
||||
$.extend(this, customFormData);
|
||||
$.extend(this, i18nStrings);
|
||||
},
|
||||
|
||||
// Initial page setup. Called only at page load.
|
||||
|
@ -68,7 +69,7 @@ var manageWebpages = {
|
|||
}
|
||||
|
||||
$('.webpageName').each(function() {
|
||||
$(this).attr('title', 'Drag and drop to reorder web pages');
|
||||
$(this).attr('title', manageWebpages.dragDropToReorderWebpages);
|
||||
});
|
||||
|
||||
webpages.sortable({
|
||||
|
@ -121,7 +122,7 @@ var manageWebpages = {
|
|||
ui.item.appendTo(webpages);
|
||||
}
|
||||
|
||||
alert('Reordering of web pages failed.');
|
||||
alert(manageWebpages.webpageReorderingFailed);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -152,7 +153,7 @@ var manageWebpages = {
|
|||
removeWebpage: function(link) {
|
||||
// RY Upgrade this to a modal window
|
||||
var removeLast = false,
|
||||
message = 'Are you sure you want to remove this web page?';
|
||||
message = manageWebpages.confirmWebpageDeletion;
|
||||
|
||||
if (!confirm(message)) {
|
||||
return false;
|
||||
|
@ -212,7 +213,7 @@ var manageWebpages = {
|
|||
});
|
||||
|
||||
} else {
|
||||
alert('Error processing request: web page not removed.');
|
||||
alert(manageWebpages.errorRemovingWebpage);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -10,6 +10,7 @@ var publicationToPersonUtils = {
|
|||
this.baseHref = href;
|
||||
this.sentinel = blankSentinel;
|
||||
$.extend(this, vitro.customFormUtils);
|
||||
$.extend(this, i18nStrings);
|
||||
this.displayFieldsForType();
|
||||
|
||||
if ( this.findValidationErrors() ) {
|
||||
|
@ -163,23 +164,23 @@ var publicationToPersonUtils = {
|
|||
|
||||
// if the user has changed type, ensure that irrelevant fields are cleared
|
||||
// and reset an acSelection divs
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.book.val('');
|
||||
this.resetAcSelection('book');
|
||||
}
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.editor.val('');
|
||||
this.resetAcSelection('editor');
|
||||
}
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.publisher.val('');
|
||||
this.resetAcSelection('publisher');
|
||||
}
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.presentedAt.val('');
|
||||
this.resetAcSelection('conference');
|
||||
}
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.proceedingsOf.val('');
|
||||
this.resetAcSelection('event');
|
||||
}
|
||||
|
@ -214,15 +215,15 @@ var publicationToPersonUtils = {
|
|||
|
||||
// if the user is changing type, ensure that irrelevant fields are cleared
|
||||
// and reset an acSelection divs
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.collection.val('');
|
||||
this.resetAcSelection('collection');
|
||||
}
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.presentedAt.val('');
|
||||
this.resetAcSelection('conference');
|
||||
}
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.proceedingsOf.val('');
|
||||
this.resetAcSelection('event');
|
||||
}
|
||||
|
@ -250,15 +251,15 @@ var publicationToPersonUtils = {
|
|||
|
||||
// if the user is changing type, ensure that irrelevant fields are cleared
|
||||
// and reset an acSelection divs
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.collection.val('');
|
||||
this.resetAcSelection('collection');
|
||||
}
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.presentedAt.val('');
|
||||
this.resetAcSelection('conference');
|
||||
}
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.proceedingsOf.val('');
|
||||
this.resetAcSelection('event');
|
||||
}
|
||||
|
@ -286,19 +287,19 @@ var publicationToPersonUtils = {
|
|||
|
||||
// if the user is changing type, ensure that irrelevant fields are cleared
|
||||
// and reset an acSelection divs
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.book.val('');
|
||||
this.resetAcSelection('book');
|
||||
}
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.editor.val('');
|
||||
this.resetAcSelection('editor');
|
||||
}
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.publisher.val('');
|
||||
this.resetAcSelection('publisher');
|
||||
}
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.proceedingsOf.val('');
|
||||
this.resetAcSelection('event');
|
||||
}
|
||||
|
@ -319,23 +320,23 @@ var publicationToPersonUtils = {
|
|||
|
||||
// if the user is changing type, ensure that irrelevant fields are cleared
|
||||
// and reset an acSelection divs
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.collection.val('');
|
||||
this.resetAcSelection('collection');
|
||||
}
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.book.val('');
|
||||
this.resetAcSelection('book');
|
||||
}
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.editor.val('');
|
||||
this.resetAcSelection('editor');
|
||||
}
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.publisher.val('');
|
||||
this.resetAcSelection('publisher');
|
||||
}
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.proceedingsOf.val('');
|
||||
this.resetAcSelection('event');
|
||||
}
|
||||
|
@ -350,27 +351,27 @@ var publicationToPersonUtils = {
|
|||
|
||||
// if the user is changing type, ensure that irrelevant fields are cleared
|
||||
// and reset an acSelection divs
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.collection.val() != '' && this.collection.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.collection.val('');
|
||||
this.resetAcSelection('collection');
|
||||
}
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.book.val() != '' && this.book.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.book.val('');
|
||||
this.resetAcSelection('book');
|
||||
}
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.editor.val() != '' && this.editor.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.editor.val('');
|
||||
this.resetAcSelection('editor');
|
||||
}
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.publisher.val() != '' && this.publisher.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.publisher.val('');
|
||||
this.resetAcSelection('publisher');
|
||||
}
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.proceedingsOf.val() != '' && this.proceedingsOf.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.proceedingsOf.val('');
|
||||
this.resetAcSelection('event');
|
||||
}
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != "Select an existing" ) {
|
||||
if ( this.presentedAt.val() != '' && this.presentedAt.val().substring(0, 18) != publicationToPersonUtils.selectAnExisting ) {
|
||||
this.presentedAt.val('');
|
||||
this.resetAcSelection('conference');
|
||||
}
|
||||
|
|
|
@ -47,6 +47,10 @@ ${i18n().check_grants_to_exclude}
|
|||
var customFormData = {
|
||||
processingUrl: '${urls.base}/edit/primitiveRdfEdit'
|
||||
};
|
||||
var i18nStrings = {
|
||||
grantSuccessfullyExcluded: '${i18n().grant_successfully_excluded}',
|
||||
errorExcludingGrant: '${i18n().error_excluding_grant}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/templates/freemarker/edit/forms/css/customForm.css" />',
|
||||
|
|
|
@ -43,6 +43,10 @@ ${i18n().check_people_to_exclude}
|
|||
var customFormData = {
|
||||
processingUrl: '${urls.base}/edit/primitiveRdfEdit'
|
||||
};
|
||||
var i18nStrings = {
|
||||
personSuccessfullyExcluded: '${i18n().person_successfully_excluded}',
|
||||
errorExcludingPerson: '${i18n().error_excluding_person}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/templates/freemarker/edit/forms/css/customForm.css" />',
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</span>
|
||||
<span class="editingLinks">
|
||||
<a href="${baseEditWebpageUrl}&objectUri=${webpage.link?url}&predicateUri=${predicateUri}" class="edit" title="${i18n().edit_wepage_link}">${i18n().edit_capitalized}</a> |
|
||||
<a href="${urls.base}${deleteWebpageUrl}" class="remove" title="${i18n().delete_web_page_link}">${i18n().delete_capitalized}</a>
|
||||
<a href="${urls.base}${deleteWebpageUrl}" class="remove" title="${i18n().delete_web_page_link}">${i18n().delete_button}</a>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
|
@ -69,6 +69,12 @@ var customFormData = {
|
|||
rankPredicate: '${editConfiguration.pageData.rankPredicate}',
|
||||
reorderUrl: '${urls.base}/edit/reorder'
|
||||
};
|
||||
var i18nStrings = {
|
||||
dragDropToReorderWebpages: '${i18n().drag_drop_to_reorder_webpages}',
|
||||
webpageReorderingFailed: '${i18n().webpage_reordering_failed}',
|
||||
confirmWebpageDeletion: '${i18n().confirm_webpage_deletion}',
|
||||
errorRemovingWebpage: '${i18n().error_removing_webpage}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/templates/freemarker/edit/forms/css/customForm.css" />',
|
||||
|
|
|
@ -163,6 +163,11 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<#assign enableInternalClass = '' />
|
||||
<#assign disableClass = 'class="inline"' />
|
||||
<#else>
|
||||
<#assign enableInternalClass = '<p class="note">${i18n().enable_internal_class_one} <a href="${urls.base}/processInstitutionalInternalClass" title="${i18n().institutional_class}">${i18n().internal_class}</a> ${i18n().enable_internal_class_two}</p>' />
|
||||
<#assign enableInternalClass = '<p class="note">${i18n().enable_internal_class_one} <a href="${urls.base}/processInstitutionalInternalClass" title="${i18n().internal_class}">${i18n().internal_class}</a> ${i18n().enable_internal_class_two}</p>' />
|
||||
<#assign disableClass = 'class="disable inline" disabled="disabled"' />
|
||||
</#if>
|
||||
|
||||
|
|
|
@ -214,6 +214,13 @@ var customFormData = {
|
|||
};
|
||||
<#--Removing this line for now from above : newUriSentinel : '${newUriSentinel}',-->
|
||||
<#--Also removed this: ,doNotRemoveOriginalObject: '${doNotRemoveOriginalObject}'-->
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}',
|
||||
advisingString: '${i18n().advising}',
|
||||
advisingRelationshipString: '${i18n().advising_relationship}'
|
||||
};
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -192,7 +192,15 @@ var customFormData = {
|
|||
multipleTypeNames: {award: 'award', org: 'organization'},
|
||||
baseHref: '${urls.base}/individual?uri=',
|
||||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'};
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnOrganization: '${i18n().select_or_create_organization}',
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}',
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
|
|
@ -212,6 +212,11 @@ var customFormData = {
|
|||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
</section>
|
||||
|
|
|
@ -191,6 +191,14 @@
|
|||
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
var i18nStrings = {
|
||||
provinceOrRegion: '${i18n().province_or_region}',
|
||||
stateString: '${i18n().state}',
|
||||
selectOne: '${i18n().select_one}'
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
|
|
@ -182,7 +182,12 @@ var customFormData = {
|
|||
baseHref: '${urls.base}/individual?uri=',
|
||||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
};
|
||||
};
|
||||
var i18nStrings = {
|
||||
selectAnExisting: '${i18n().select_an_existing}',
|
||||
orCreateNewOne: '${i18n().or_create_new_one}',
|
||||
selectedString: '${i18n().selected}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
|
|
|
@ -72,8 +72,66 @@ we will use rev 293 (dev build version) of the flot & excanvas files.
|
|||
var activitiesLabel = {
|
||||
singular: '${i18n().activity}',
|
||||
plural: '${i18n().activities}'
|
||||
};
|
||||
|
||||
};
|
||||
var i18nStringsGuiEvents = {
|
||||
temporalGraphCapped: '${i18n().temporal_graph_capitalized}',
|
||||
temporalGraphLower: '${i18n().temporal_graph}',
|
||||
viewString: '${i18n().view}',
|
||||
entityMaxNote: '${i18n().max_entity_note}',
|
||||
organizationsCappedString: '${i18n().organizations_capitalized}',
|
||||
peopleCappedString: '${i18n().people_capitalized}',
|
||||
organizationsAndPeople: '${i18n().organizations_and_people}',
|
||||
loadingDataFor: '${i18n().loading_data_for}',
|
||||
dataForString: '${i18n().data_for}',
|
||||
refreshingDataMsg: '${i18n().refreshing_data_message}',
|
||||
disclaimerTextOne: '${i18n().disclaimer_text_one}',
|
||||
disclaimerTextTwo: '${i18n().disclaimer_text_two}',
|
||||
levelUndefinedError: '${i18n().level_undefined_error}',
|
||||
sundayString: '${i18n().sunday}',
|
||||
mondayString: '${i18n().monday}',
|
||||
tuesdayString: '${i18n().tuesday}',
|
||||
wednesdayString: '${i18n().wednesday}',
|
||||
thursdayString: '${i18n().thursday}',
|
||||
fridayString: '${i18n().friday}',
|
||||
saturdayString: '${i18n().saturday}',
|
||||
januaryString: '${i18n().january}',
|
||||
februaryString: '${i18n().february}',
|
||||
marchString: '${i18n().march}',
|
||||
aprilString: '${i18n().april}',
|
||||
mayString: '${i18n().may}',
|
||||
juneString: '${i18n().june}',
|
||||
julyString: '${i18n().july}',
|
||||
augustString: '${i18n().august}',
|
||||
septemberString: '${i18n().september}',
|
||||
octoberString: '${i18n().october}',
|
||||
novemberString: '${i18n().november}'
|
||||
};
|
||||
var i18nStringsUtil = {
|
||||
firstString: '${i18n().vis_first_link}',
|
||||
lastString: '${i18n().vis_last_link}',
|
||||
previousString: '${i18n().vis_previous_link}',
|
||||
nextString: '${i18n().vis_next_link}',
|
||||
totalNumberOf: '${i18n().total_number_of}',
|
||||
numberOf: '${i18n().number_of}',
|
||||
withUnknownYear: '${i18n().with_unknown_year}',
|
||||
withKnownYear: '${i18n().with_known_year}',
|
||||
fromIncompleteYear: '${i18n().from_current_incomplete_year}',
|
||||
ofString: '${i18n().of}',
|
||||
inCompletedYear: '${i18n().in_completed_year}',
|
||||
haveAnUnknown: '${i18n().have_an_unknown}',
|
||||
yearNotChartered: '${i18n().year_not_chartered}',
|
||||
wereString: '${i18n().were}',
|
||||
inIncompleteYear: '${i18n().in_current_incomplete_year}',
|
||||
byPublications: '${i18n().by_publications}',
|
||||
publicationCount: '${i18n().publication_count}',
|
||||
grantCount: '${i18n().grant_count}',
|
||||
entityType: '${i18n().entity_type}',
|
||||
noMatchingEntities: '${i18n().no_matching_entities_found}',
|
||||
clerSearchQuery: '${i18n().clear_search_query}',
|
||||
shortMaxEntityNote: '${i18n().short_max_entity_note}',
|
||||
informationString: '${i18n().information_capitalized}',
|
||||
entityTypeString: '${i18n().entity_type}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${scripts.add('<!--[if IE]><script type="text/javascript" src="${urls.base}/js/visualization/entitycomparison/jquery_plugins/flot/r293/excanvas.min.js"></script><![endif]-->',
|
||||
|
|
|
@ -66,7 +66,45 @@ var comparisonScienceMapCsvDataUrlPrefix = "${urls.base}${dataVisualizationURLRo
|
|||
var entityMapOfScienceSubDisciplineCSVURLPrefix = "${urls.base}${dataVisualizationURLRoot}?vis=${mapOfScienceVisParam}&output=csv&vis_mode=subdiscipline&&uri="
|
||||
var entityMapOfScienceDisciplineCSVURL = "${entityMapOfScienceDisciplineCSVURL}";
|
||||
var entityMapOfScienceSubDisciplineCSVURL = "${entityMapOfScienceSubDisciplineCSVURL}";
|
||||
|
||||
var i18nStrings = {
|
||||
firstString: '${i18n().vis_first_link}',
|
||||
lastString: '${i18n().vis_last_link}',
|
||||
previousString: '${i18n().vis_previous_link}',
|
||||
nextString: '${i18n().vis_next_link}',
|
||||
organizationsString: '${i18n().organizations_capitalized}',
|
||||
peopleString: '${i18n().people_capitalized}',
|
||||
infoIconString: '${i18n().info_icon}',
|
||||
entityTypeString: '${i18n().entity_type}',
|
||||
organizationString: '${i18n().organization_capitalized}',
|
||||
personString: '${i18n().person_capitalized}',
|
||||
numberOfPubs: '${i18n().of_pubs}',
|
||||
maxNbrForComp: '${i18n().max_nbr_for_comp}',
|
||||
noMatchingScienceAreas: '${i18n().no_matching_science_areas}',
|
||||
clearSearchQuery: '${i18n().clear_search_query}',
|
||||
saveAllAsCSV: '${i18n().save_all_as_csv}',
|
||||
drillDownString: '${i18n().drill_down}',
|
||||
subdisciplinesString: '${i18n().subdisciplines}',
|
||||
disciplinesString: '${i18n().disciplines}',
|
||||
scienceAreaLevel: '${i18n().science_area_level}',
|
||||
ofActivityString: '${i18n().of_activity}',
|
||||
subdisciplinesLower: '${i18n().subdisciplines_lower}',
|
||||
disciplinesLower: '${i18n().disciplines_lower}',
|
||||
showDisciplineLabels: '${i18n().show_discipline_labels}',
|
||||
noAttributedPubs: '${i18n().no_attributed_publications}',
|
||||
noneOfThe: '${i18n().none_of_the}',
|
||||
pubsAttributedTo: '${i18n().publications_attributed_to}',
|
||||
beenScienceLocated: '${i18n().been_science_located}',
|
||||
pubAttributedTo: '${i18n().publication_attributed_to}',
|
||||
notScienceLocated: '${i18n().not_science_located}',
|
||||
publicationsString: '${i18n().publications}',
|
||||
publicationString: '${i18n().publication}',
|
||||
noJournalInformation: '${i18n().no_journal_information}',
|
||||
noMatchingMapLocation: '${i18n().no_matching_map_location}',
|
||||
loadingDataFor: '${i18n().loading_data_for}',
|
||||
mapBeingRefreshed: '${i18n().map_being_refreshed_msg}',
|
||||
publicationsPubs: '${i18n().publication_pubs}',
|
||||
percentActivity: '${i18n().percent_activity}'
|
||||
};
|
||||
</script>
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>',
|
||||
|
|
|
@ -58,6 +58,18 @@ var contextPath = "${urls.base}";
|
|||
var visualizationDataRoot = "${dataVisualizationURLRoot}";
|
||||
|
||||
// -->
|
||||
var i18nStringsCoauthorship = {
|
||||
coAuthorsString: '${i18n().co_authors_capitalized}',
|
||||
authorString: '${i18n().author_capitalized}',
|
||||
publicationsWith: '${i18n().publications_with}',
|
||||
publicationsString: '${i18n().publication_s_capitalized}',
|
||||
coauthorsString: '${i18n().co_author_s_capitalized}'
|
||||
};
|
||||
var i18nStringsPersonLvl = {
|
||||
fileCapitalized: '${i18n().file_capitalized}',
|
||||
contentRequiresFlash: '${i18n().content_requires_flash}',
|
||||
getFlashString: '${i18n().get_flash}'
|
||||
};
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="${coAuthorPersonLevelJavaScript}"></script>
|
||||
|
|
|
@ -57,6 +57,18 @@ var contextPath = "${urls.base}";
|
|||
var visualizationDataRoot = "${dataVisualizationURLRoot}";
|
||||
|
||||
// -->
|
||||
var i18nStringsCoPi = {
|
||||
coInvestigatorString: '${i18n().co_inestigators_capitalized}',
|
||||
investigatorString: '${i18n().investigator_capitalized}',
|
||||
grantsWithString: '${i18n().grants_with}',
|
||||
grantsCapitalized: '${i18n().grant_s_capitalized}',
|
||||
coInvestigatorCapitalized: '${i18n().co_investigator_s_capitalized}'
|
||||
};
|
||||
var i18nStringsPersonLvl = {
|
||||
fileCapitalized: '${i18n().file_capitalized}',
|
||||
contentRequiresFlash: '${i18n().content_requires_flash}',
|
||||
getFlashString: '${i18n().get_flash}'
|
||||
};
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="${coInvestigatorPersonLevelJavaScript}"></script>
|
||||
|
|
|
@ -1700,9 +1700,6 @@ input[type="submit"] {
|
|||
.edit-individual {
|
||||
border-left: 1px dotted #B2D15A;
|
||||
}
|
||||
div#profileTypeContainer h2:after {
|
||||
content:"Profile Type";
|
||||
}
|
||||
/* -------------------------------------------------> */
|
||||
/* SITE ADMIN DASHBOARD ----------------------------> */
|
||||
/* -------------------------------------------------> */
|
||||
|
|
|
@ -110,6 +110,7 @@ missing_info_resource = missing information resource
|
|||
award_receipt_name = award receipt name
|
||||
award_name = award name
|
||||
conferred_by = conferred by
|
||||
selected_award = Selected award
|
||||
|
||||
incomplete_date_time_interval = incomplete date/time interval
|
||||
incomplete_date_time_value = incomplete date/time value
|
||||
|
@ -174,6 +175,7 @@ selection_in_process = Your selection is being processed.
|
|||
for = for
|
||||
background_top_image = background top image
|
||||
full_view_icon = full view icon
|
||||
profile_type = Profile Type
|
||||
#
|
||||
# body templates ( /templates/freemarker/body/ )
|
||||
#
|
||||
|
@ -293,6 +295,7 @@ no_linked_author = no linked author
|
|||
remove_author_link = remove author link
|
||||
add_author = Add Author
|
||||
return_to_grant = Return to grant
|
||||
return_to_publication = Return to publication
|
||||
add_an_author = Add an Author
|
||||
person_capitalized = Person
|
||||
organization_capitalized = Organization
|
||||
|
@ -406,7 +409,7 @@ create_own_concept_all_caps = Create Your Own Concept
|
|||
concept_capitalized = Concept
|
||||
selected_concept = Selected Concept
|
||||
create_concept = Create Concept
|
||||
return_to+manage_concepts = Return to Manage Concepts
|
||||
return_to_manage_concepts = Return to Manage Concepts
|
||||
|
||||
institutional_internal_class = Institutional Internal Class
|
||||
internal_class_intro_one = This class will be used to designate those individuals internal to your institution.
|
||||
|
@ -673,3 +676,140 @@ vis_caching_process = What's involved in the caching process?
|
|||
vis_tools_note_two = To this end we have devised a caching solution which will retain information about the hierarchy of organizations -- namely, which publications are attributed to which organizations -- by storing the RDF model.
|
||||
vis_tools_note_three = We're currently caching these models in memory. The cache is built (only once) on the first user request after a server restart. Because of this, the same model will be served until the next restart. This means that the data in these models may become stale depending upon when it was last created. This works well enough for now. In future releases we will improve this solution so that models are stored on disk and periodically updated.
|
||||
vis_tools_note_four = The models are refreshed each time the server restarts. Since this is not generally practical on production instances, administrators can instead use the "refresh cache" link above to do this without a restart.
|
||||
|
||||
#
|
||||
# custom form javascript variables ( /templates/freemarker/edit/js)
|
||||
#
|
||||
drag_drop_reorder_authors = Drag and drop to reorder authors
|
||||
reordering_authors_failed = Reordering of authors failed.
|
||||
confirm_author_removal = Are you sure you want to remove this author:
|
||||
error_processing_aithor_request = Error processing request: author not removed
|
||||
author_capitalized = Author
|
||||
or_add_new_one = or add a new one.
|
||||
|
||||
vocabulary_service_unavailable = The vocabulary service is unavailable. Please try again later.
|
||||
no_serch_results_found = No search results were found.
|
||||
label_type = Label (Type)
|
||||
definition_capitalized = Definition
|
||||
best_match = Best Match
|
||||
select_term_from_results = Please select at least one term from the search search results.
|
||||
select_vocabulary_source_to_search = Please select at least one external vocabulary source to search.
|
||||
confirm_term_deletion = Are you sure you want to remove this term?
|
||||
error_term_not_deleted = Error processing request: term not removed
|
||||
|
||||
advising = advising
|
||||
advising_relationship = advising relationship
|
||||
|
||||
select_or_create_organization = Select an existing Organization or create a new one.
|
||||
|
||||
province_or_region = Province or Region
|
||||
|
||||
grant_successfully_excluded = The item has been successfully excluded from the profile page.
|
||||
error_excluding_grant = Error processing request: the item cannot be excluded from the profile page.
|
||||
|
||||
person_successfully_excluded = The person has been successfully excluded from the organization page.
|
||||
error_excluding_person = Error processing request: the person cannot be excluded from the organization page.
|
||||
|
||||
publication_successfully_excluded = The publication will has been successfully excluded from the profile page.
|
||||
error_excluding_publication = Error processing request: the publication cannot be excluded from the profile page.
|
||||
|
||||
drag_drop_to_reorder_webpages = Drag and drop to reorder web pages
|
||||
webpage_reordering_failed = Reordering of web pages failed.
|
||||
confirm_webpage_deletion = Are you sure you want to remove this web page?
|
||||
error_removing_webpage = Error processing request: web page not removed.
|
||||
|
||||
#
|
||||
# miscellaneous javascript variables ( productMods/js)
|
||||
#
|
||||
researcher = researcher
|
||||
researchers = researchers
|
||||
currently_no_researchers = There are currently no researchers with a defined geographic focus.
|
||||
countries_and_regions = countries and regions.
|
||||
map_states_string = states.
|
||||
map_state_string = state.
|
||||
statewide_locations = state-wide locations.
|
||||
researchers_in = researchers in
|
||||
|
||||
no_faculty_found = No faculty members found.
|
||||
placeholder_image = placeholder image
|
||||
view_all_departments = view all academic departments
|
||||
view_all_faculty = view all faculty
|
||||
no_departments_found = No academic departments found.
|
||||
|
||||
#
|
||||
# individual javascript variables ( productMods/js/individual)
|
||||
#
|
||||
error_processing_type_change = Error processing request: the unchecked labels could not be deleted.
|
||||
|
||||
display_more_ellipsis = ...more
|
||||
show_more_content = show more content
|
||||
|
||||
#
|
||||
# visualization javascript variables ( productMods/js/visualization)
|
||||
#
|
||||
publications_with = Publications with
|
||||
|
||||
co_inestigators_capitalized = Co-investigators
|
||||
grants_with = Grants with
|
||||
|
||||
vis_first_link = First
|
||||
vis_last_link = Last
|
||||
vis_previous_link = Prev
|
||||
vis_next_link = Next
|
||||
|
||||
max_entity_note = A Maximum 10 entities can be compared. Please remove some & try again.
|
||||
organizations_and_people = Organizations and People
|
||||
loading_data_for = Loading data for
|
||||
data_for = Data for
|
||||
refreshing_data_message = is now being refreshed. The visualization will load as soon as we are done computing, or you can search or browse other data in VIVO and come back in a few minutes.
|
||||
disclaimer_text_one = This information is based solely on
|
||||
disclaimer_text_two = which have been loaded into the VIVO system as of
|
||||
level_undefined_error = ENTITY LEVEL UNDEFINED ERROR
|
||||
|
||||
total_number_of = Total Number of
|
||||
number_of = Number of
|
||||
have_an_unknown = have an unknown
|
||||
year_not_chartered = year (not charted above)
|
||||
in_completed_year = in a completed year
|
||||
were = were
|
||||
in_current_incomplete_year = in the current incomplete year (not charted above)
|
||||
publication_count = Publication Count
|
||||
grant_count = Grant Count
|
||||
entity_type = Entity Type
|
||||
no_matching_entities_found = No matching entities found
|
||||
clear_search_query = clear search query
|
||||
short_max_entity_note = A Maximum of 10 entities can be compared.
|
||||
information_capitalized = Information
|
||||
entity_type = Entity Type
|
||||
content_requires_flash = This content requires the Adobe Flash Player.
|
||||
get_flash = Get Flash
|
||||
of_pubs = of pubs.
|
||||
max_nbr_for_comp = The maximum number of items for comparison is 3.
|
||||
no_matching_science_areas = No matching science areas found
|
||||
|
||||
subdisciplines = Subdisciplines
|
||||
disciplines = Disciplines
|
||||
science_area_level = Level of Science Area
|
||||
of_activity = of activity
|
||||
|
||||
drill_down = drill down
|
||||
|
||||
disciplines_lower = disciplines
|
||||
subdisciplines_lower = subdisciplines
|
||||
show_discipline_labels = Show discipline labels
|
||||
|
||||
no_attributed_publications = No publications in the system have been attributed to this
|
||||
none_of_the = None of the
|
||||
publications_attributed_to = publications attributed to this
|
||||
been_science_located = have been "science-located."
|
||||
publication_attributed_to = The publication attributed to this
|
||||
not_science_located = has not been "science-located."
|
||||
no_journal_information = have no journal information.
|
||||
no_matching_map_location = could not be matched with a map location using their journal information.
|
||||
|
||||
map_being_refreshed_msg = is now being refreshed. The visualization will load as soon as we are done computing, or you can search or browse other data in VIVO and come back in a few minutes.
|
||||
|
||||
publication_pubs = publications (pubs.)
|
||||
percent_activity = % activity
|
||||
|
||||
|
||||
|
|
|
@ -117,6 +117,12 @@
|
|||
</#if>
|
||||
<script>
|
||||
var imagesPath = '${urls.images}';
|
||||
var i18nStrings = {
|
||||
displayLess: '${i18n().display_less}',
|
||||
displayMoreEllipsis: '${i18n().display_more_ellipsis}',
|
||||
showMoreContent: '${i18n().show_more_content}',
|
||||
verboseTurnOff: '${i18n().verbose_turn_off}',
|
||||
};
|
||||
</script>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/individual/individual.css" />',
|
||||
|
|
|
@ -85,5 +85,23 @@
|
|||
<#include "footer.ftl">
|
||||
<#-- builds a json object that is used by js to render the academic departments section -->
|
||||
<@lh.listAcademicDepartments />
|
||||
<script>
|
||||
var i18nStrings = {
|
||||
researcherString: '${i18n().researcher}',
|
||||
researchersString: '${i18n().researchers}',
|
||||
currentlyNoResearchers: '${i18n().currently_no_researchers}',
|
||||
countriesAndRegions: '${i18n().countries_and_regions}',
|
||||
statesString: '${i18n().map_states_string}',
|
||||
stateString: '${i18n().map_state_string}',
|
||||
statewideLocations: '${i18n().statewide_locations}',
|
||||
researchersInString: '${i18n().researchers_in}',
|
||||
noFacultyFound: '${i18n().no_faculty_found}',
|
||||
placeholderImage: '${i18n().placeholder_image}',
|
||||
viewAllFaculty: '${i18n().view_all_faculty}',
|
||||
viewAllString: '${i18n().view_all}',
|
||||
viewAllDepartments: '${i18n().view_all_departments}',
|
||||
noDepartmentsFound: '${i18n().no_departments_found}'
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue