Bugzilla – Attachment 171975 Details for
Bug 28639
Embed see-from headings (from authorities) into bibliographic records at OAI repository level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28639: (follow-up) Changes method to embed see-from headings
Bug-28639-follow-up-Changes-method-to-embed-see-fr.patch (text/plain), 1.50 KB, created by
Thibaud Guillot (thibaud_g)
on 2024-09-26 14:16:05 UTC
(
hide
)
Description:
Bug 28639: (follow-up) Changes method to embed see-from headings
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2024-09-26 14:16:05 UTC
Size:
1.50 KB
patch
obsolete
>From 796dec94f0549462e9a14c3ecfac82914ad55208 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Wed, 28 Dec 2022 10:00:47 +0100 >Subject: [PATCH] Bug 28639: (follow-up) Changes method to embed see-from > headings > >To have same code syntax call of Koha::RecordProcessor class >--- > Koha/OAI/Server/Repository.pm | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/Koha/OAI/Server/Repository.pm b/Koha/OAI/Server/Repository.pm >index 4acd46d3196..3bd37f17995 100644 >--- a/Koha/OAI/Server/Repository.pm >+++ b/Koha/OAI/Server/Repository.pm >@@ -40,7 +40,6 @@ use C4::Biblio qw( GetFrameworkCode ); > use C4::Charset qw( StripNonXmlChars ); > use Koha::XSLT::Base; > use Koha::Biblios; >-use Koha::Filter::MARC::EmbedSeeFromHeadings; > > use MARC::Record; > >@@ -196,7 +195,14 @@ sub get_biblio_marcxml { > $record = $biblio->metadata->record_strip_nonxml( { embed_items => $with_items, opac => 1 } ); > } > if ($record) { >- Koha::Filter::MARC::EmbedSeeFromHeadings->filter($record) if $embedseefromheadings; >+ if ( $embedseefromheadings ) { >+ my $record_processor = Koha::RecordProcessor->new( >+ { >+ filters => [ 'EmbedSeeFromHeadings' ], >+ } >+ ); >+ $record_processor->process($record); >+ } > my $rules = C4::Context->yaml_preference('OpacHiddenItems') // {}; > if ( $biblio->hidden_in_opac( { rules => $rules } ) ) { > return; >-- >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 28639
:
122500
|
142296
|
142297
|
144821
|
144822
|
144857
|
171973
|
171974
| 171975