[Koha] sru stylesheet [resolved]

Eric Lease Morgan eric_morgan at infomotions.com
Tue Jul 15 03:08:52 NZST 2014


On Jul 14, 2014, at 9:44 AM, Eric Lease Morgan <eric_morgan at infomotions.com> wrote:

>> 1. Is there some additional configuration on the server side allowing me to display results more beautifully?
>> 
>> 2. Has somebody else written an XSL file to transform the MARCXML into something more readable?
> 
> What am I doing incorrectly? Where should I save my XSL file so the SRU interface can find it? 


Resolved.

After looking more closely at my older MBooks zebrasrv configuration file, I discovered that I needed to add a docpath element to my newer Koha configuration file. [0] The relevant portion of my koha-conf.xml file follows:

  <server id="publicserver"  listenref="publicserver"> 
    <directory>/etc/koha/zebradb/biblios</directory>
    <docpath>etc</docpath>
    <config>/etc/koha/zebradb/zebra-biblios-dom.cfg</config>
    <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
    <xi:include href="/etc/koha/zebradb/retrieval-info-bib-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
    <xi:include href="/etc/koha/zebradb/explain-biblios.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
  </server>

Thusly zebrasrv knows to look in /etc/koha/zebradb/biblios/etc for documents — like my stylesheet -- when needed. 

Here are two relevant links:

  1. My now human-readable SRU interface. [1]
  2. The tiny tweaked XSL [2]

Fun with open source software!

Next, it is off to learn about Koha and OAI-PMH.

[0] Alas, I asked this once before - http://lists.indexdata.dk/pipermail/zebralist/2007-November/001803.html
[1] SRU - http://infomotions.com/tmp/koha-sru.html
[2] stylesheet - http://infomotions.com/tmp/mbooks.txt

—
Eric Morgan




More information about the Koha mailing list