Add a solr-pz2.xsl test with medium override
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Apr 2014 09:19:11 +0000 (11:19 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Apr 2014 09:19:27 +0000 (11:19 +0200)
etc/xsl/solr-pz22.res.xml [new file with mode: 0644]
etc/xsl/solr-pz22.xml [new file with mode: 0644]

diff --git a/etc/xsl/solr-pz22.res.xml b/etc/xsl/solr-pz22.res.xml
new file mode 100644 (file)
index 0000000..1a4d948
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<pz:record xmlns:pz="http://www.indexdata.com/pazpar2/1.0"><pz:metadata type="medium">cd</pz:metadata>
+  <pz:metadata type="electronic-text"/>
+  <pz:metadata type="subject">Science fiction Short stories Forgers -- Fiction</pz:metadata>
+  <pz:metadata type="subject-long">Science fiction Short stories Forgers -- Fiction, PS</pz:metadata>
+  <pz:metadata type="electronic-url">http://www.gutenberg.org/ebooks/24558</pz:metadata>
+  <pz:metadata type="publication-place"/>
+  <pz:metadata type="publication-name">Project Gutenberg</pz:metadata>
+  <pz:metadata type="title-dates"/>
+  <pz:metadata type="date"/>
+  
+  <pz:metadata type="title-number-section"/>
+  <pz:metadata type="title-responsibility"/>
+  <pz:metadata type="publication-date"/>
+  <pz:metadata type="id">3552-24558</pz:metadata>
+  <pz:metadata type="author-date"/>
+  <pz:metadata type="author">Schmitz, James H.</pz:metadata>
+  <pz:metadata type="title">Watch the Sky</pz:metadata>
+  <pz:metadata type="author-title"/>
+  <pz:metadata type="electronic-note"/>
+  <pz:metadata type="title-remainder"/>
+  <pz:metadata type="title-medium"/>
+  <pz:metadata type="database">3552</pz:metadata>
+  <pz:metadata type="harvest-timestamp">2014-04-23T08:00:01.067Z</pz:metadata>
+  <pz:metadata type="harvest-date">2014-04-23</pz:metadata>
+  1466162433409155072
+  <pz:metadata type="score">7.7963223</pz:metadata>
+</pz:record>
diff --git a/etc/xsl/solr-pz22.xml b/etc/xsl/solr-pz22.xml
new file mode 100644 (file)
index 0000000..339c6d2
--- /dev/null
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!-- xsltproc: ##stringparam medium cd -->
+<doc>
+  <arr name="electronic-text">
+    <str/>
+  </arr>
+  <arr name="subject">
+    <str>Science fiction Short stories Forgers -- Fiction</str>
+  </arr>
+  <arr name="subject-long">
+    <str>Science fiction Short stories Forgers -- Fiction, PS</str>
+  </arr>
+  <arr name="electronic-url">
+    <str>http://www.gutenberg.org/ebooks/24558</str>
+  </arr>
+  <arr name="publication-place">
+    <str/>
+  </arr>
+  <arr name="publication-name">
+    <str>Project Gutenberg</str>
+  </arr>
+  <arr name="title-dates">
+    <str/>
+  </arr>
+  <arr name="date">
+    <str/>
+  </arr>
+  <arr name="medium">
+    <str>book</str>
+  </arr>
+  <arr name="title-number-section">
+    <str/>
+  </arr>
+  <arr name="title-responsibility">
+    <str/>
+  </arr>
+  <arr name="publication-date">
+    <str/>
+  </arr>
+  <str name="id">3552-24558</str>
+  <arr name="author-date">
+    <str/>
+  </arr>
+  <arr name="author">
+    <str>Schmitz, James H.</str>
+  </arr>
+  <arr name="title">
+    <str>Watch the Sky</str>
+  </arr>
+  <arr name="author-title">
+    <str/>
+  </arr>
+  <arr name="electronic-note">
+    <str/>
+  </arr>
+  <arr name="title-remainder">
+    <str/>
+  </arr>
+  <arr name="title-medium">
+    <str/>
+  </arr>
+  <arr name="database">
+    <str>3552</str>
+  </arr>
+  <date name="harvest-timestamp">2014-04-23T08:00:01.067Z</date>
+  <str name="harvest-date">2014-04-23</str>
+  <long name="_version_">1466162433409155072</long>
+  <float name="score">7.7963223</float>
+</doc>