From 8c372c979ca6a5d59ce1e63833bf3cf0676936a6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 15 May 2020 14:40:16 -0400 Subject: [PATCH] Bug 24857: Copy the volume to the item's enumchron Signed-off-by: Rebecca Coert --- cataloguing/additem.pl | 2 ++ .../prog/en/modules/cataloguing/additem.tt | 26 ++++++++++--------- .../prog/js/cataloging_additem.js | 7 +++++ 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 15ab618734..2691fb7aa2 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -158,6 +158,8 @@ sub generate_subfield_form { $subfield_data{important} = $subfieldlib->{important}; $subfield_data{repeatable} = $subfieldlib->{repeatable}; $subfield_data{maxlength} = $subfieldlib->{maxlength}; + $subfield_data{kohafield} = $subfieldlib->{kohafield} || 'unlinked'; + $subfield_data{kohafield} =~ s/\./-/g; if ( ! defined( $value ) || $value eq '') { $value = $subfieldlib->{defaultvalue}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index c959d83d58..c008542096 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -158,12 +158,12 @@ [% SET mv = ite.marc_value %] [% IF ( mv.type == 'hidden' ) %] - + [% ELSIF ( mv.type == 'select' ) %] [% IF ( mv.readonly || ite.IS_RETURN_CLAIM ) %] - [% ELSE %] - [% END %] [% FOREACH aval IN mv.values %] [% IF aval == mv.default %] @@ -179,17 +179,17 @@ [% ELSIF ( mv.type == 'text_auth' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %] ... [% END %] [% ELSIF ( mv.type == 'text_plugin' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% IF ( mv.nopopup ) %] ... [% ELSE %] @@ -199,15 +199,15 @@ [% END %] [% ELSIF ( mv.type == 'text' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% ELSIF ( mv.type == 'textarea' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% END %] @@ -234,7 +234,9 @@ [% IF volumes.count && op != 'saveitem' %]
Add to volume - + [% FOREACH v IN volumes %] + + [% END %]