]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/xslt/metadataLib.xsl
* the URI passed to the rdfly deamon is now CICURI, except that quoting
[helm.git] / helm / on-line / xslt / metadataLib.xsl
index add30cd5224a8eb01a4172aee81d1820ad716a09..bb7346196c67c95a6808253094f036feac2edd75 100644 (file)
@@ -6,11 +6,12 @@
 
 <xsl:import href="utils.xsl"/>
 <xsl:import href="show_dc.xsl"/>
+<xsl:import href="links_library.xsl"/>
 
 <xsl:param name="CICURI" select="''"/>
 <xsl:param name="getterURL" select="''"/>
 <xsl:param name="draw_graphURL" select="''"/>
-<xsl:param name="rdflyURL" select="'http://mowgli.cs.unibo.it:58086/'"/>
+<xsl:param name="rdflyURL" select="'http://localhost:58086/'"/>
 
 <!--CSC: code cut & pasted from makeGraphLinks -->
 <xsl:param name="uri_set_size" select="'30'"/>
 <xsl:template name="makelink">
  <xsl:param name="name" select="''"/>
  <xsl:param name="CICURI" select="''"/>
- <xsl:param name="RDFURI" select="''"/>
  <xsl:variable name="quotedCICURI">
   <xsl:call-template name="jsquote">
    <xsl:with-param name="s" select="$CICURI"/>
    <xsl:with-param name="times" select="2"/>
   </xsl:call-template>
  </xsl:variable>
+ <xsl:variable name="quotedCICURIforURL">
+  <xsl:call-template name="quote">
+   <xsl:with-param name="s" select="$CICURI"/>
+  </xsl:call-template>
+ </xsl:variable>
  <xsl:choose>
-  <xsl:when test="document(concat($BaseRDFURLBackward,$RDFURI))/*/*/*">
+  <xsl:when test="document(concat($BaseRDFURLBackward,$quotedCICURIforURL))/*/*/*">
    <p>
     <script>
      var CICURI = "<xsl:value-of select="$CICURI"/>";
@@ -87,7 +92,7 @@
  </xsl:choose>
 
  <xsl:choose>
-  <xsl:when test="document(concat($BaseRDFURLForward,$RDFURI))/*/*/*">
+  <xsl:when test="document(concat($BaseRDFURLForward,$quotedCICURIforURL))/*/*/*">
    <p>
     <!-- CSC: Cut & Paster from above ==> create a single javascript function -->
     <script>