Bugzilla – Attachment 90220 Details for
Bug 20551
Add option for including deleted records in export_records.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20551: Rename "marcflavour" field to "schema"
Bug-20551-Rename-marcflavour-field-to-schema.patch (text/plain), 1.66 KB, created by
David Gustafsson
on 2019-05-31 10:42:29 UTC
(
hide
)
Description:
Bug 20551: Rename "marcflavour" field to "schema"
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2019-05-31 10:42:29 UTC
Size:
1.66 KB
patch
obsolete
>From 099b5eb4c92ce77314d77d28e93c0526282a799f Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Fri, 31 May 2019 12:41:41 +0200 >Subject: [PATCH] Bug 20551: Rename "marcflavour" field to "schema" > >--- > Koha/Exporter/Record.pm | 2 +- > t/db_dependent/Exporter/Record.t | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Exporter/Record.pm b/Koha/Exporter/Record.pm >index 10ddd8ce68..9b50f68482 100644 >--- a/Koha/Exporter/Record.pm >+++ b/Koha/Exporter/Record.pm >@@ -123,7 +123,7 @@ sub _get_deleted_biblio_for_export { > my $biblio_metadata = $resultset->find({ > 'biblionumber' => $biblionumber, > 'format' => 'marcxml', >- 'marcflavour' => $marc_flavour >+ 'schema' => $marc_flavour > }); > my $marc_xml = $biblio_metadata->metadata; > $marc_xml = StripNonXmlChars($marc_xml); >diff --git a/t/db_dependent/Exporter/Record.t b/t/db_dependent/Exporter/Record.t >index f769a3d48a..25d06e179d 100644 >--- a/t/db_dependent/Exporter/Record.t >+++ b/t/db_dependent/Exporter/Record.t >@@ -68,7 +68,7 @@ my ($deleted_biblionumber) = AddBiblio($deleted_biblio, ''); > DelBiblio($deleted_biblionumber); > > my $bad_biblio = Koha::Biblio->new()->store(); >-Koha::Biblio::Metadata->new( { biblionumber => $bad_biblio->id, format => 'marcxml', metadata => 'something wrong', marcflavour => C4::Context->preference('marcflavour') } )->store(); >+Koha::Biblio::Metadata->new( { biblionumber => $bad_biblio->id, format => 'marcxml', metadata => 'something wrong', schema => C4::Context->preference('marcflavour') } )->store(); > my $bad_biblionumber = $bad_biblio->id; > > my $builder = t::lib::TestBuilder->new; >-- >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 20551
:
73916
|
73923
|
75113
|
82843
|
82914
|
82918
|
90184
|
90190
|
90220
|
93619
|
93620
|
93621
|
105403
|
116408
|
116409
|
116410
|
116411
|
123099
|
123101
|
123102
|
125211
|
125212
|
125213
|
125214
|
125215
|
125216
|
128895
|
128896
|
128897
|
128898
|
128899
|
128900
|
132936
|
132937
|
176623
|
176624
|
176625
|
176626
|
176627
|
176628
|
176629
|
176630
|
176631
|
177536