All good, Eric! I hear you on being busy! Thanks for the information! David Cook Lead Software Engineer Prosentient Systems Suite 7.03 6a Glen St Milsons Point NSW 2061 Australia Office: 02 9212 0899 -----Original Message----- Date: Wed, 4 Nov 2026 12:18:55 -0500 From: Eric Lease Morgan <eric_morgan@infomotions.com> Subject: [Koha] Re: search/retrieve via url against my koha catalog To: koha@lists.katipo.co.nz Message-ID: <81A21696-CE02-4412-977A-D66DF10AE89F@infomotions.com> Content-Type: text/plain; charset=utf-8 On Oct 29, 2026, at 6:37 PM, David Cook via Koha <koha@lists.katipo.co.nz> wrote:
I'm not sure what you mean by "I used Koha's administrative interface to turn on the SRU server", since Koha doesn't provide a public SRU server out of the box currently. Could you elaborate on that?
I imagine you might find this one interesting: Bug 42952 - Public SRU with OPAC logic out-of-the-box (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42952)
I haven't completed the work yet but I've been playing around a bit with SRU lately using an Apache proxy and the z3950_responder.pl script. Terry Reese of MarcEdit fame said he found it odd that Koha didn't have a public Z39.50/SRU out of the box and I took his point there. Z39.50 can be a bit tricky because of the networking involved, but SRU is very doable. And with OPAC business logic... it should be roughly equivalent to searching the OPAC using the web UI. (Keep in mind right now z3950_responder.pl and Zebra SRU/Z39.50 services do not honour any of Koha's business logic.)
First of all, I have not been ignoring you, just a bit busier than usual. Second, I stand corrected. I did not turn on SRU via the administrative interface. Instead, a couple of years ago, I probably read a Koha wiki posting about SRU and turned it on via the command line. [1] I then wrote a few Baroque style sheets thus implementing an SRU thin client. Finally, I documented the process in a blog posting. [2] In that posting, I too took advantage of Apache's VirtualHost configuration to simplify the HTTP -> SRU interaction. virtualhost++ Third, since then, rude Internet crawlers found my site, crawled each and every link generated by my Baroque style sheets, and brought my tiny Koha-hosting computer to its knees. Consequently, I have been rewriting my style sheets to be less expressive at the cost of putting greater onus on people to submit CQL queries. See the refined but still in process interface. [3] Next, alas, I do not know anything about the SRU's ability to understand Koha's business logic. Since my Koha catalog has zero patrons and zero items to be checked out (everything is available online), I don't think I have any business logic. 8-) I simply used Koha to index my content, and the Koha catalog interface comes along for the ride. Finally, I will be advocating the use of an MCP interface to the SRU interface. I will advocate this because the MCP/LLM combination does a very good job at interpreting the faceted output as well as the search results. The combination identifies all sorts of patterns in the output that would be difficult for me to articulate by myself, and moreover, the combination does so almost immediately. Continued fun with Koha and SRU. Links [1] wiki posting - https://wiki.koha-community.org/wiki/Setting_up_the_Z39.50_and_SRU_Server [2] blog posting - https://distantreader.org/blog/reader-index/ [3] refined interface - http://index.distantreader.org -- Eric Morgan <eric_morgan@infomotions.com>