Bugzilla – Attachment 5233 Details for
Bug 5780
RIS format export not exporting URI field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
follow-up patch that addresses the multiple 856 issue raised during review of the original patch
0002-bug-5780-followup-RIS-export-now-includes-all-URLs.patch (text/plain), 1.44 KB, created by
Galen Charlton
on 2011-08-30 19:40:24 UTC
(
hide
)
Description:
follow-up patch that addresses the multiple 856 issue raised during review of the original patch
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2011-08-30 19:40:24 UTC
Size:
1.44 KB
patch
obsolete
>From b6c11101bd55427992562801b24adfddce45f28f Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Tue, 30 Aug 2011 15:27:27 -0400 >Subject: [PATCH 2/2] bug 5780 followup: RIS export now includes all URLs > >Also cleanup whitespace and adjust the line ending per >bug 6769. > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >--- > C4/Ris.pm | 19 +++++++++++-------- > 1 files changed, 11 insertions(+), 8 deletions(-) > >diff --git a/C4/Ris.pm b/C4/Ris.pm >index f94114f..562c25b 100644 >--- a/C4/Ris.pm >+++ b/C4/Ris.pm >@@ -40,6 +40,7 @@ package C4::Ris; > > # Modified 2008 by BibLibre for Koha > # Modified 2011 by Catalyst >+# Modified 2011 by Equinox Software, Inc. > # > # This file is part of Koha. > # >@@ -276,10 +277,10 @@ sub marc2ris { > &print_abstract($record->field('520')); > } > >- # 856u has the URI >- if ($record->field('856')){ >- print_uri($record->field('856')); >- } >+ # 856u has the URI >+ if ($record->field('856')) { >+ print_uri($record->field('856')); >+ } > > ## end RIS dataset > print "ER - \r\n"; >@@ -592,10 +593,12 @@ sub print_issn { > # print_uri() prints info from 856 u > ### > sub print_uri { >- my $f856 = shift; >- >- if (my $uri = $f856->subfield('u')){ >- print "UR - ", charconv($uri), "\n"; >+ my @f856s = @_; >+ >+ foreach my $f856 (@f856s) { >+ if (my $uri = $f856->subfield('u')) { >+ print "UR - ", charconv($uri), "\r\n"; >+ } > } > } > >-- >1.7.4.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 5780
:
3186
|
5232
| 5233