Bugzilla – Attachment 186054 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.55 KB, created by
OpenFifth Sandboxes
on 2025-09-02 14:45:44 UTC
(
hide
)
Description:
Bug 28639: (follow-up) Changes method to embed see-from headings
Filename:
MIME Type:
Creator:
OpenFifth Sandboxes
Created:
2025-09-02 14:45:44 UTC
Size:
1.55 KB
patch
obsolete
>From aba861eec9261bc274fa914ea56e4751ca119d0d 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 > >Signed-off-by: Mathieu Saby <mathsabypro@gmail.com> >--- > 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 9a025a3f00..0dd08c37ac 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; > >@@ -212,7 +211,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.39.5
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
|
186023
|
186024
|
186025
|
186026
|
186052
|
186053
| 186054 |
186055