[Koha-bugs] [Bug 21979] Add option to SIP2 config to send arbitrary item field in CR instead of collection code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 23 11:37:49 CET 2020


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org

--- Comment #7 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Kyle, I did not test but I see:

+            $resp .= maybe_add( FID_COLLECTION_CODE,     
$item->collection_code,     $server );

then:

+            if ( my $CR = $server->{account}->{cr_item_field} ) {
+                $resp .= maybe_add( FID_COLLECTION_CODE, $item->{$CR} );
+            } else {
+                $resp .= maybe_add( FID_COLLECTION_CODE,
$item->collection_code );
+            }

Is that correct? (twice maybe_add with FID_COLLECTION_CODE)

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


More information about the Koha-bugs mailing list