Bugzilla – Attachment 145719 Details for
Bug 32321
006 field not correctly prepopulated in Advanced cataloging editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32321: Pre-populate material type for 006 in advanced cataloging editor
Bug-32321-Pre-populate-material-type-for-006-in-ad.patch (text/plain), 1.94 KB, created by
Marcel de Rooy
on 2023-01-27 09:00:14 UTC
(
hide
)
Description:
Bug 32321: Pre-populate material type for 006 in advanced cataloging editor
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-01-27 09:00:14 UTC
Size:
1.94 KB
patch
obsolete
>From bd53656d5ea220c581c1cf66115cb92774b7399e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 22 Nov 2022 14:05:08 +0000 >Subject: [PATCH] Bug 32321: Pre-populate material type for 006 in advanced > cataloging editor >Content-Type: text/plain; charset=utf-8 > >To test" >1 - Edit a record in advanced cataloging editor with field helpers enabled >2 - Choose a material type, not BKS, from dropdown >3 - Set the first position to something >4 - Save the record >5 - 006 shows 'BKS' >6 - Apply patch >7 - Reload >8 - Record should show correct value >9 - Edit 006 and confirm the first position correctly determines material type > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../en/includes/cateditor-widgets-marc21.inc | 20 +++++++++++++++++++ > 1 file changed, 20 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc >index 2876b9b9ee..26cadeda16 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc >@@ -214,6 +214,26 @@ require( [ 'koha-backend', 'widget', 'text-marc' ], function( KohaBackend, Widge > > return $result[0]; > }, >+ materialTypeMapping: { >+ a: 'BKS', >+ c: 'MU', >+ d: 'MU', >+ e: 'MPS', >+ f: 'MPS', >+ g: 'VM', >+ i: 'MU', >+ j: 'MU', >+ k: 'VM', >+ m: 'CF', >+ o: 'VM', >+ p: 'MX', >+ r: 'VM', >+ s: 'CR', >+ t: 'BKS', >+ }, >+ getMaterial: function () { >+ return this.materialTypeMapping[this.text.substring(0, 1)]; >+ }, > postCreate: function( node, mark ) { > this.createFromXML( 'marc21/xml/006' ); > } >-- >2.30.2
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 32321
:
144154
|
144172
| 145719