Bugzilla – Attachment 101378 Details for
Bug 21708
Editing a record moves field 999 to first in the marcxml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21708: Sort MARC fields in TransformHtmlToMarc
Bug-21708-Sort-MARC-fields-in-TransformHtmlToMarc.patch (text/plain), 1.15 KB, created by
Katrin Fischer
on 2020-03-22 14:19:13 UTC
(
hide
)
Description:
Bug 21708: Sort MARC fields in TransformHtmlToMarc
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-03-22 14:19:13 UTC
Size:
1.15 KB
patch
obsolete
>From 8cc2ca7fe11ce5437f574fef094b47da4af8fbb6 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 10 Mar 2020 15:11:07 +0000 >Subject: [PATCH] Bug 21708: Sort MARC fields in TransformHtmlToMarc > >Instead of pushing 999 in the front :) > >Test plan: >Do not yet apply this patch. >Edit a record. Save. And open MARC view/view plain on opac-detail. >Verify that the biblionumber field (MARC21 999) follows leader. >Apply this patch. Restart Plack. >Edit a record. Save. And open MARC view/view plain on opac-detail. >Verify that the biblionumber field is in right position. >Run t/db_dependent/Biblio/TransformHtmlToMarc.t. Should pass now. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Test pass, correct tag order. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > C4/Biblio.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 60bdc8980a..2458bd71b8 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -2359,6 +2359,7 @@ sub TransformHtmlToMarc { > } > } > >+ @fields = sort { $a->tag() cmp $b->tag() } @fields; > $record->append_fields(@fields); > return $record; > } >-- >2.11.0
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 21708
:
83365
|
100469
|
100556
|
100557
|
100558
|
101334
|
101335
|
101377
| 101378