Bugzilla – Attachment 159492 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: Add child frameworks to cataloguing toolbar's new child record button
Bug-35471-Add-child-frameworks-to-cataloguing-tool.patch (text/plain), 2.53 KB, created by
Lari Taskula
on 2023-12-01 23:07:37 UTC
(
hide
)
Description:
Bug 35471: Add child frameworks to cataloguing toolbar's new child record button
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2023-12-01 23:07:37 UTC
Size:
2.53 KB
patch
obsolete
>From 47e0d021ece1f29e7a3ebabbd152f02954747c5b Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Fri, 1 Dec 2023 22:41:52 +0000 >Subject: [PATCH] Bug 35471: Add child frameworks to cataloguing toolbar's new > child record button > >To test: >Administration -> MARC bibliographic framework >1. Create framework with frameworkcode "A" >2. Create framework with frameworkcode "A-child" >3. Set "A" as "A-child" 's parent framework > >Record view >1. Save record with framework "A" >2. Navigate to a record >3. Click "+ New", a drop-down opens >4. Click "New child record" >5. After add biblio form opens, click "Settings" >6. Observe "A-child" framework automatically selected > >Sponsored-by: Hypernova Oy >--- > .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index 93818826d2..64846a791c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -22,7 +22,17 @@ > <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | uri %]&analyze=1">Analyze items</a></li> > [% END %] > [% IF CAN_user_editcatalogue_edit_catalogue && ! EasyAnalyticalRecords %] >+ [% child_frameworks = Frameworks.GetChildren(frameworkcode) %] >+ [% IF ! child_frameworks || child_frameworks && child_frameworks.size == 0 %] > <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber | uri %]">New child record</a></li> >+ [% ELSIF child_frameworks.size == 1 %] >+ <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber | uri %]&frameworkcode=[% child_frameworks.0.frameworkcode %]">New child record</a></li> >+ [% ELSE %] >+ <li class="dropdown-header">New child record using framework</li> >+ [% FOREACH child IN child_frameworks %] >+ <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?parentbiblionumber=[% biblionumber | uri %]&frameworkcode=[% child.frameworkcode %]">[% child.frameworktext %]</a></li> >+ [% END %] >+ [% END %] > [% END %] > [% IF Koha.Preference('CatalogConcerns') %] > <li><a id="newconcern" role="button" href="#" data-toggle="modal" data-target="#addConcernModal">New catalog concern</a></li> >-- >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