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

Alexander Wagner <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Alexander Wagner <[email protected]> ---
I used the following script based on the `sip_cli_emulator` to test SIP
sucessfully:

```
#!/bin/bash
export host=127.0.0.1
export port=6001
export sipuser=SIP-HH1
export sippass=<the_sip_users_koha_password>
export library=DE-H253
export patron=<my_patron_barcode>
export item=<my_item_barcode>
# Note that on the Linux shell we should use CR to avoid clutter in
# the return statements
export terminator=CR

for mode in 'checkout' 'renew' 'checkin'; do
    echo "------------------------"
    echo "$mode:  $item to $patron"
    /usr/share/koha/bin/sip_cli_emulator.pl -m $mode -a $host -p $port -su
$sipuser -sp $sippass -l $library -t $terminator --patron $patron --item $item
    sleep 5
done
```

which works fine for the operations checkout, renew, and checkin as defined. My
SIP users get `circulation` permissions and I cross checked that they can log
in to the OPAC.

My SIP patrons are defined in Koha like:

 contactname: ""
 surname: "Terminal 1"
 firstname: "Self Service Hamburg"
 dateexpiry: "2099-12-31"
 address2: "System DESY"
 userid: "SIP-HH1"
 cardnumber: "SIP-HH1"
 categorycode: "S"
 password: "sectret1"
 branchcode: "DE-H253"
 dateenrolled: "2024-01-01"

(Koha 24.05.01)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to