From e9da2503278025434d60ab4598c3a7acf56d8b8e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Jun 2023 11:51:17 +0200 Subject: [PATCH] Bug 33951: Set normalized_oclc in opac/opac-readingrecord.pl normalized_oclc is used in the template to build the link to syndetics, but it's not passed from the controller. Is this patch correct? Is syndetics broken on this page? Should we remove it or keep it? Is oclc parameter in the URL unecessary and should be removed? Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 8e93668796fd579e4dcbbbdf01b316ed044bd5bc) Signed-off-by: Martin Renvoize (cherry picked from commit 9f0a6d53df111ed746a5b558a1867f42c9f2189c) Signed-off-by: Matt Blenkinsop --- opac/opac-readingrecord.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl index ec0740c4be..ed0ee9e160 100755 --- a/opac/opac-readingrecord.pl +++ b/opac/opac-readingrecord.pl @@ -101,7 +101,9 @@ foreach my $issue ( @{$issues} ) { MARC::Record::new_from_xml( $marcxml, 'UTF-8', C4::Context->preference('marcflavour') ); $issue->{normalized_upc} = GetNormalizedUPC( $marc_rec, C4::Context->preference('marcflavour') ); + $issue->{normalized_oclc} = GetNormalizedOCLCNumber($marc_rec, C4::Context->preference('marcflavour')); } + } # My Summary HTML if ($opac_summary_html) { -- 2.39.5