KOHA
SIP2: Revision 24
SIP2_3M_Standard_Interchange_Protocol_2.10.pdf



Koha SIP2 server

SIPconfig.xml

Dodati korisničke račune za svaki selfcheck jedan

<accounts>
      <login id="sc1kat"  password="**password**" delimiter="|" error-detect="enabled" institution="FFZG" />
...

I instituciju

<institutions>
    <institution id="FFZG" implementation="ILS" parms="">
          <policy checkin="true" renewal="true" checkout="true"
                  status_update="false" offline="false"
                  timeout="100"
                  retries="5" />
    </institution>

start server

run from lib directory with

perl -IC4/SIP -MILS C4/SIP/SIPServer.pm /etc/koha/SIPconfig.xml

http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2362

Skripta za pokretanje

cd /home/koha
./start-sip2.sh

3M SIP emulator

3M self check emulator kako iskonfigurirati
0d 00 ne radi
0d 0A radi

Popravak za taj problem sa SIP2 server strane

Putty tunnel

putty-sip2-config.png

Konfiguracija

C:\Program Files\3M Library Systems\3M SIP2 Development Kit\SC_Emulator

Settings.sc

Jedina stvarno bitna promjena je:

[COM]
com_type = sockets

[TCP/IP]
ip_address = 127.0.0.1
host_name =
tcp_port = 6001

KOHA lokalne promjene

u našem git-u

BUGS

Pokretanje pod wine-om

dpavlin@klin:/virtual/win$ sudo mount kvm-winxp.img /mnt/usb/ -o loop,offset=`expr 63 \* 512`,uid=dpavlin -t ntfs
dpavlin@klin:/virtual/win$ wine /mnt/usb/Program\ Files/3M\ Library\ Systems/3M\ SIP2\ Development\ Kit/Program/SCEmul.exe

Skripta za pokretanje: SC_Emulator.sh - provjerava da li je SIP server startan i povezuje se na njega

Logovi

syslog

SIP server zapisuje transakcije u syslog sa local6 facility:

dpavlin@koha:/var/log$ grep LOG_SIP /usr/share/koha/lib/C4/SIP/SIPServer.pm 
use constant LOG_SIP => "local6"; # Local alias for the logging facility

Da bi preusmjerili logiranje u poseban file treba dodati slijedeće u /etc/syslog.conf:

local6.*        -/var/log/sip2.log

Analiza

Broj različitih SIP2 poruka u našoj implementaciji

dpavlin@klin:/srv/ps-trend/sip.2009-12-08$ grep MSG * | cut -d: -f6 | cut -d\' -f2 | cut -c-2 | sort | uniq -c
   5742 09
   2807 10
   6586 11
   3293 12
   4166 35
   2083 36
   4172 63
   2086 64
    796 93
    398 94
   2647 98
   5294 99