]> matita.cs.unibo.it Git - helm.git/commitdiff
Many more hard-coded links removed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 4 Oct 2001 14:47:27 +0000 (14:47 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 4 Oct 2001 14:47:27 +0000 (14:47 +0000)
helm/on-line/xslt/metadataLib.xsl
helm/style/mk_dep_graph.xsl
helm/style/mk_meta_graph.xsl

index 95aab43f35817325360dedd77bf186cf3d271a55..b4f56cca6ac23a82dfc672f78a890621cf952172 100644 (file)
@@ -6,6 +6,7 @@
 
 <xsl:param name="CICURI" select="''"/>
 <xsl:param name="getterURL" select="''"/>
+<xsl:param name="draw_graphURL" select="'http://phd.cs.unibo.it:8083/'"/>
 
 <xsl:template match="/">
  <html>
  </p>
  <p>
   <script>
-   var CICURI = "<xsl:value-of select="$CICURI"/>";
+   var RDFURI = "<xsl:value-of select="$RDFURI"/>";
+   var getterURL = "<xsl:value-of select="$getterURL"/>";
+   var draw_graphURL = "<xsl:value-of select="$draw_graphURL"/>";
 <![CDATA[
-   document.write('<a target="graph" href="http://localhost:8083/draw?url=' +
-    escape('http://localhost:8080/helm/servlet/uwobo/apply?xmluri=http://localhost:8081/getxml%3Furi%3D' + RDFURI + '&keys=MMG&param.getterURL=http%3A//localhost%3A8081/&prop.media-type=text/plain&param.CICURI=' + CICURI) + '">View the graph of all the objects dependending on this one.</a>');
+   var url = setParam(location.href,"keys","MMG");
+   url = setParam(url,"xmluri", getterURL + 'getxml%3Furi%3D' + RDFURI);
+   url = draw_graphURL + 'draw?url=' + escape(url);
+   document.write('<a target="graph" href="' + url + '">View the graph of all the objects depending on this one.</a>');
 ]]>
   </script>
  </p>
  <p>
   <script>
    var CICURI = "<xsl:value-of select="$CICURI"/>";
+   var getterURL = "<xsl:value-of select="$getterURL"/>";
+   var draw_graphURL = "<xsl:value-of select="$draw_graphURL"/>";
 <![CDATA[
-   document.write('<a target="graph" href="http://localhost:8083/draw?url=' +
-    escape('http://localhost:8080/helm/servlet/uwobo/apply?xmluri=http://localhost:8081/getxml%3Furi%3D' + CICURI + '&keys=MDG&param.getterURL=http%3A//localhost%3A8081/&prop.media-type=text/plain&param.CICURI=' + CICURI) + '">View the graph of all the dependencies of this object.</a>');
+   var url = setParam(location.href,"keys","MDG");
+   url = setParam(url,"xmluri", getterURL + 'getxml%3Furi%3D' + CICURI);
+   url = draw_graphURL + 'draw?url=' + escape(url);
+   document.write('<a target="graph" href="' + url + '">View the graph of all the dependencies of this object.</a>');
 ]]>
   </script>
  </p>
index fb5615fd72ac195b913c403c391faeec78e25008..b6c6041c94283a0a5334752da21b8539e4972414 100644 (file)
     <xsl:when test="$char = '#'">
      <xsl:call-template name="quote">
       <xsl:with-param name="s" select="substring($s,2)"/>
-      <xsl:with-param name="news" select="concat($news,'S')"/>
+      <xsl:with-param name="news" select="concat($news,'G')"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:when test="$char = '('">
      <xsl:call-template name="quote">
       <xsl:with-param name="s" select="substring($s,2)"/>
-      <xsl:with-param name="news" select="concat($news,'P1')"/>
+      <xsl:with-param name="news" select="concat($news,'O')"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:when test="$char = ')'">
      <xsl:call-template name="quote">
       <xsl:with-param name="s" select="substring($s,2)"/>
-      <xsl:with-param name="news" select="concat($news,'P2')"/>
+      <xsl:with-param name="news" select="concat($news,'C')"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
 </xsl:template>
 
 <xsl:template match="/">
- <!-- draw_graph_url -->
- <xsl:text>http://phd.cs.unibo.it:8083&CSCbr;</xsl:text>
- <!-- dep_url_scheme -->
- <xsl:text>http://phd.cs.unibo.it:8083/draw?url=http%3A//phd.cs.unibo.it%3A8080/helm/servlet/uwobo/apply%3Fxmluri%3Dhttp%3A//phd.cs.unibo.it%3A8081/getxml%253Furi%253D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26keys%3DMDG%26param.getterURL%3Dhttp%253A//phd.cs.unibo.it%253A8081/%26prop.media-type%3Dtext/plain%26param.CICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>&CSCbr;</xsl:text>
- <!-- meta_url_scheme -->
- <xsl:text>http://phd.cs.unibo.it:8083/draw?url=http%3A%2F%2Fphd.cs.unibo.it%3A8080%2Fhelm%2Fservlet%2Fuwobo%2Fapply%3Fxmluri%3Dhttp%3A%2F%2Fphd.cs.unibo.it%3A8081%2Fgetxml%253Furi%253Dhelm%3Ardf%3Awww%2Ecs%2Eunibo.it/helm/rdf/rdfprova//</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26keys%3DMMG%26param.getterURL%3Dhttp%253A//phd.cs.unibo.it%253A8081/%26prop.media-type%3Dtext/plain%26param.CICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26keys%3DMMG%26param%2EgetterURL%3Dhttp%253A%2F%2Fphd.cs.unibo.it%253A8081%2F%26prop%2Emedia%2Dtype%3Dtext%2Fplain%26param%2ECICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>&CSCbr;</xsl:text>
- <!-- cic_url_scheme -->
- <xsl:text>file:///projects/helm/on-line/html/cic/index.html?url=http://phd.cs.unibo.it:8080/helm/servlet/uwobo/apply%3Fkeys%3DC1%252CHC2%252CL%26prop.media-type%3Dtext/html%26prop.encoding%3Diso-8859-1%26param.naturalLanguage%3Dyes%26param.UNICODEvsSYMBOL%3Dsymbol%26param.annotations%3DNO%26prop.doctype-public%3D-//W3C//DTD%2520XHTML%25201.0%2520Transitional//EN%26param.doctype-public%3D-//W3C//DTD%2520XHTML%25201.0%2520Transitional//EN%26param.encoding%3Diso-8859-1%26param.media-type%3Dtext/html%26param.keys%3DC1%252CHC2%252CL%26param.getterURL%3Dhttp://phd.cs.unibo.it:8081/%26param.processorURL%3Dhttp://phd.cs.unibo.it:8080/helm/servlet/uwobo/%26param.interfaceURL%3Dfile:///projects/helm/on-line/html/cic/index.html%26param.topurl%3Dfile:///projects/helm/on-line%26xmluri%3Dhttp://phd.cs.unibo.it:8081/getxml%253Furi%253D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26param.CICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>&CSCbr;</xsl:text>
  <!--
  <xsl:text>strict digraph L0 { size = "83,83"; concentrate=true; node [style=filled, shape = box];&CSCbr;</xsl:text>
  -->
index 117353cae5a264a11d3f82d3fb6c8b94dea616ee..e19e8daa22f0ab0785c4c7cfcbfd3b74d4f2986b 100644 (file)
     <xsl:when test="$char = '#'">
      <xsl:call-template name="quote">
       <xsl:with-param name="s" select="substring($s,2)"/>
-      <xsl:with-param name="news" select="concat($news,'S')"/>
+      <xsl:with-param name="news" select="concat($news,'G')"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:when test="$char = '('">
      <xsl:call-template name="quote">
       <xsl:with-param name="s" select="substring($s,2)"/>
-      <xsl:with-param name="news" select="concat($news,'P1')"/>
+      <xsl:with-param name="news" select="concat($news,'O')"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:when test="$char = ')'">
      <xsl:call-template name="quote">
       <xsl:with-param name="s" select="substring($s,2)"/>
-      <xsl:with-param name="news" select="concat($news,'P2')"/>
+      <xsl:with-param name="news" select="concat($news,'C')"/>
      </xsl:call-template>
     </xsl:when>
     <xsl:otherwise>
 </xsl:template>
 
 <xsl:template match="/">
- <!-- draw_graph_url -->
- <xsl:text>http://phd.cs.unibo.it:8083&CSCbr;</xsl:text>
- <!-- dep_url_scheme -->
- <xsl:text>http://phd.cs.unibo.it:8083/draw?url=http%3A//phd.cs.unibo.it%3A8080/helm/servlet/uwobo/apply%3Fxmluri%3Dhttp%3A//phd.cs.unibo.it%3A8081/getxml%253Furi%253D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26keys%3DMDG%26param.getterURL%3Dhttp%253A//phd.cs.unibo.it%253A8081/%26prop.media-type%3Dtext/plain%26param.CICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>&CSCbr;</xsl:text>
- <!-- meta_url_scheme -->
- <xsl:text>http://phd.cs.unibo.it:8083/draw?url=http%3A%2F%2Fphd.cs.unibo.it%3A8080%2Fhelm%2Fservlet%2Fuwobo%2Fapply%3Fxmluri%3Dhttp%3A%2F%2Fphd.cs.unibo.it%3A8081%2Fgetxml%253Furi%253Dhelm%3Ardf%3Awww%2Ecs%2Eunibo.it/helm/rdf/rdfprova//</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26keys%3DMMG%26param.getterURL%3Dhttp%253A//phd.cs.unibo.it%253A8081/%26prop.media-type%3Dtext/plain%26param.CICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26keys%3DMMG%26param%2EgetterURL%3Dhttp%253A%2F%2Fphd.cs.unibo.it%253A8081%2F%26prop%2Emedia%2Dtype%3Dtext%2Fplain%26param%2ECICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>&CSCbr;</xsl:text>
- <!-- cic_url_scheme -->
- <xsl:text>file:///projects/helm/on-line/html/cic/index.html?url=http://phd.cs.unibo.it:8080/helm/servlet/uwobo/apply%3Fkeys%3DC1%252CHC2%252CL%26prop.media-type%3Dtext/html%26prop.encoding%3Diso-8859-1%26param.naturalLanguage%3Dyes%26param.UNICODEvsSYMBOL%3Dsymbol%26param.annotations%3DNO%26prop.doctype-public%3D-//W3C//DTD%2520XHTML%25201.0%2520Transitional//EN%26param.doctype-public%3D-//W3C//DTD%2520XHTML%25201.0%2520Transitional//EN%26param.encoding%3Diso-8859-1%26param.media-type%3Dtext/html%26param.keys%3DC1%252CHC2%252CL%26param.getterURL%3Dhttp://phd.cs.unibo.it:8081/%26param.processorURL%3Dhttp://phd.cs.unibo.it:8080/helm/servlet/uwobo/%26param.interfaceURL%3Dfile:///projects/helm/on-line/html/cic/index.html%26param.topurl%3Dfile:///projects/helm/on-line%26xmluri%3Dhttp://phd.cs.unibo.it:8081/getxml%253Furi%253D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>%26param.CICURI%3D</xsl:text><xsl:value-of select="'#uri#'"/><xsl:text>&CSCbr;</xsl:text>
  <!--
  <xsl:text>strict digraph L0 { size = "83,83"; concentrate=true; node [style=filled, shape = box];&CSCbr;</xsl:text>
  -->