I'm trying to make my site work with OAI-PMH (http://
oai.rubyforge.org/). Whilst running the tests on http://re.cs.uct.ac.za/
it seems that it can't process more than two parameters. For example:
Line 67 is: return false unless (@options.keys -
self.class.valid_options).empty?
where, ofcourse, self.class.valid_options is nil. But why?
Any thoughts?
As you know the OAI-PMH standard is pretty specific about what are
acceptable parameters to requests and "test" is definitely not one. I
have a pretty customized version of the OAI lib running on the Kete
project and though it answers properly formed requests correctly it
gives a 500 error when passed "&test=test", too.
You seem to indicate that you have tried other second parameters, but
are they definitely valid. Here's a valid URL query string, for
example:
Yeah, wish I could be of more help, but I don't use the ActiveRecord
wrapper with the OAI gem. I use another one that ties directly into
my search engine.
I recommend trying to contact Terry Reese (one of the gem's
contributors). Here's his blog, he's helped me in the past:
Yeah, wish I could be of more help, but I don't use the ActiveRecord
wrapper with the OAI gem. I use another one that ties directly into
my search engine.
It is very strange to me. Seem that the problem is with parsing the
date.
NoMethodError (private method `gsub!' called for Fri Jan 01 00:00:00 UTC
2010:Time):
/usr/lib/ruby/1.8/date/format.rb:1061:in `_parse'
I recommend trying to contact Terry Reese (one of the gem's
contributors). Here's his blog, he's helped me in the past:
Yeah, wish I could be of more help, but I don't use the ActiveRecord
wrapper with the OAI gem. I use another one that ties directly into
my search engine.
It is very strange to me. Seem that the problem is with parsing the
date.
NoMethodError (private method `gsub!' called for Fri Jan 01 00:00:00 UTC
2010:Time):
/usr/lib/ruby/1.8/date/format.rb:1061:in `_parse'
I recommend trying to contact Terry Reese (one of the gem's
contributors). Here's his blog, he's helped me in the past: