[Bug 8280] New: SRU should be filterable by Koha Item Type
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 Priority: P5 - low Change sponsored?: --- Bug ID: 8280 CC: m.de.rooy@rijksmuseum.nl Assignee: gmcharlt@gmail.com Summary: SRU should be filterable by Koha Item Type Severity: enhancement Classification: Unclassified OS: All Reporter: martin.renvoize@ptfs-europe.com Hardware: All Status: NEW Version: rel_3_8 Component: Z39.50 / SRU / OpenSearch Servers Product: Koha It would be very useful to be able to query the SRU server by the current index's in Koha, including the Item Type Index. My understanding is the standard CQL queries should work, so: :9998/biblios?version=1.1&operation=searchRetrieve&query=itype=XXX should yeild results conatining all records of itype (952$y in Marc21 Koha) XXX, but I have not been able to get this to work. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #1 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- You are probably right that there is no itype reference in pqf.properties. Can you still search on itemtype=... ? It could just be referring to 8031 itype.. Note that we have 8031 and 9006 for itype and itemtype in attset. If itype and itemtype are also in your record.abs, it may just be a matter of defining it too in pqf.properties. Test it please, and submit a patch! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #2 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- (In reply to comment #1)
You are probably right that there is no itype reference in pqf.properties. Can you still search on itemtype=... ? It could just be referring to 8031 itype.. Note that we have 8031 and 9006 for itype and itemtype in attset. If itype and itemtype are also in your record.abs, it may just be a matter of defining it too in pqf.properties.
Test it please, and submit a patch!
Magnus over in the IRC channel just took the time to explain how the zebra config all fits together and has solved the problem for me. I'll submit the patch once I've worked out where it fits for the installer (as obviously the config files being sued arn't git aware. Cheers -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 Magnus Enger <magnus@enger.priv.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@enger.priv.no --- Comment #3 from Magnus Enger <magnus@enger.priv.no> --- Here is a quick writeup of what we figured out on IRC: http://wiki.koha-community.org/wiki/Making_more_index_searchable_with_Zebra_... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #4 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #3)
Here is a quick writeup of what we figured out on IRC: http://wiki.koha-community.org/wiki/ Making_more_index_searchable_with_Zebra_SRU
Great. You also add it in pqf.properties. Mind the typo. I would not put in dublin core context either.. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #5 from Magnus Enger <magnus@enger.priv.no> --- By all means, please feel free to improve the wiki page! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #6 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- (In reply to comment #4)
(In reply to comment #3)
Here is a quick writeup of what we figured out on IRC: http://wiki.koha-community.org/wiki/ Making_more_index_searchable_with_Zebra_SRU
Great. You also add it in pqf.properties. Mind the typo. I would not put in dublin core context either..
So, what exactly are the contexts and how do they work? I just tried adding a "local" context by adding the line: set.local = info:srw/cql-context-set/1/cql-v1.1 or even set.local = info:srw/cql-context-set/1/cql-v1.2 These don't work as expected, but that's not surprising as it was a stab in the dark. Can you point to any documentation on contexts Marcel? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #7 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- (In reply to comment #6)
(In reply to comment #4)
(In reply to comment #3)
Here is a quick writeup of what we figured out on IRC: http://wiki.koha-community.org/wiki/ Making_more_index_searchable_with_Zebra_SRU
Great. You also add it in pqf.properties. Mind the typo. I would not put in dublin core context either..
So, what exactly are the contexts and how do they work?
I just tried adding a "local" context by adding the line:
set.local = info:srw/cql-context-set/1/cql-v1.1
or even
set.local = info:srw/cql-context-set/1/cql-v1.2
These don't work as expected, but that's not surprising as it was a stab in the dark. Can you point to any documentation on contexts Marcel?
Not sure Marcel came form there... ? M. de Roy was what I meant to say... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #8 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #7)
Not sure Marcel came form there... ? M. de Roy was what I meant to say... M=Marcel; Roy->Rooy
-- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 --- Comment #9 from M. de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to comment #6)
So, what exactly are the contexts and how do they work?
I just tried adding a "local" context by adding the line:
set.local = info:srw/cql-context-set/1/cql-v1.1
or even
set.local = info:srw/cql-context-set/1/cql-v1.2
These don't work as expected, but that's not surprising as it was a stab in the dark. Can you point to any documentation on contexts Marcel?
Please see: http://www.indexdata.com/yaz/doc/tools.html Personally, I would not define a context set named local. (But maybe that's just being too cautious about colliding with reserved words etc.) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8280 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.8 |master CC| |katrin.fischer@bsz-bw.de -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org