possible OAI patches/contributions

23 views
Skip to first unread message

Bridger Dyson-Smith

unread,
Jan 31, 2012, 8:57:33 AM1/31/12
to xtf-...@googlegroups.com
hi all --

We've implemented some changes to the OAI provider here locally that may be of interest to CDL for the next version of XTF. What's the preferred method for submitting these? Would you like our stylesheets, just code snippets with notes, or something else?

I've just started to play around with Mercurial....
Let me know!
Cheers!

Bridger

Martin Haye

unread,
Feb 13, 2012, 2:30:56 PM2/13/12
to xtf-...@googlegroups.com
Hi Bridger,

I think I'm speaking for everyone on this list when I say, yes! we'd love to see and incorporate the changes that you think are applicable to us.

An easy way to create a patch is to start with a pristine XTF directory of a recent version, port the changes you've made and test them in the new XTF directory, then do "hg diff" and pipe the output to a file, then email the file.

A more complex but robust method is to create a branch from the default branch, and do your edits there, then use "hg export" to make the patch. And another method is to fork the XTF code and put your version onto bitbucket like Brian did; check with him on specifics.

--Martin


From: xtf-...@googlegroups.com [xtf-...@googlegroups.com] on behalf of Bridger Dyson-Smith [bdyso...@gmail.com]
Sent: Tuesday, January 31, 2012 5:57 AM
To: xtf-...@googlegroups.com
Subject: [xtf-devel] possible OAI patches/contributions

--
You received this message because you are subscribed to the Google Groups "XTF Developer list" group.
To post to this group, send email to xtf-...@googlegroups.com.
To unsubscribe from this group, send email to xtf-devel+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xtf-devel?hl=en.

Bridger Dyson-Smith

unread,
Feb 24, 2012, 5:10:52 PM2/24/12
to xtf-...@googlegroups.com
Hi Martin, Brian, and others,

Apologies for the delay in returning your email. I still don't have my head quite wrapped around Mercurial, but I've managed to upload the relevant stylesheets with changes here: https://bitbucket.org/CanOfBees/xtf-oai

Please take a look when you have a moment and let me know if you see any utility, significant problems, etc. These changes use the file's date as the OAI dateStamp value. Also, C. Deane (Thanks, C!), made changes to the OAI queryParser stylesheet that allows querying without an explicit $from or $until value. 

I don't have an easy fix for the earliestDatestamp parameter (queryParser.xsl, ~line 90), but after indexing with the new PreFilters, I used the bin/indexDump utility to find the earliest datestamp and correct the value.

We done testing here on EAD and TEI XML, so those are the only two PreFilters I've uploaded. 
Cheers,
Bridger
Reply all
Reply to author
Forward
0 new messages