+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- This stylesheet expects Connector Frameworks records
--->
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:siebel="http://loc.gov/siebel/elements/1.0/" >
-
- <xsl:output indent="yes"
- method="xml"
- version="1.0"
- encoding="UTF-8"/>
-
- <xsl:param name="medium" />
-
- <xsl:template match="/record">
- <pz:record>
- <pz:metadata type="medium">
- <xsl:value-of select="$medium" />
- </pz:metadata>
- <xsl:apply-templates/>
- </pz:record>
- </xsl:template>
-
- <!--
- The elements mapped in the following clauses should be kept more
- or less in sync with those named in builder/templates/search.cft
- in the "cf" git module.
- -->
-
- <xsl:template match="date">
- <pz:metadata type="publication-date">
- <xsl:value-of select="."/>
- </pz:metadata>
- <pz:metadata type="date">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="url">
- <pz:metadata type="electronic-url">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="title">
- <pz:metadata type="title">
- <xsl:value-of select="."/>
- </pz:metadata>
- <pz:metadata type="title-complete">
- <xsl:value-of select="." />
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="author">
- <pz:metadata type="author">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="description">
- <pz:metadata type="description">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="publisher">
- <pz:metadata type="publisher">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="subject">
- <pz:metadata type="subject">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="item">
- <pz:metadata type="locallocation">
- <xsl:choose>
- <xsl:when test="string-length(location)">
- <xsl:value-of select="location"/>
- </xsl:when>
- <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
- </xsl:choose>
- </pz:metadata>
- <pz:metadata type="callnumber">
- <xsl:choose>
- <xsl:when test="string-length(callno)">
- <xsl:value-of select="callno"/>
- </xsl:when>
- <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
- </xsl:choose>
- </pz:metadata>
- <pz:metadata type="available">
- <xsl:choose>
- <xsl:when test="string-length(available)">
- <xsl:value-of select="available"/>
- </xsl:when>
- <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
- </xsl:choose>
- </pz:metadata>
- <pz:metadata type="publicnote">
- <xsl:choose>
- <xsl:when test="string-length(publicnote)">
- <xsl:value-of select="publicnote"/>
- </xsl:when>
- <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
- </xsl:choose>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="due">
- <pz:metadata type="due">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="location">
- <pz:metadata type="locallocation">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="callno">
- <pz:metadata type="callnumber">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="thumburl">
- <pz:metadata type="thumburl">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="score">
- <pz:metadata type="score">
- <xsl:value-of select="."/>
- </pz:metadata>
- </xsl:template>
-
- <xsl:template match="text()"/>
-
-</xsl:stylesheet>
+++ /dev/null
-<settings target="connect.indexdata.com:9000/mit_opencourseware">
- <set name="pz:name" value="MIT OpenCourseWare" />
- <set name="url" value="connect.indexdata.com:9000/mit_opencourseware" />
- <set name="full_text_target" value="NO" />
- <set name="use_url_proxy" value="0" />
- <set name="pz:preferred" value="1" />
- <set name="pz:piggyback" value="1" />
- <set name="pz:authentication" value="idtest/idtest36" />
- <set name="pz:cclmap:su" value="u=21 s=al" />
- <set name="use_thumbnails" value="1" />
- <set name="pz:requestsyntax" value="xml" />
- <set name="pz:cclmap:issn" value="u=8" />
- <set name="pz:cclmap:ti" value="u=4 s=al" />
- <set name="pz:cclmap:au" value="u=1003 s=al" />
- <set name="pz:xslt" value="cf.xsl" />
- <set name="pz:cclmap:term" value="u=1016 t=l%2Cr s=al 2=102" />
- <set name="pz:cclmap:isbn" value="u=7" />
- <set name="pz:queryencoding" value="UTF-8" />
-</settings>
\ No newline at end of file