From 59419db7e1f672133c046f4207913694dccf5e15 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Fri, 1 Dec 2023 16:40:21 +0000 Subject: [PATCH] Bug 35471: List child frameworks on MARC modification screen 1. Navigate to Administration -> MARC bibliographic framework 2. Select the parent framework you added in previous patch 3. Observe child framework being listed Sponsored-by: Hypernova Oy --- admin/biblio_framework.pl | 6 ++++++ .../prog/en/modules/admin/biblio_framework.tt | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/admin/biblio_framework.pl b/admin/biblio_framework.pl index 2e4ff8dd69..cc6bb7ece8 100755 --- a/admin/biblio_framework.pl +++ b/admin/biblio_framework.pl @@ -46,10 +46,16 @@ my $dbh = C4::Context->dbh; if ( $op eq 'add_form' ) { my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } ); my $framework; + my $child_frameworks; if ($frameworkcode) { $framework = Koha::BiblioFrameworks->find($frameworkcode); + $child_frameworks = Koha::BiblioFrameworks->search( + { parent_frameworkcode => $frameworkcode }, + { order_by => ['frameworktext'], } + ); } $template->param( + child_frameworks => $child_frameworks, framework => $framework, frameworks => $frameworks ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt index 3e9bdf8fe7..8b47396a8c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -153,6 +153,16 @@ + [% IF child_frameworks && child_frameworks.count > 0 %] +
+ + +
+ [% END %]
-- 2.34.1