koha-z3950-responder and item status
I've been fighting with the Z3950 responder for several years now. In particular, I want get it to respond with a 952$k field that gives an item status as "Available" or "Checked out". In the past (prior to 19.11) I've had to install my own version of ByWater's Z3950 responder, and invoked it with something like this: /usr/share/koha/bin/z3950_responder.pl --add-item-status=k tcp:@:9999 Now it seems that in recent Koha, you're supposed to start the Z3950 responder with /usr/sbin/koha-z3950-responder. But this script doesn't seem to offer any equivalent to --add-item-status=k. So when I use yaz-client to query an item, I see that 952$k is indeed missing: 952 $0 0 $1 0 $2 ddc $4 0 $6 F_HEG $7 0 $8 FICTIONA $9 910 $a VSNY $b VSNY $c FIC $d 2009-03-21 $l 0 $o F HEG $p 3VSNY00001973A $r 2020-04-09 $t 1 $w 2009-03-21 $y BK $x FSC@aR@c19990908 I've looked in the files in /etc/koha/sites/INSTANCE/z3950/config.xml, and don't see anything relevant. How do I get 952$k to appear? -- I wish I had done some of the hard things when they were easier to do. --Ashleigh Brilliant
Excerpts from Mark Alexander's message of 2022-02-13 12:08:33 -0500:
Now it seems that in recent Koha, you're supposed to start the Z3950 responder with /usr/sbin/koha-z3950-responder. But this script doesn't seem to offer any equivalent to --add-item-status=k.
I was in a hurry, so I patched koha-z3950-responder as follows. I don't like patching Koha installed from packages, but I don't see any other way to do this. *** koha-z3950-responder.orig 2022-02-13 17:49:11.905782437 +0000 --- koha-z3950-responder 2022-02-13 17:49:32.907771774 +0000 *************** *** 105,110 **** --- 105,111 ---- Z3950OPTS="-c ${CONFIGDIR} \ -u ${instance_user} \ + --add-item-status=k \ -p ${PIDFILE} ${daemonize} ${logging}" if ! is_z3950_running ${instancename}; then -- Inform all the troops that communications have completely broken down. --Ashleigh Brilliant
Hi, you have a good point. It seems bug 25716 [1] got stalled at 'In Discussion' status for too long. Time to fix this for good. [1] https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25716 El dom, 13 feb 2022 a las 14:09, Mark Alexander (<marka@pobox.com>) escribió:
I've been fighting with the Z3950 responder for several years now. In particular, I want get it to respond with a 952$k field that gives an item status as "Available" or "Checked out". In the past (prior to 19.11) I've had to install my own version of ByWater's Z3950 responder, and invoked it with something like this:
/usr/share/koha/bin/z3950_responder.pl --add-item-status=k tcp:@:9999
Now it seems that in recent Koha, you're supposed to start the Z3950 responder with /usr/sbin/koha-z3950-responder. But this script doesn't seem to offer any equivalent to --add-item-status=k. So when I use yaz-client to query an item, I see that 952$k is indeed missing:
952 $0 0 $1 0 $2 ddc $4 0 $6 F_HEG $7 0 $8 FICTIONA $9 910 $a VSNY $b VSNY $c FIC $d 2009-03-21 $l 0 $o F HEG $p 3VSNY00001973A $r 2020-04-09 $t 1 $w 2009-03-21 $y BK $x FSC@aR@c19990908
I've looked in the files in /etc/koha/sites/INSTANCE/z3950/config.xml, and don't see anything relevant. How do I get 952$k to appear?
-- I wish I had done some of the hard things when they were easier to do. --Ashleigh Brilliant _______________________________________________
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
-- Tomás Cohen Arazi Theke Solutions (http://theke.io) ✆ +54 9351 3513384 GPG: B2F3C15F
participants (2)
-
Mark Alexander -
Tomas Cohen Arazi