]> matita.cs.unibo.it Git - helm.git/commitdiff
Code to share with makeGraphLinks.xsl extracted to graphLinks.js
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 24 Oct 2001 17:31:32 +0000 (17:31 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 24 Oct 2001 17:31:32 +0000 (17:31 +0000)
helm/on-line/xslt/metadataLib.xsl

index 7a2f8ec99f2fd53db9e4db32fa487bbc11c219f2..900797e5f88c8c850af5f5d0f547d9588b27b39a 100644 (file)
    <subst:script language="JavaScript" src="/javascript/defaults.js"/>
    <subst:script language="JavaScript" src="/javascript/utils.js"/>
    <subst:script language="JavaScript" src="/javascript/control.js"/>
+   <subst:script language="JavaScript" src="/javascript/graphLinks.js"/>
+
    <title>Metadata of <xsl:value-of select="$CICURI"/></title>
   </head>
   <body onLoad="window.focus()" bgColor="white">
-   <h1>Metadata of <xsl:value-of select="$CICURI"/></h1>
+   <script>
+     var CICURI = "<xsl:value-of select="$CICURI"/>";
+<![CDATA[
+     document.write('<h1>Metadata of <a target="cic" href="' + mkCICURL(CICURI) + '">' + CICURI + '</a></h1>');
+]]>
+   </script>
    <xsl:apply-templates select="*"/>
   </body>
  </html>
    <p>
     <script>
      var CICURI = "<xsl:value-of select="$CICURI"/>";
-     var RDFURI = "helm:rdf:www.cs.unibo.it/helm/rdf/backward//<xsl:value-of select="$RDFURI"/>";
-     var getterURL = "<xsl:value-of select="$getterURL"/>";
-     var draw_graphURL = "<xsl:value-of select="$draw_graphURL"/>";
 <![CDATA[
-     var url = setParam(location.href,"keys","MMG");
-     url = setParam(url,"xmluri", getterURL + 'getxml%3Furi%3D' + RDFURI);
-     url = setParam(url,"param.CICURI",escape(CICURI));
-     url = draw_graphURL + 'draw?url=' + escape(url);
-     var url2 = setParam(location.href,"keys","MGL,RT");
-     url2 = setParam(url2,"xmluri",escape(url));
-     document.write('<a target="graph" href="' + url2 + '">View the graph of all the objects depending on this one.</a>');
+     document.write('<a target="graph" href="' + mkDepURL(CICURI,true) + '">View the graph of all the objects depending on this one.</a>');
 ]]>
     </script>
    </p>
     <!-- CSC: Cut & Paster from above ==> create a single javascript function -->
     <script>
      var CICURI = "<xsl:value-of select="$CICURI"/>";
-     var RDFURI = "helm:rdf:www.cs.unibo.it/helm/rdf/forward//<xsl:value-of select="$RDFURI"/>";
-     var getterURL = "<xsl:value-of select="$getterURL"/>";
-     var draw_graphURL = "<xsl:value-of select="$draw_graphURL"/>";
 <![CDATA[
-     var url = setParam(location.href,"keys","MDG");
-     url = setParam(url,"xmluri", getterURL + 'getxml%3Furi%3D' + RDFURI);
-     url = setParam(url,"param.CICURI",escape(CICURI));
-     url = draw_graphURL + 'draw?url=' + escape(url);
-     var url2 = setParam(location.href,"keys","MGL,RT");
-     url2 = setParam(url2,"xmluri",escape(url));
-     document.write('<a target="graph" href="' + url2 + '">View the graph of all the dependencies of this object.</a>');
+     document.write('<a target="graph" href="' + mkMetaURL(CICURI,true) + '">View the graph of all the dependencies of this object.</a>');
 ]]>
     </script>
    </p>