Closed rubinsztajn closed 13 years ago
oops, I blamed the havoc on the wrong line... Try line 41: if macro in Query.standard_macros: self.macro_map[macro] = key Sorry!
Is the original oclc opensearch description file here?
http://viaf.org/allFieldsSearch.xml
It's extremely sad to me that a client can't autodiscover the opensearch description, since they don't appear to be serving up HTML, but some complicated XSL soup :-(
http://opensearchvalidator.com/validate?p=http://viaf.org/&st=tolkien
Yes, that's it...
I'll join you in a cry... My fear is that they've abandoned opensearch for the SRU interface.
Thanks for pointing this out Aaron. I think the opensearch library will need a bit of work before it can work w/ this kind of Query template. But I think you are right that essentially your modified template is ok. Mark Matienzo over in cod4lib irc just noticed that you might have a missing + in your template, which would cause VIAF to choke on the query. Shouldn't you have: "?query=cql.any+all+%22..."
Absolutely. Thanks for pointing that out, Mark! Let me know if there's anything I can do to help with the library. If you want, I can work on a patch for this particular problem.
This is a lovely little open search client, thanks! I've had some issues getting it to work with VIAF, however. It looks like their description file is out of date so I have an updated one here: http://people.umass.edu/arubinst/allFieldsSearch.xml. I've tested this in my browser and it works as expected. VIAF's url format seems to choke opensearch:
As you can see, q.query_string['query'] includes VIAF's wacky opensearch parameters, which plays havoc with line 40 of query.py:
FWIW, it looks like VIAF's template url is kosher according to the open search spec.
Again, thanks for the great client!
Aaron Rubinstein