Bugzilla – Attachment 87580 Details for
Bug 22075
Encoding problem with RIS export
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22075: Fix encoding problem with RIS export in OPAC
Bug-22075-Fix-encoding-problem-with-RIS-export-in-.patch (text/plain), 1.32 KB, created by
Martin Renvoize (ashimema)
on 2019-04-09 07:47:21 UTC
(
hide
)
Description:
Bug 22075: Fix encoding problem with RIS export in OPAC
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-09 07:47:21 UTC
Size:
1.32 KB
patch
obsolete
>From c05e299009ba9bea9c54a72d981805a8338cc0b3 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sun, 7 Apr 2019 16:25:28 +0000 >Subject: [PATCH] Bug 22075: Fix encoding problem with RIS export in OPAC > >When exporting a record with diacritics in RIS >format from the detail page in OPAC the encoding >is not correct and the diacritics appear broken. > >This patch fixes it. > >To test: >- Find or create a record with some special > chars in your OPAC >- Go to the detail page >- Save as > RIS >- Verify the diacritics are broken in an editor >- Apply patch >- Repeat and verify everything now displays correctly > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > opac/opac-export.pl | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/opac/opac-export.pl b/opac/opac-export.pl >index a992d463ba..402d1fee0d 100755 >--- a/opac/opac-export.pl >+++ b/opac/opac-export.pl >@@ -144,6 +144,13 @@ else { > -charset => 'utf-8', > -attachment => "bib-$biblionumber.txt" > ); >+ } >+ elsif ( $format eq 'ris' ) { >+ print $query->header( >+ -type => 'text/plain', >+ -charset => 'utf-8', >+ -attachment => "bib-$biblionumber.$format" >+ ); > } else { > binmode STDOUT, ':encoding(UTF-8)'; > print $query->header( >-- >2.20.1
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 22075
:
87484
| 87580