Bugzilla – Attachment 124231 Details for
Bug 28734
Koha::Biblio->get_marc_notes should parse authorised values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28734: Parse display in $biblio->get_marc_notes
Bug-28734-Parse-display-in-biblio-getmarcnotes.patch (text/plain), 2.19 KB, created by
Katrin Fischer
on 2021-08-29 12:54:19 UTC
(
hide
)
Description:
Bug 28734: Parse display in $biblio->get_marc_notes
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-08-29 12:54:19 UTC
Size:
2.19 KB
patch
obsolete
>From 85b650f6f07bde46bd11c22f250072c59d001e7d Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Wed, 21 Jul 2021 17:01:23 +1200 >Subject: [PATCH] Bug 28734: Parse display in $biblio->get_marc_notes > >1. Go to Koha Administration, MARC bibliographic frameworks >2. Edit a framework, find tag 590, edit the $z subfield to use an >authorised value. >3. Do a catalogue search and edit a record using this framework. Edit >590$z and select an authorised value. Save the record. >4. Add the record to your cart. >5. View your cart. Click More Details. >6. Scroll down to the Notes section. Notice the authorised value code is >displayed instead of the description. >7. Apply the patch, restart services. >8. Refresh your cart. Click More Details again if you need to. >9. Scroll down to the Notes section. The description of the authorised >value should now be displayed. > >Sponsored-by: Catalyst IT > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/Biblio.pm | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 26ee7abd96..d80e3f0406 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -24,6 +24,7 @@ use URI; > use URI::Escape qw( uri_escape_utf8 ); > > use C4::Koha qw( GetNormalizedISBN ); >+use C4::XSLT qw( XSLTParse4Display ); > > use Koha::Database; > use Koha::DateUtils qw( dt_from_string ); >@@ -829,7 +830,14 @@ sub get_marc_notes { > > my %hiddenlist = map { $_ => 1 } > split( /,/, C4::Context->preference('NotesToHide')); >- foreach my $field ( $self->metadata->record->field($scope) ) { >+ my $record = $self->metadata->record; >+ >+ my $xslfile = C4::Context->preference('XSLTDetailsDisplay') || 'default'; >+ my $lang = $xslfile ? C4::Languages::getlanguage() : undef; >+ my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef; >+ XSLTParse4Display( $self->biblionumber, $record, "XSLTDetailsDisplay", 1, undef, $sysxml, $xslfile, $lang, undef ); >+ >+ foreach my $field ( $record->field($scope) ) { > my $tag = $field->tag(); > next if $hiddenlist{ $tag }; > next if $opac && $maybe_private{$tag} && !$field->indicator(1); >-- >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 28734
:
123016
|
123346
|
123349
|
124231
|
125574
|
125575
|
125634
|
125635
|
125660
|
125661
|
125662
|
125663
|
125687
|
125724
|
125725
|
126052