From 83cba7fe787751961c4f4c7267146b8beb0ea19e 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 Signed-off-by: Tomas Cohen Arazi --- 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 62e6c8ecb9..ede8ecb752 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -156,6 +156,8 @@ sub generate_subfield_form { $subfield_data{repeatable} = $subfieldlib->{repeatable}; $subfield_data{maxlength} = $subfieldlib->{maxlength}; $subfield_data{display_order} = $subfieldlib->{display_order}; + $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 94bc96352e..d18dcdde29 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -168,12 +168,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 %] @@ -189,17 +189,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 %] @@ -209,15 +209,15 @@ [% END %] [% ELSIF ( mv.type == 'text' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% ELSIF ( mv.type == 'textarea' ) %] [% IF mv.readonly %] - + [% ELSE %] - + [% END %] [% END %] @@ -244,7 +244,9 @@ [% IF volumes.count && op != 'saveitem' %]
Add to volume - + [% FOREACH v IN volumes %] + + [% END %]