# HG changeset patch # User casties # Date 1443790755 0 # Node ID e15c7ddeb76cb69a0ef983d57620b3a32975782d # Parent 2e7447712fd14365d20129a91d3d407eea9ce9fb made links in public witness display link to openmind (configurable). diff -r 2e7447712fd1 -r e15c7ddeb76c src/main/webapp/imageServer/resources/js/diva4ismi.js --- a/src/main/webapp/imageServer/resources/js/diva4ismi.js Fri Oct 02 11:52:42 2015 +0000 +++ b/src/main/webapp/imageServer/resources/js/diva4ismi.js Fri Oct 02 12:59:15 2015 +0000 @@ -4,7 +4,8 @@ //rest_url : "https://openmind-ismi-dev.mpiwg-berlin.mpg.de/om4-ismi", //rest_url : "http://ismi-dev.mpiwg-berlin.mpg.de:8080/ismi-richfaces", iipServerURL: "https://images.rasi.mcgill.ca/fcgi-bin/iipsrv.fcgi", - drupal_url: "https://ismi-dev.mpiwg-berlin.mpg.de/drupal-ismi" + drupal_url: "https://ismi-dev.mpiwg-berlin.mpg.de/drupal-ismi", + entity_url: "https://ismi-dev.mpiwg-berlin.mpg.de/om4-ismi/browse/entityDetails.xhtml?eid=" } function showTitleDetailsBig(titleId){ @@ -273,36 +274,37 @@ var fullTitle = json.data.fullTitle; var fullTitleTranslit = json.data.fullTitleTranslit; var titleContent = new String(); - /* - if(fullTitle){ - titleContent = "
"+ - ''+fullTitle+""+'(full)' + + /* here the title is linked to the dynamicPage view + if(fullTitle && divaGlobal.entity_url){ + titleContent = "
"+ + ''+fullTitle+""+'(full)' +"
"+fullTitleTranslit+"
"; }else{ titleContent = "
"+ - ''+fullTitleTranslit+""+'(full)' + ''+fullTitleTranslit+""+'(full)' + +"
" + } + */ + + /* here the title is linked to the entity_url */ + if(fullTitle && divaGlobal.entity_url){ + titleContent = "
"+ + ''+fullTitle+'' + +"
"+fullTitleTranslit+"
"; + }else{ + titleContent = "
"+ + ''+fullTitleTranslit+'' +"
" } - */ - // Below the Translit Title links to it's page on the drupal site. The link was removed for the launch - /* - if(fullTitle){ - titleContent = "
"+ - ''+fullTitle+'' - +"
"+fullTitleTranslit+"
"; - }else{ - titleContent = "
"+ - ''+fullTitleTranslit+'' - +"
" - } - */ + /* here the title is not linked if(fullTitle){ titleContent = "" + "
"+fullTitle+"
"+fullTitleTranslit+"
"; }else{ titleContent = "
"+fullTitleTranslit+"
" - } + } */ var language = json.data.language; var category = json.data.category; var author = json.data.author; @@ -345,11 +347,7 @@ $('#title-misattributions').parent().hide(); }; -/* var authorContent = ''+author+""+'(full)'; -*/ - var authorContent = ''+author+""; - - + var authorContent = ''+author+""; var referencesContent=""; for(var refKey in json.data.references){