Squashed commit of the following:
commit
8486cd30caf879ddff93aaa5fab722838db946a1
Author: Chris Cormack <chrisc@catalyst.net.nz>
Date: Mon Feb 21 10:23:07 2011 +1300
WR76962 - Fixing typos
commit
f3ac9d9233db2b410fded112e16e54b27280af0a
Author: Chris Cormack <chrisc@catalyst.net.nz>
Date: Mon Feb 21 09:56:43 2011 +1300
WR76962 - Extending RIS support to handle URI
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
# Modified 2008 by BibLibre for Koha
# Modified 2008 by BibLibre for Koha
+# Modified 2011 by Catalyst
#
# This file is part of Koha.
#
#
# This file is part of Koha.
#
else { ## assume marc21
&print_abstract($record->field('520'));
}
else { ## assume marc21
&print_abstract($record->field('520'));
}
+
+ # 856u has the URI
+ if ($record->field('856')){
+ print_uri($record->field('856'));
+ }
## end RIS dataset
print "ER - \r\n";
## end RIS dataset
print "ER - \r\n";
+###
+# print_uri() prints info from 856 u
+###
+sub print_uri {
+ my $f856 = shift;
+
+ if (my $uri = $f856->subfield('u')){
+ print "UR - ", charconv($uri), "\n";
+ }
+}
+
##********************************************************************
## print_loc_callno(): gets info from MARC field 050
## Arguments: field (050)
##********************************************************************
## print_loc_callno(): gets info from MARC field 050
## Arguments: field (050)
##********************************************************************
## charconv(): converts to a different charset based on a global var
## Arguments: string
##********************************************************************
## charconv(): converts to a different charset based on a global var
## Arguments: string