Bugzilla – Attachment 159570 Details for
Bug 35471
Automatically select child MARC framework when adding child records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35471: List child frameworks on MARC modification screen
Bug-35471-List-child-frameworks-on-MARC-modificati.patch (text/plain), 2.44 KB, created by
Lari Taskula
on 2023-12-05 00:58:53 UTC
(
hide
)
Description:
Bug 35471: List child frameworks on MARC modification screen
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2023-12-05 00:58:53 UTC
Size:
2.44 KB
patch
obsolete
>From 59419db7e1f672133c046f4207913694dccf5e15 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >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 @@ > </li> > </ol> > </fieldset> >+ [% IF child_frameworks && child_frameworks.count > 0 %] >+ <fieldset class="rows"> >+ <label>Child frameworks: </label> >+ <ul style="display:inline-block"> >+ [% FOREACH child IN child_frameworks %] >+ <li><a href="/cgi-bin/admin/biblio_framework.pl?op=add_form&frameworkcode=[% child.frameworkcode | uri %]">[% child.frameworktext | html %]</a></li> >+ [% END %] >+ </ul> >+ </fieldset> >+ [% END %] > <fieldset class="action"> > <input type="submit" value="Submit" class="btn btn-primary" /> > </fieldset> >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35471
:
159486
|
159487
|
159488
|
159489
|
159490
|
159491
|
159492
|
159493
|
159494
|
159495
|
159496
|
159497
|
159498
|
159499
|
159500
|
159567
|
159568
|
159569
| 159570 |
159571
|
159572
|
159573
|
159884