Added open-url-resolver setting to the default set of targets.
authorJakub Skoczen <jakub@indexdata.dk>
Fri, 17 Aug 2007 11:29:36 +0000 (11:29 +0000)
committerJakub Skoczen <jakub@indexdata.dk>
Fri, 17 Aug 2007 11:29:36 +0000 (11:29 +0000)
etc/edu.xml
etc/pazpar2.cfg.dist
etc/pz2-ourl-base.xsl

index 92971a7..3692bba 100644 (file)
@@ -1,5 +1,5 @@
 <settings target="*">
-  <!-- $Id: edu.xml,v 1.3 2007-07-10 13:43:07 adam Exp $ -->
+  <!-- $Id: edu.xml,v 1.4 2007-08-17 11:29:36 jakub Exp $ -->
   <!-- based on edu.pz -->
   <set target="acorn.library.vanderbilt.edu:2200/ACORN" name="pz:name" value="Vanderbilt U"/>
   <set target="advance.biblio.polymtl.ca:210/ADVANCE" name="pz:name" value="Ecole Polytechnique Montreal"/>
@@ -74,4 +74,5 @@
   <set name="pz:nativesyntax" value="iso2709"/>
   <set name="pz:xslt" value="marc21.xsl"/>
 
+  <set name="open_url_resolver" value="http://someresolver.com"/>
 </settings>
index 40d33ff..831b0de 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: pazpar2.cfg.dist,v 1.17 2007-08-16 12:42:44 jakub Exp $ -->
+<!-- $Id: pazpar2.cfg.dist,v 1.18 2007-08-17 11:29:36 jakub Exp $ -->
 <pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
   
   <server>
@@ -56,6 +56,7 @@
       <metadata name="fulltext"/>
 
       <metadata name="url_recipe" setting="postproc"/>
+      <metadata name="open_url_resolver" setting="parameter"/>
       <metadata name="open-url"/>
     </service>
   </server>
index b2e20c2..260dc9f 100644 (file)
@@ -7,11 +7,12 @@
     xmlns:str="http://exslt.org/strings"
     extension-element-prefixes="str">
 
-  <xsl:variable name="resolver">http://zeus.lib.uoc.gr:3210/sfxtst3</xsl:variable>
+  <xsl:param name="open_url_resolver"/>
+  <!--<xsl:variable name="resolver">http://zeus.lib.uoc.gr:3210/sfxtst3</xsl:variable>-->
  
   <xsl:template name="insert-md-openurl">
   
-    <xsl:value-of select="$resolver" /><xsl:text>?generatedby=pz2</xsl:text>
+    <xsl:value-of select="$open_url_resolver" /><xsl:text>?generatedby=pz2</xsl:text>
     <xsl:call-template name="ou-parse-author" />
     <xsl:call-template name="ou-parse-date" />
     <xsl:call-template name="ou-parse-volume" />