Bug 30824: (follow-up) POD
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 24 May 2022 14:29:04 +0000 (15:29 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Jun 2022 23:16:32 +0000 (20:16 -0300)
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Items.pm

index d358675..301fb51 100644 (file)
@@ -141,14 +141,18 @@ sub CartToShelf {
 Given a MARC::Record object containing an embedded item
 record and a biblionumber, create a new item record.
 
-The final optional parameter, C<$params>, expected to contain
+The final optional parameter, C<$params>, may contain
 'skip_record_index' key, which relayed down to Koha::Item/store,
 there it prevents calling of index_records,
 which takes most of the time in batch adds/deletes: index_records
 to be called later in C<additem.pl> after the whole loop.
 
+You may also optionally pass biblioitemnumber in the params hash to
+boost performance of inserts by preventing a lookup in Koha::Item.
+
 $params:
     skip_record_index => 1|0
+    biblioitemnumber => $biblioitemnumber
 
 =cut