From b420315235367b5dc45d1b6e0a516d9d9ae39010 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 e55d926abc..e0291c32c6 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 cf2e442693..3ad5bb6bb7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -161,12 +161,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 %] @@ -182,17 +182,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 %] @@ -202,15 +202,15 @@ [% END %] [% ELSIF ( mv.type == 'text' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% ELSIF ( mv.type == 'textarea' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% END %] @@ -237,7 +237,9 @@ [% IF volumes.count && op != 'saveitem' %]
Add to volume - + [% FOREACH v IN volumes %] + + [% END %]