Changeset 28803
- Timestamp:
- 2014-01-30T15:14:48+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/MARCXMLPlugin.pm
r28783 r28803 81 81 'PluginObj' => $self, 82 82 'Namespaces' => 1, # strip out namespaces 83 'Handlers' => {'Char' => \& ReadXMLFile::Char,83 'Handlers' => {'Char' => \&Char, 84 84 'XMLDecl' => \&ReadXMLFile::XMLDecl, 85 85 'Entity' => \&ReadXMLFile::Entity, … … 157 157 } 158 158 159 160 sub Char { 161 # ReadXMLPlugin currently has 'use bytes' here, apparently to sort out 162 # an encoding issue. Possible that the time that 'use bytes' was 163 # added in (to fix a problem) our understanding of Unicode in Perl 164 # wasn't completely correct 165 166 # Trialing out this new version (without 'use bytes') here for MarcXML data 167 168 $_[0]->{'Text'} .= $_[1]; 169 return undef; 170 } 171 159 172 # Called for DOCTYPE declarations - use die to bail out if this doctype 160 173 # is not meant for this plugin … … 319 332 my $tmp_marcxml_filename = &util::get_tmp_filename("xml"); 320 333 if (open (XMLOUT,">$tmp_marcxml_filename")) { 334 binmode(XMLOUT,":utf8"); 321 335 322 336 print XMLOUT "<?xml-stylesheet type=\"text/xsl\" href=\"MARC21slim2English.xsl\"?>\n";
Note:
See TracChangeset
for help on using the changeset viewer.