Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
koha-docker
Commits
d42d4746
Commit
d42d4746
authored
Jun 20, 2018
by
Petter Goksøyr Åsen
Browse files
ncip: fix syntax error
parent
a79ea45d
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/NCIPServer/lib/NCIP/ILS/Koha.pm
View file @
d42d4746
...
...
@@ -182,13 +182,13 @@ sub itemshipped {
my
$item
=
$items
[
0
];
my
@identifier_types
=
split
("
;
",
$request
->
{
$message
}
->
{
ItemId
}
->
{
ItemIdentifierType
});
my
@identifiers
=
split
("
;
",
$request
->
{
$message
}
->
{
ItemId
}
->
{
ItemIdentifierValue
});
for
(
$i
=
0
;
$i
<
@identifier_types
;
$i
++
)
{
for
(
my
$i
=
0
;
$i
<
@identifier_types
;
$i
++
)
{
my
$id_type
=
@identifier_types
[
$i
];
my
$id
=
@identifiers
[
$i
];
if
(
$id_type
eq
"
Barcode
")
{
$saved_request
->
illrequestattributes
->
find
({
type
=>
'
ItemIdentifierType
'
})
->
value
('
Barcode
')
->
store
();
$saved_request
->
illrequestattributes
->
find
({
type
=>
'
ItemIdentifierValue
'
})
->
value
(
$id
)
->
store
();
$item
->
itemnotes
("
ILL barcode:
"
.
$
barcode
);
$item
->
itemnotes
("
ILL barcode:
"
.
$
id
);
}
if
(
$id_type
eq
"
RFID
")
{
$saved_request
->
illrequestattributes
->
find_or_create
({
type
=>
'
RFID
'
})
->
value
(
$id
)
->
store
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment