From e46ef7ee23ee087aa51b16f10982f7b80aafb119 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 cde3d92f8d..41e7aa8368 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -159,6 +159,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 347099a2da..6cfbcb2ca2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -160,12 +160,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 %] @@ -181,17 +181,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 %] @@ -201,15 +201,15 @@ [% END %] [% ELSIF ( mv.type == 'text' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% ELSIF ( mv.type == 'textarea' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% END %] @@ -236,7 +236,9 @@ [% IF volumes.count && op != 'saveitem' %]
Add to volume - + [% FOREACH v IN volumes %] + + [% END %]