Hi Bruce,
[cc-ing to the xbiblio-devel list]
I’ve checked the resources available at the SRW/U home page and I
think that a preliminary (i.e limited) implemenation of a simple SRU
server is not too difficult to implement. Especially the code &
examples given by Mike Taylor would be helpful:
However, I would appreciate to have more syntax/implementation
examples etc. Any pointers?
Rob --it’s Matthias Steffens (cc-ing), who is affiliated with the
Bibliophile project. My understanding is that he’d start by just
supporting this specific query, so I’m wanting to standardize on the
precise syntax.
Something like:
http://localhost:8081/biblio?operation=searchRetrieve&version=1.1
&query=cite.key+any+“Smith1992a+Smith1992b+Mitchell1995a”
&recordSchema=mods
&startRecord=1
&maximumRecords=9999
Parsing the query would be a breeze. Delivering a correctly formed
srw:searchRetrieveResponse would involve quite some work, though.
It’s certainly doable but I fear I won’t have the time to implement
it right away. Anyhow, speaking of the distant future, I’m really
willing to support a full SRU solution.
As a preliminary solution, would it be possible for citeproc to send
a URL query (be it SRU or whatever) and have plain MODS XML returned?
Citeproc expects MODS and refbase outputs MODS. So the most simple
solution would be if refbase could return raw MODS XML data (without
any srw:searchRetrieveResponse data wrapped around it).
Of course, I agree that in the long run support of proper standards
like SRU (and CQL) is the way to go. But for now it would be cool, if
I could just send plain MODS.
This works already. You can try it out yourself. To do so, login at:
http://polaris.ipoe.uni-kiel.de/refs/index.php
using
email: user@refbase.net
pwd: guest
then click the links below (the links won’t work if not logged in):
Return records no. 623, 21654 and 23961 in MODS XML format:
This should return 3 records in MODS XML format. Change ‘exportType’
to ‘text’ (or ‘html’) to have it rendered as plain text (or wrapped
into html):
http://polaris.ipoe.uni-kiel.de/refs/show.php?serial=^(21654|623|23961)$&submit=Export&exportFormatSelector=MODS%20XML&exportType=text
http://polaris.ipoe.uni-kiel.de/refs/show.php?serial=^(21654|623|23961)$&submit=Export&exportFormatSelector=MODS%20XML&exportType=html
Querying of cite keys is supported as well but you must be logged in
as a regular user to do so (since cite keys are unique to every user).
Btw, ‘show.php’ supports also other output formats (RIS, Endnote &
Bibtex via bibutils) and querying of many other fields. Here’s an
example:
Return all database entries (in Endnote format wrapped into HTML)
where the title field contains “situ” and where the author field
contains “mock”, excluding any duplicate records:
This should return 2 records…
Now, to gain citeproc integration I would just need to convert a
citeproc query into a refbase query (similar to the above) and
incorporate the returned results. As discussed before, another
pathway would be to directly send a MODS XML file to citeproc and
display the returned results.
I’m eager to do this…
Matthias