changeset 195:5309d29b3061

change links in OpenMind UI to use new bibliography on ismi server.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Fri, 14 Dec 2018 16:54:05 +0100
parents c7fec83ab69a
children dedd218ad565
files src/main/webapp/imageServer/resources/js/diva4ismi.js src/main/webapp/resources/components/ismi/refWidget.xhtml
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/webapp/imageServer/resources/js/diva4ismi.js	Fri Dec 07 15:47:06 2018 +0100
+++ b/src/main/webapp/imageServer/resources/js/diva4ismi.js	Fri Dec 14 16:54:05 2018 +0100
@@ -3,7 +3,8 @@
         rest_url : "https://ismi-db.mpiwg-berlin.mpg.de/om4-ismi",
         //rest_url : "http://localhost:18080/ismi-richfaces",
 		iipServerURL: "https://images.rasi.mcgill.ca/fcgi-bin/iipsrv.fcgi",
-		drupal_url: "https://ismi-db.mpiwg-berlin.mpg.de/drupal-ismi",
+		//drupal_url: "https://ismi-db.mpiwg-berlin.mpg.de/drupal-ismi",
+		drupal_url: "https://ismi.mpiwg-berlin.mpg.de",
 		entity_url: "https://ismi-db.mpiwg-berlin.mpg.de/om4-ismi/browse/entityDetails.xhtml?eid="
 }
 
@@ -121,9 +122,9 @@
             console.debug("got bib id=" + id + " for loc=" + loc);
             // inserting the template in this document
             // mache rel urls zu absoluten
-            if (data.nodes.length > 0) {
+            if (data.length > 0) {
                 // FIXME: better handling of relative URLs
-                var ref = data.nodes[0].node.citation.replace(new RegExp(
+                var ref = data[0].citation.replace(new RegExp(
                         "/drupal-ismi", "g"), divaGlobal.drupal_url);
                 var bib = $(loc);
                 bib.html(ref);
--- a/src/main/webapp/resources/components/ismi/refWidget.xhtml	Fri Dec 07 15:47:06 2018 +0100
+++ b/src/main/webapp/resources/components/ismi/refWidget.xhtml	Fri Dec 14 16:54:05 2018 +0100
@@ -112,11 +112,11 @@
 				<h:panelGrid columns="1" class="rf-pp-cnt-scrlr">
 					<h:panelGrid columns="1" class="rf-pp-cnt">
 
-						<h:panelGrid columns="2">
+						<h:panelGrid columns="2">                            
 						    <h:outputLabel value="ISMI Bibliography" />
-						    <h:outputLink value="https://ismi-db.mpiwg-berlin.mpg.de/drupal-ismi/search/biblio"
+						    <h:outputLink value="https://ismi.mpiwg-berlin.mpg.de/admin/content/bibcite/reference"
                                     target="_blank">
-                                    Search Bibliography
+                                    Edit Bibliography
                             </h:outputLink>
                             
 							<h:outputLabel value="Reference ID" />