[Koha-bugs] [Bug 14512] Add support for AV field to Koha's SIP2 Server

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 30 00:16:17 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14512

Jesse Weaver <jweaver at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jweaver at bywatersolutions.co
                   |                            |m

--- Comment #10 from Jesse Weaver <jweaver at bywatersolutions.com> ---
Detailed notes:

SIP setup:
  a) Create a Koha patron with 'circulate' permissions and a username/password
matching a <login> in SIPconfig.xml (in the case of a git install, username/pw
term1/term1 works).
  b) Start the SIP server (adjusting paths as needed):
    perl C4/SIP/SIPserver.pm ~/l/koha/etc/SIPconfig.xml

1) Apply this patch
2) Find a patron with outstanding fines
  JW: On my system this was cardnumber 23529000120056.
3) Run a patron information request using misc/sip_cli_emulator.pl using the
new -s option with the value "   Y      "
  JW: $ perl misc/sip_cli_emulator.pl -a localhost -p 6001 -su term1 -sp term1
-l term1 -t CR -m patron_information --patron 23529000120056 -s "   Y      " 
4) Note there is an AV field for each fee containing the description and amount
  JW: Confirmed for multiple fines (in output of above command):
    ...|AVHold waiting too long 292 5.00|AVPatron sucks 7.00|...
  JW: Note the "AVHold waiting too long 292 5.00" and "AVPatron sucks 7.00"
parts of the response.
5) Edit your sip config, add an av_field_template parameter to the login you
are using such as
    av_field_template="TEST [% accountline.description %] [%
accountline.amountoutstanding | format('%.2f') %]"
  JW: The relevant line in SIPconfig.xml now looks like (I used %.3f for the
hell of it):
    <login id="term1"  password="term1" delimiter="|" error-detect="enabled"
institution="CPL" encoding="ascii" checked_in_ok="1" av_field_template="[%
accountline.description %] [% accountline.amountoutstanding | format('%.3f')
%]" />
6) Restart your SIP server
7) Repeat the patron information request
8) Note your custom AV field is being used!^
  JW: Confirmed.
    ...|AVHold waiting too long 292 5.000|AVPatron sucks 7.000|...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list