Signed-off-by: Thibault Keromnès <thibault.keromnes@univ-paris8.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
List of subfields to prefill (value of syspref SubfieldsToUseWhenPrefill)
+If empty all subfields will be prefilled. For none, you can pass an array with a single false value.
+
=item subfields_to_allow
List of subfields to allow (value of syspref SubfieldsToAllowForRestrictedBatchmod or SubfieldsToAllowForRestrictedEditing)
my @subfields_to_prefill;
if ( $nextop eq 'additem' && $op ne 'dupeitem' && $prefillitem ) {
@subfields_to_prefill = split(' ', C4::Context->preference('SubfieldsToUseWhenPrefill'));
- # Setting to 1 element if SubfieldsToUseWhenPrefill is empty to prevent all the subfields to be prefilled
- @subfields_to_prefill = ("") unless @subfields_to_prefill;
}
# Getting list of subfields to keep when restricted editing is enabled