Mercurial > hg > ismi-richfaces
comparison src/main/webapp/imageServer/resources/js/diva4ismi.js @ 55:e15c7ddeb76c
made links in public witness display link to openmind (configurable).
author | casties |
---|---|
date | Fri, 02 Oct 2015 12:59:15 +0000 |
parents | 1b24cc454f14 |
children | 954d6200336d |
comparison
equal
deleted
inserted
replaced
54:2e7447712fd1 | 55:e15c7ddeb76c |
---|---|
2 rest_url : "http://localhost:18080/ismi-richfaces", | 2 rest_url : "http://localhost:18080/ismi-richfaces", |
3 debugModus : false, | 3 debugModus : false, |
4 //rest_url : "https://openmind-ismi-dev.mpiwg-berlin.mpg.de/om4-ismi", | 4 //rest_url : "https://openmind-ismi-dev.mpiwg-berlin.mpg.de/om4-ismi", |
5 //rest_url : "http://ismi-dev.mpiwg-berlin.mpg.de:8080/ismi-richfaces", | 5 //rest_url : "http://ismi-dev.mpiwg-berlin.mpg.de:8080/ismi-richfaces", |
6 iipServerURL: "https://images.rasi.mcgill.ca/fcgi-bin/iipsrv.fcgi", | 6 iipServerURL: "https://images.rasi.mcgill.ca/fcgi-bin/iipsrv.fcgi", |
7 drupal_url: "https://ismi-dev.mpiwg-berlin.mpg.de/drupal-ismi" | 7 drupal_url: "https://ismi-dev.mpiwg-berlin.mpg.de/drupal-ismi", |
8 entity_url: "https://ismi-dev.mpiwg-berlin.mpg.de/om4-ismi/browse/entityDetails.xhtml?eid=" | |
8 } | 9 } |
9 | 10 |
10 function showTitleDetailsBig(titleId){ | 11 function showTitleDetailsBig(titleId){ |
11 showTitleDetails(titleId, 'templates/templateTitleInformationBig.html'); | 12 showTitleDetails(titleId, 'templates/templateTitleInformationBig.html'); |
12 } | 13 } |
271 } | 272 } |
272 | 273 |
273 var fullTitle = json.data.fullTitle; | 274 var fullTitle = json.data.fullTitle; |
274 var fullTitleTranslit = json.data.fullTitleTranslit; | 275 var fullTitleTranslit = json.data.fullTitleTranslit; |
275 var titleContent = new String(); | 276 var titleContent = new String(); |
276 /* | 277 |
277 if(fullTitle){ | 278 /* here the title is linked to the dynamicPage view |
278 titleContent = "<table><tr><td class='tdTitle' style='width: 300px;''>"+ | 279 if(fullTitle && divaGlobal.entity_url){ |
279 '<a href="../public/dynamicPage.xhtml?eid='+titleId+'">'+fullTitle+"</a>"+'<a href="'+divaGlobal.drupal_url+"/entity/"+titleId+'">(full)</a>' | 280 titleContent = "<table><tr><td class='tdTitle' style='width: 300px; text-align=right;'>"+ |
281 '<a href="../public/dynamicPage.xhtml?eid='+titleId+'">'+fullTitle+"</a>"+'<a href="'+divaGlobal.entity_url+titleId+'">(full)</a>' | |
280 +"</td></tr><tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>"; | 282 +"</td></tr><tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>"; |
281 }else{ | 283 }else{ |
282 titleContent = "<table><tr><td class='tdTitle'>"+ | 284 titleContent = "<table><tr><td class='tdTitle'>"+ |
283 '<a href="../public/dynamicPage.xhtml?eid='+titleId+'">'+fullTitleTranslit+"</a>"+'<a href="'+divaGlobal.drupal_url+"/entity/"+titleId+'">(full)</a>' | 285 '<a href="../public/dynamicPage.xhtml?eid='+titleId+'">'+fullTitleTranslit+"</a>"+'<a href="'+divaGlobal.entity_url+titleId+'">(full)</a>' |
284 +"</td></tr></table>" | 286 +"</td></tr></table>" |
285 } | 287 } |
286 | |
287 */ | 288 */ |
288 // Below the Translit Title links to it's page on the drupal site. The link was removed for the launch | 289 |
289 /* | 290 /* here the title is linked to the entity_url */ |
290 if(fullTitle){ | 291 if(fullTitle && divaGlobal.entity_url){ |
291 titleContent = "<table><tr><td class='tdTitle' style='width: 300px;''>"+ | 292 titleContent = "<table><tr><td class='tdTitle' style='width: 300px; text-align=right;'>"+ |
292 '<a href="'+divaGlobal.drupal_url+"/entity/"+titleId+'">'+fullTitle+'</a>' | 293 '<a target="_blank" href="'+divaGlobal.entity_url+titleId+'">'+fullTitle+'</a>' |
293 +"</td></tr><tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>"; | 294 +"</td></tr><tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>"; |
294 }else{ | 295 }else{ |
295 titleContent = "<table><tr><td class='tdTitle'>"+ | 296 titleContent = "<table><tr><td class='tdTitle'>"+ |
296 '<a href="'+divaGlobal.drupal_url+"/entity/"+titleId+'">'+fullTitleTranslit+'</a>' | 297 '<a target="_blank" href="'+divaGlobal.entity_url+titleId+'">'+fullTitleTranslit+'</a>' |
297 +"</td></tr></table>" | 298 +"</td></tr></table>" |
298 } | 299 } |
299 */ | 300 |
301 /* here the title is not linked | |
300 if(fullTitle){ | 302 if(fullTitle){ |
301 titleContent = "<table><tr><td class='tdTitle' style='width: 300px; text-align:right'>"+fullTitle+"</td></tr>" + | 303 titleContent = "<table><tr><td class='tdTitle' style='width: 300px; text-align:right'>"+fullTitle+"</td></tr>" + |
302 "<tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>"; | 304 "<tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>"; |
303 }else{ | 305 }else{ |
304 titleContent = "<table><tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>" | 306 titleContent = "<table><tr><td class='tdTitle'>"+fullTitleTranslit+"</td></tr></table>" |
305 } | 307 } */ |
306 var language = json.data.language; | 308 var language = json.data.language; |
307 var category = json.data.category; | 309 var category = json.data.category; |
308 var author = json.data.author; | 310 var author = json.data.author; |
309 var authorId = json.data.authorId; | 311 var authorId = json.data.authorId; |
310 var aliases = json.data.aliases; | 312 var aliases = json.data.aliases; |
343 | 345 |
344 if (( authorMisattribution == null)||( authorMisattribution == "")) { | 346 if (( authorMisattribution == null)||( authorMisattribution == "")) { |
345 $('#title-misattributions').parent().hide(); | 347 $('#title-misattributions').parent().hide(); |
346 }; | 348 }; |
347 | 349 |
348 /* var authorContent = '<a href="../public/dynamicPage.xhtml?eid='+authorId+'">'+author+"</a>"+'<a href="'+divaGlobal.drupal_url+"/entity/"+authorId+'">(full)</a>'; | 350 var authorContent = '<a target="_blank" href="'+divaGlobal.entity_url+authorId+'">'+author+"</a>"; |
349 */ | |
350 var authorContent = '<a href="'+divaGlobal.drupal_url+"/entity/"+authorId+'">'+author+"</a>"; | |
351 | |
352 | |
353 | 351 |
354 var referencesContent="<table>"; | 352 var referencesContent="<table>"; |
355 for(var refKey in json.data.references){ | 353 for(var refKey in json.data.references){ |
356 var ref = json.data.references[refKey]; | 354 var ref = json.data.references[refKey]; |
357 referencesContent += "<tr><td class='tdTitle' id='bibl-entry-"+titleId+"-"+createIdFromRef(refKey)+"' style='width: 300px;'>"+refKey+"</td></tr><tr><td class='tdTitle'>"+ref+"</td></tr>"; | 355 referencesContent += "<tr><td class='tdTitle' id='bibl-entry-"+titleId+"-"+createIdFromRef(refKey)+"' style='width: 300px;'>"+refKey+"</td></tr><tr><td class='tdTitle'>"+ref+"</td></tr>"; |