Bug 17452 - Checking in item at remote location via SIP does not trigger branch transfer
Summary: Checking in item at remote location via SIP does not trigger branch transfer
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: SIP2 (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-14 20:16 UTC by Barton Chittenden
Modified: 2017-12-07 22:16 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barton Chittenden 2016-10-14 20:16:57 UTC
I'm using the following for illustration:

Item: BARCODE
User: USER
Homebranch: HUNTSMAN
SIP check in branch RICHFIELD

Steps to re-create:

Check item with barcode BARCODE out from HUNTSMAN.

Then simulate the check in at RICHMOND using sip_cli_emulator.pl:

/usr/share/koha/bin/sip_cli_emulator.pl --host HOSTNAME --port PORT --sip_user sip_techlogic --sip_pass ********** --terminator CR --location RICHFIELD --patron USER --password ********** --item BARCODE --message checkin

If you then check the database, you will the item information as

items.homebranch = HUNTSMAN
items.holdingbranch = RICHFIELD

and no branch transfer is created for the item.

The logs look like this:

INPUT MSG: '9300CNsip_techlogic|CO**********|CPRICHFIELD'
Successful login/auth for 'sip_techlogic' of 'RICHFIELD'
OUTPUT MSG: '941'
read_SIP_packet, INPUT MSG: '09N20161014    13105520161014    131055APRICHFIELD|AORICHFIELD|ABBARCODE|AC**********|BIN'
INPUT MSG: '09N20161014    13105520161014    131055APRICHFIELD|AORICHFIELD|ABBARCODE|AC**********|BIN'
OUTPUT MSG: '101YNY20161014    131056AORICHFIELD|ABBARCODE|AQHUNTSMAN|AJDistracted :|AAUSER|CS302 J1636D|CV04|'
read_SIP_packet input undefined, end of input.
raw_transport: shutting down

The sip response

101YNY20161014    131056AORICHFIELD|ABBARCODE|AQHUNTSMAN|AJDistracted :|AAUSER|CS302 J1636D|CV04|'

Corresponds to

---
command_name: Checkin Response
fields:
  - Header:
      - Command ID: 10
      - OK: 1
      - Resensitize: Y
      - Magnetic media: N
      - Alert: Y
      - Transaction Year: 2016
      - Transaction Month: 10
      - Transaction Day: 14
      - Transaction Timezone: ''
      - Transaction Hour: 13
      - Transaction Minute: 10
      - Transaction Second: 56
      - Institution id: AORICHFIELD
  - Item identifier: ABBARCODE
  - Permanent location: AQHUNTSMAN
  - Title identifier: 'AJDistracted :'
  - Sort bin: AAUSER
  - Patron identifier: CS302 J1636D
  - Fixed width 1:
      - Media type: CV0
      - Item properties: 4
  - Screen message: "'"
Comment 1 Barton Chittenden 2017-01-06 14:03:51 UTC
This was happening because AutomaticItemReturn was not enabled. Closing.