| 1 |
Revision history for Perl extension MARC::Record. |
| 2 |
|
| 3 |
2.0.7 Tue May 23 20:41:13 EDT 2017 |
| 4 |
[FIXES] |
| 5 |
- RT#108123: clean up MANIFEST.SKIP |
| 6 |
- GH#1: marcdump now prints warnings (Johann Rolschewski) |
| 7 |
- remove a reference to SourceForge |
| 8 |
- fix a reference to the per4lib mailing list |
| 9 |
|
| 10 |
2.0.6 Tue Oct 22 16:17:06 UTC 2013 |
| 11 |
[ENHANCEMENTS] |
| 12 |
- MARC::Field->as_string() now accepts an optional second |
| 13 |
parameter to specify the delimiter to use between |
| 14 |
subfields. (Tomas Cohen Arazi) |
| 15 |
- MARC::Field->delete_subfield() can now accept a regexp |
| 16 |
to specify the subfields to remove. For example, to |
| 17 |
remove all numeric subfields, one can say: |
| 18 |
|
| 19 |
$field->delete_subfield(code => qr/\d/); |
| 20 |
|
| 21 |
(Jason Stephenson) |
| 22 |
[FIXES] |
| 23 |
- the warnings pragma is now used throughout MARC::Record |
| 24 |
- $field->as_string('0') now returns the contents of |
| 25 |
subfield $0 rather than the contents of all of the |
| 26 |
subfields in the field. |
| 27 |
- RT#88421: add newline after printing warnings |
| 28 |
(Jason Stephenson) |
| 29 |
- RT#85804: fix spelling glitch (Gregor Herrmann) |
| 30 |
|
| 31 |
2.0.5 Mon Feb 11 20:39:10 PST 2013 |
| 32 |
- fix use of qw(...) in test case so that module passes |
| 33 |
tests with Perl 5.17.x. |
| 34 |
|
| 35 |
2.0.4 Sat Feb 9 19:01:47 PST 2013 |
| 36 |
[ENHANCEMENTS] |
| 37 |
- add MARC::Field->set_indicator($indpos, $indval), a mutator |
| 38 |
for indicators |
| 39 |
- add MARC::Field->set_tag to allow tags to be renamed |
| 40 |
(Robin Sheat) |
| 41 |
- delete_subfield(), if given a single subfield label as its |
| 42 |
argument, will delete all instances of the specified |
| 43 |
subfield, increasing its DWIM factor |
| 44 |
- improved POD for MARC::Field->delete_subfield() |
| 45 |
[FIXES] |
| 46 |
- RT#70346: delete_subfield() no longer clears entire field if |
| 47 |
arguments are badly formatted |
| 48 |
- croak if invalid arguments are passed to delete_subfield() |
| 49 |
- fix error in tutorial (thanks to Tom Burton-West for the |
| 50 |
catch) |
| 51 |
- RT#76990: emit leader of correct length even if record longer |
| 52 |
than 99,999 octets (Julian Maurice) |
| 53 |
- RT#67094: croak with correct error if attempting to create |
| 54 |
MARC::Field sans subfields |
| 55 |
- corrected POD for indicator() method |
| 56 |
- move tag validity check to new class method, |
| 57 |
is_valid_tag($tagno) |
| 58 |
- move indicator validity check to new class method, |
| 59 |
is_valid_indicator($indval) |
| 60 |
- have MARC::Record pass perlcritic --gentle (mostly) |
| 61 |
- remove function prototypes |
| 62 |
(see http://www.perlmonks.org/?node_id=861966) |
| 63 |
|
| 64 |
2.0.3 Fri Jan 14 17:50:12 EST 2011 |
| 65 |
- RT#62296: fix crash when dealing with record bigger than |
| 66 |
99999 bytes (Alex Arnaud) |
| 67 |
- test cases for MARC::Field->subfields() |
| 68 |
- RT#61198: let subfields return an empty array on control |
| 69 |
fields (Colin Campbell) |
| 70 |
|
| 71 |
2.0.2 Tue May 4 13:04:07 EDT 2010 |
| 72 |
- RT#57180: put back and expanded copyright statement in README |
| 73 |
at Debian request |
| 74 |
- set license element in META.yml |
| 75 |
|
| 76 |
2.0.1 Sat May 1 15:59:54 EDT 2010 |
| 77 |
[ENHANCEMENTS] |
| 78 |
- improve support for subclassing MARC::Field (Dan Wells) |
| 79 |
- RT#55993: MARC::Record->insert_fields_after can now insert |
| 80 |
after last field in record (Frédéric Demians) |
| 81 |
- added methods to MARC::Field to allow a (class-level) list of |
| 82 |
fields that should be considered control fields in addition |
| 83 |
to 001-009. Includes test t/extra_controlfields.t, and |
| 84 |
supports alphabetic characters in the tag labels. The new |
| 85 |
methods are |
| 86 |
allow_controlfield_tags |
| 87 |
disallow_controlfield_tags |
| 88 |
is_controlfield_tag |
| 89 |
(Bill Dueber) |
| 90 |
- added MARC::Record::delete_fields() and t/delete-field.t |
| 91 |
(Ed Summers) |
| 92 |
- documentation improvements (Mike Rylander and Dan Scott) |
| 93 |
- baked in minimum Perl version required: 5.8.2 |
| 94 |
|
| 95 |
2.0 |
| 96 |
[THINGS THAT MAY BREAK YOUR CODE] |
| 97 |
- Perl 5.8.2 required for utf8 handling |
| 98 |
|
| 99 |
[ENHANCEMENTS] |
| 100 |
- removed dead utf8 handling code |
| 101 |
- added MARC::File::Encode wrapper around Encode module since |
| 102 |
Encode exports encode() by default which conflicts with existing |
| 103 |
MARC::File::Encode::encode (yuck). |
| 104 |
- added MARC::Record::encoding() for getting/setting record encoding |
| 105 |
- modified t/utf8.t to unconditionally do tests since a modern |
| 106 |
perl will now be required. |
| 107 |
- Added --hex switch to marcdump, which dumps the record in |
| 108 |
hexadecimal. The offsets are in decimal so that you can match |
| 109 |
them up to values in the leader. The offset is reset to 0 |
| 110 |
when we're past the directory so that you can match up the data |
| 111 |
with the offsets in the directory. |
| 112 |
- docfixes in Record.pm (thanks Todd Holbrook) |
| 113 |
- added MARC::Field->delete_subfields |
| 114 |
|
| 115 |
1.39_02 Tue Dec 21 09:29:45 CST 2004 |
| 116 |
|
| 117 |
[THINGS THAT MAY BREAK YOUR CODE] |
| 118 |
- Removed the ability to call new from an instance of MARC::Record |
| 119 |
or MARC::Field. Any place where you might have code like: |
| 120 |
|
| 121 |
my $rec = MARC::Record->new(); |
| 122 |
... |
| 123 |
my $another = $rec->new(); |
| 124 |
|
| 125 |
will have to be changed to: |
| 126 |
|
| 127 |
my $rec = MARC::Record->new(); |
| 128 |
... |
| 129 |
my $class = ref( $rec ); |
| 130 |
my $another = $class->new(); |
| 131 |
|
| 132 |
or: |
| 133 |
|
| 134 |
my $rec = MARC::Record->new(); |
| 135 |
... |
| 136 |
my $another = MARC::Record->new(); |
| 137 |
- Removed MARC::Lint and the marclint utility to a separate |
| 138 |
package on CPAN. |
| 139 |
- MARC::Doc::Tutorial.pod updated to reflect the change. |
| 140 |
- Fixed t/50.batch.t to use File::Spec in the MicroLIF section |
| 141 |
- Other tests in t/ also use File::Spec to specify paths |
| 142 |
|
| 143 |
- MARC::File::USMARC ignores \x1a, the DOS end-of-file character, |
| 144 |
between records and at the end of files. |
| 145 |
- Added corresponding tests dosEOF.t, cameleof.usmarc, and |
| 146 |
sample1eof.usmarc. |
| 147 |
|
| 148 |
[FIXES] |
| 149 |
- Clarified docs on the interface to field(), and fixed problem |
| 150 |
whereby in scalar context if no match was found we were |
| 151 |
returning an empty list instead of undef. Strictly speaking, |
| 152 |
this is an interface change, but in practice anyone making this |
| 153 |
call in a scalar context was going to get 0, which if used as |
| 154 |
a MARC::Field would bomb. We therefore don't expect the change |
| 155 |
to affect anything that wasn't already blowing up. |
| 156 |
|
| 157 |
- Fixed the doc and example for MARC::Field::subfields() so that |
| 158 |
they match the behavior of the function, namely returning a list |
| 159 |
rather than a list ref. |
| 160 |
|
| 161 |
- Fixed behavior of MARC::Batch::next() to not reset warnings |
| 162 |
on the MARC::Record object that it returns. Also added test to |
| 163 |
t/75.warnings.t |
| 164 |
|
| 165 |
- Added code to MARC::MicroLIF::decode() to change line endings to those |
| 166 |
of the platform before decoding the passed-in string. Also added test to |
| 167 |
t/81.decode.t |
| 168 |
|
| 169 |
- Turned off utf8 handling until it can safely be done without |
| 170 |
converting all MARC data to utf8. |
| 171 |
|
| 172 |
- Made marcdump respect --noquiet as documented. |
| 173 |
|
| 174 |
[ENHANCEMENTS] |
| 175 |
- added MARC::Field::delete_subfields() and tests to t/67.subfield.t |
| 176 |
|
| 177 |
- Added tests to make sure that MARC::Record::leader() adds warnings |
| 178 |
if called as a setter with data that isn't the right length. |
| 179 |
|
| 180 |
- Added explicit tests for convenience function behavior (title(), |
| 181 |
edition(), etc.) when there's no data. |
| 182 |
|
| 183 |
- Added test to verify insert_fields_before() behavior when the |
| 184 |
field to insert before isn't in the record. |
| 185 |
|
| 186 |
- Added tests to MARC::Field::indicator() to make sure that when |
| 187 |
called on a control field the return is undef. |
| 188 |
|
| 189 |
1.39_01 Mon Jul 26 11:48:33 PDT 2004 |
| 190 |
|
| 191 |
[ENHANCEMENTS] |
| 192 |
- Support for UTF8 in Perls >= 5.8.1. When using a utf8 friendly Perl |
| 193 |
all file streams will be opened in utf8 mode, and the bytes pragma |
| 194 |
will be used to create and use direcotry byte offsets. |
| 195 |
|
| 196 |
- Added MARC::File::Utils which contains utf8 safe functions. |
| 197 |
|
| 198 |
- marcdump now sets STDOUT to utf8 if it is able to. |
| 199 |
|
| 200 |
- t/utf8.t is no longer skipped. |
| 201 |
|
| 202 |
- removed redundant record length check in MARC::File::USMARC::_next() |
| 203 |
and adjusted tests in t/75.warnings.t |
| 204 |
|
| 205 |
- All tests run under -T. |
| 206 |
|
| 207 |
1.38 March 16th, 2004 |
| 208 |
|
| 209 |
[ENHANCEMENTS] |
| 210 |
- Performance tweak on MARC::Field->is_control_field() since it |
| 211 |
gets called a lot when cloning records. |
| 212 |
- Performance tweak on MARC::Field->as_string(), since it gets |
| 213 |
called all the time. |
| 214 |
|
| 215 |
|
| 216 |
1.36 March 9th, 2004 |
| 217 |
|
| 218 |
[THINGS THAT MAY BREAK YOUR CODE] |
| 219 |
- Renamed MARC::Field->is_control_tag() to is_control_field(). |
| 220 |
|
| 221 |
[FIXES] |
| 222 |
- fixed SYNOPSIS in MARC::Batch to use constructor. Thanks Ed Sperr |
| 223 |
New England College of Optometry. |
| 224 |
- fixed reference to the tutorial in README. Thanks Stephen Graham, |
| 225 |
London Business School. |
| 226 |
- marcdump and marclint didn't recognize the -v flag. |
| 227 |
- calls to MARC::Field::subfield() on a control field (tag < 010 ) |
| 228 |
will cause a fatal error, with a friendly message telling you |
| 229 |
to use data(). Similarly a call to data() on a field >= 010 |
| 230 |
will result in a friendly error telling you to use subfield(). |
| 231 |
Previously a warning was generated, and MARC::Field continued |
| 232 |
along only to barf when it was unable to find an array ref in |
| 233 |
$self->{ _subfields }. |
| 234 |
|
| 235 |
[ENHANCEMENTS] |
| 236 |
- Finished documentation on all modules. Updated t/pod-coverage.t |
| 237 |
to keep us in line. |
| 238 |
|
| 239 |
1.34 December 16th, 2003 |
| 240 |
[ENHANCEMENTS] |
| 241 |
- modified MARC::File::in() to allow passing in filehandles instead |
| 242 |
of a filename. Useful in situations where you might have data |
| 243 |
compressed on disk, and want to read from a decompression pipe. |
| 244 |
This effects MARC::Batch of course as well, which has had its |
| 245 |
documentation updated. |
| 246 |
- added t/85.fh.t to test new filehandle passing |
| 247 |
- Incorrect filetypes passed in to the MARC::Batch constructor |
| 248 |
now croak instead of die, so you can see where in your code it |
| 249 |
was called. |
| 250 |
|
| 251 |
[FIXES] |
| 252 |
- etc/specs modified to correctly parse LCs docs to get the 250 $b |
| 253 |
properly. Thanks Bryan Baldus at Quality Books. |
| 254 |
- new Lint.pm with 250 $b. |
| 255 |
- MARC::Field now leaves alphabetic indicators as they are instead |
| 256 |
of squashing to a space. Added test of new functionailty. Thanks |
| 257 |
Leif Andersson from Stockholms Universitet. |
| 258 |
- MARC::File::USMARC no longer checks the validity of indicators |
| 259 |
but leaves that up to MARC::Field (instead of having the check |
| 260 |
twice). |
| 261 |
- In MARC::Batch, the 'warn' elements weren't quoted. |
| 262 |
- warnings_on and strict_on should now be respected. |
| 263 |
|
| 264 |
1.33 November 24th, 2003 |
| 265 |
MARC::Record should now run on Perls back to 5.00503! |
| 266 |
|
| 267 |
[FIXES] |
| 268 |
- fixed behavior in MARC::File::USMARC which was causing |
| 269 |
MARC::File::next() to return a partial record when the record |
| 270 |
lacked a proper end of directory byte. RT #4474. Added regression |
| 271 |
test t/82.baddir.t. |
| 272 |
- we now warn on improper 010 tag access, not croak. |
| 273 |
- fixed t/80.alphatag to test new MARC::Field::data() behavior |
| 274 |
- doc fix to insert_field_grouped() |
| 275 |
- tons of fixes and additions to MARC::Doc::Tutorial |
| 276 |
|
| 277 |
[INTERNALS] |
| 278 |
- Moved pl/ to bin/ |
| 279 |
- Split out the sfdocs stuff from Makefile.PL to bin/makesfdocs |
| 280 |
|
| 281 |
1.32 November 5th, 2003 |
| 282 |
[ENHANCEMENTS] |
| 283 |
- added insert_ordered_fields(), thanks Leif Andersson. |
| 284 |
|
| 285 |
1.31 October 16th, 2003 |
| 286 |
[FIXES] |
| 287 |
- set_leader_lengths() will now also set other MARC21 leader defaults. |
| 288 |
Postitions 10-11, 20-23. For details on the defaults see: |
| 289 |
http://www.loc.gov/marc/bibliographic/ecbdldrd.html |
| 290 |
- MARC::Batch::next() now accepts a filter function. |
| 291 |
- Fixed an incorrect instruction in MARC::File::MicroLIF. |
| 292 |
- marclint actually counts the number of records now. |
| 293 |
|
| 294 |
[DOCUMENTATION] |
| 295 |
- Added sample usage for insert_grouped_fields() |
| 296 |
- Added example about subfield v to x conversion to tutorial. |
| 297 |
- Documentation fix for MARC::Field::new(). |
| 298 |
- Fixed useage of MARC::Record::append_fields() in example 17 |
| 299 |
of the Tutorial. |
| 300 |
- Added TODO test for utf8 handling (utf8.t) |
| 301 |
- Fixed doc bug in MARC::File::USMARC (#2937) |
| 302 |
|
| 303 |
1.30 There is no 1.30. We skipped a number. |
| 304 |
|
| 305 |
1.29 June 05, 2003 |
| 306 |
[ENHANCEMENTS] |
| 307 |
- MARC::Field::subfield() will return a list of all subfield |
| 308 |
data when called in a list context...and only the first when |
| 309 |
called in a scalar context. Also added a test 67.subfield.t |
| 310 |
to test new functionality. |
| 311 |
|
| 312 |
1.28 May 23, 2003 |
| 313 |
[FIXES] |
| 314 |
- Fixed MARC::Lint::check_record()'s checking for multiple 1XX tags. |
| 315 |
|
| 316 |
- Fixed the docs for MARC::Lint and what errors it says it catches. |
| 317 |
|
| 318 |
1.27 May 22, 2003 |
| 319 |
[ENHANCMENTS] |
| 320 |
- MARC::Field::update() by default will append any subfields which do |
| 321 |
not exist in the record to the end of the field. Added tests to test |
| 322 |
the new functionality to 60.update.t |
| 323 |
|
| 324 |
[FIXES] |
| 325 |
- Updated MARC::Lint to use the latest field/subfield designations from |
| 326 |
the Library of Congress. The data for MARC::Lint is now |
| 327 |
automatically generated from the LC webpage. Thanks to Colin |
| 328 |
Campbell of Sirsi for the program that does the translation. |
| 329 |
|
| 330 |
- removed MARC::Lint check_260() since a subfield c is not |
| 331 |
mandatory (see RT #1565). |
| 332 |
|
| 333 |
1.26 May 8, 2003 |
| 334 |
[FIXES] |
| 335 |
- Removed the "use warnings" in the couple of files that used it. |
| 336 |
This obviates the need for the pre5006.patch file. |
| 337 |
|
| 338 |
- Fixed some warnings for undefs. These only turned up because |
| 339 |
Test::Harness now has warnings turned on. |
| 340 |
|
| 341 |
1.25 April 22, 2003 |
| 342 |
NO CHANGES. Just compensating for upload problems. |
| 343 |
|
| 344 |
1.24 April 22, 2003 |
| 345 |
[ENHANCEMENTS] |
| 346 |
- expanded documentation for MARC::Field::as_string() |
| 347 |
|
| 348 |
[FIX] |
| 349 |
- modified MARC::File::USMARC to silently ignore any |
| 350 |
combination of nulls, spaces, CRs, and LFs between |
| 351 |
records. (They're not allowed to be there, but some |
| 352 |
vendors put them there anyway.) With this change in |
| 353 |
place you will now get the complete record--if the |
| 354 |
inter-record garbage is the only problem--rather than |
| 355 |
a record with (usually) zero fields. |
| 356 |
|
| 357 |
1.23 March 30, 2003 |
| 358 |
[FIX] |
| 359 |
- removed t/85.utf8.t since it did not work |
| 360 |
- removed bytes pragma usage since there is no feasible way to |
| 361 |
get MARC::Record to properly handle utf8 while it is using |
| 362 |
substr() so heavily. substr() uses character lengths, and |
| 363 |
directory positions measure lengths in bytes. |
| 364 |
- updated pre5006.patch to only remove warnings pragma |
| 365 |
|
| 366 |
1.22 March 23, 2003 |
| 367 |
- added t/85.utf8.t to test record lengths work when utf8 data |
| 368 |
is present in a record (regression test for RT #2165) |
| 369 |
- warnings and bytes pragmas are now explicit |
| 370 |
- added patch for removing warnings and bytes pragmas for Perl |
| 371 |
versions < 5.006 |
| 372 |
- updated README to include information about the patch |
| 373 |
[FIX] |
| 374 |
- removed warnings pragma from MARC/File/USMARC.pm and |
| 375 |
MARC/File/MicroLIF.pm since with warnings on, they generate quite |
| 376 |
a few warnings. These are mainly thrown by substr() when |
| 377 |
working with invalid MARC data. |
| 378 |
|
| 379 |
1.21 March 14, 2003 |
| 380 |
[ENHANCEMENTS] |
| 381 |
- MARC::File::MicroLIF now reads the MicroLIF header from |
| 382 |
the input file and makes it available via the header() |
| 383 |
call. If there is no header in the file, header() |
| 384 |
will return undef. Because the header is now taken |
| 385 |
care of when the file is opened, |
| 386 |
MARC::File::MicroLIF::decode no longer supports skipping |
| 387 |
the file header. |
| 388 |
- MARC:File::MicroLIF::decode now detects fields that |
| 389 |
have no subfields (other than 001-009) rather than |
| 390 |
passing them through to MARC::Field which croak()s. |
| 391 |
When such a tag is encountered it is thrown away and |
| 392 |
a warning added to the MARC::Record, rather than |
| 393 |
allowing MARC::Field to croak(). |
| 394 |
- Updated data files used to test MARC::File::MicroLIF |
| 395 |
so that they have a header. |
| 396 |
|
| 397 |
[FIXES] |
| 398 |
- MARC:File::MicroLIF now supports input files with any |
| 399 |
type of line ending--\x0d, \x0a, or \x0d\0a. A file no |
| 400 |
longer has to have created on a system with compatible |
| 401 |
line endings. |
| 402 |
- Fixed invalid assumption in MARC::File::MicroLIF that |
| 403 |
the MicroLIF header is supposed to begin with 'HDR'. |
| 404 |
|
| 405 |
1.20 February 26, 2003 |
| 406 |
[FIXES] |
| 407 |
- Removed $VERSION from all modules except for MARC::Record |
| 408 |
itself. |
| 409 |
- Fixed a $VERSION problem in MARC::Record that prevented CPAN |
| 410 |
from indexing the module correctly. |
| 411 |
- Added more tests to the .t files. |
| 412 |
|
| 413 |
1.18 February 16, 2003 |
| 414 |
[ENHANCEMENTS] |
| 415 |
- when MARC::Batch::no_strict() will allow you to read in |
| 416 |
records with invalid record lengths. |
| 417 |
[FIXES] |
| 418 |
- Changes to MARC::File::USMARC->decode() to fix the |
| 419 |
rt.cpan.org bug #2017, "MARC::File::USMARC assumes |
| 420 |
that fields apper in directory order". |
| 421 |
- Stricter checking on MARC directory entries. |
| 422 |
|
| 423 |
1.17 January 29, 2003 |
| 424 |
[ENHANCEMENTS] |
| 425 |
- Added optional subfield string to MARC::Field::as_string(). |
| 426 |
- Added tag-based filtering on the USMARC constructors and |
| 427 |
passthru support for this in MARC::File::next(). Now you can |
| 428 |
select which tags get put into your MARC record, and not have |
| 429 |
to pay the processing costs for fields you're going to ignore. |
| 430 |
- title_proper() now returns the _a, _n and _p from the 245 in |
| 431 |
whatever order they happen to appear. Thanks to Anne Highsmith |
| 432 |
for the change and the test data. |
| 433 |
- Minor speed tweaks when checking for tags < 010 |
| 434 |
- Made the POD checking in t/99.pod.t work better. Eventually I |
| 435 |
need to make the same changes into Test::Pod. |
| 436 |
|
| 437 |
1.16 January 28, 2003 |
| 438 |
[ENHANCEMENTS] |
| 439 |
- title() and author() now return empty strings, rather than |
| 440 |
"<No XXX found>" |
| 441 |
- Added title_proper(), edition() and publication_date() |
| 442 |
convenience methods to MARC::Record. |
| 443 |
- Added more unit tests. |
| 444 |
|
| 445 |
[FIXES] |
| 446 |
- marcdump utility will not output LDR when running under --field |
| 447 |
option, unless the LDR is specifically asked for. |
| 448 |
|
| 449 |
1.15 December 8, 2002 |
| 450 |
[FIXES] |
| 451 |
- Ignores and warns about any completely empty subfields (i.e. not |
| 452 |
even any indicators) |
| 453 |
- MARC::File::USMARC::decode and MARC::File::MicroLIF::decode needed to |
| 454 |
be able to be called in a variety of ways: $obj->decode(), |
| 455 |
MARC::File::MicroLIF->decode() and MARC::File::MicroLIF::decode() |
| 456 |
Added t/081.decode.t to make sure things are shipshape. |
| 457 |
|
| 458 |
1.14 November 27, 2002 |
| 459 |
[FIXES] |
| 460 |
- Fixed bug in MARC::File::USMARC that was set off by failure of |
| 461 |
t/75.warnings.t under ActivePerl and CygWin. |
| 462 |
|
| 463 |
1.13 November 26, 2002 |
| 464 |
[ENHANCEMENTS] |
| 465 |
- Moved new_from_usmarc() docs & code up right after new() to |
| 466 |
be more prominent. Thanks to Chris Biemesderfer for pointing this |
| 467 |
out. |
| 468 |
- Added Chris Biemesderfer's section to the tutorial which |
| 469 |
discusses using MARC::Record with Net::Z3950. |
| 470 |
- Yet another overhaul to MARC::Batch to allow for error trapping. |
| 471 |
Added the warnings_on() warnings_off() methods to turn on/off |
| 472 |
warnings on STDERR. Also added strict_on() and strict_off() to |
| 473 |
change the behavior of next() when an error is encountered. |
| 474 |
Thanks to Rob Fox of Notre Dame for providing guidance on the type |
| 475 |
of behavior that is really needed when batch processing. |
| 476 |
- Added new tests for the improved handling of errors in MARC::Batch. |
| 477 |
- Added new warnings and strict methods to MARC::Doc::Tutorial, also |
| 478 |
added more use of MARC::Batch instead of using MARC::File directly. |
| 479 |
- Improved docs on some functions to explicitly says what gets |
| 480 |
returned from each function. |
| 481 |
|
| 482 |
1.12 October 9, 2002 |
| 483 |
[ENHANCEMENTS] |
| 484 |
- Makefile.PL will now generate PDF and HTML documentation for |
| 485 |
Sourceforge when asked to. |
| 486 |
- Added a test for insert_field_grouped() |
| 487 |
- Added subject heading example to Tutorial |
| 488 |
- Fixed typo in docs for MARC::Record::append_fields() |
| 489 |
- Added code (and tests) for allowing users to specify alphanumeric |
| 490 |
tags. This is little used, but it's in the spec, and someone asked |
| 491 |
for it (Notre Dame). Edits were to MARC::Field and to a lesser |
| 492 |
extent MARC::Record. |
| 493 |
|
| 494 |
1.11 September 10, 2002 |
| 495 |
[ENHANCEMENTS] |
| 496 |
- Added a 99.pod.t to check pod |
| 497 |
- insert_fields_before(), insert_fields_after(), appned_fields(), |
| 498 |
and insert_grouped_fields() now call croak() instead of _gripe |
| 499 |
in order to help MARC::Record users to locate where their call |
| 500 |
is failing. Thanks to Jackie Shieh for pointing this out. |
| 501 |
- MARC::Batch is now fault tolerant, in that it will store |
| 502 |
warnings about file format problems, but will not bomb out. |
| 503 |
The method MARC::Batch::warnings() can be used to get info |
| 504 |
about what went wrong while reading a record, and users can |
| 505 |
determine what to do. Thanks to Betsy Earl for solidifying the |
| 506 |
need for this. |
| 507 |
|
| 508 |
1.10 August 30, 2002 |
| 509 |
[ENHANCEMENTS] |
| 510 |
- Now runs under Perl 5.005. All you people who have older Perls can |
| 511 |
now share in the joy that is MARC::Record. |
| 512 |
- Added warnings() and _warn methods to MARC::Batch, MARC::File to |
| 513 |
support warning collection and reporting. |
| 514 |
- Added use bytes to MARC::File::USMARC so that calls to length() will |
| 515 |
return actual bytes rather than characters if Unicode characters are |
| 516 |
found in the data. This only works if you're using 5.6.0+. |
| 517 |
|
| 518 |
[FIXES] |
| 519 |
- Modified MARC::File::USMARC::_next() to slurp in a record using |
| 520 |
local $/ = 0x1D, rather than reading record length and then calling |
| 521 |
read(). This will allow recovery from invalid leaders in batch |
| 522 |
reading. |
| 523 |
|
| 524 |
1.00 July 3, 2002 |
| 525 |
- _gripe() fires off warnings instead of dying silently. |
| 526 |
- MARC::File::USMARC no longer creates an error if it's and the |
| 527 |
end of a file when it tries to next(). |
| 528 |
- Tests use the isa_ok() function to be more stringent in checking |
| 529 |
return values from functions. |
| 530 |
|
| 531 |
0.94 June 10, 2002 |
| 532 |
- Added $MARC::Record::DEBUG |
| 533 |
- Added --debug flag to marcdump to enable $MARC::Record::DEBUG |
| 534 |
- Added 'Validation' section to MARC::Doc::Tutorial |
| 535 |
- Added append_fields(), insert_fields_after(), |
| 536 |
insert_fields_before() and deprecated add_fields() |
| 537 |
- Added test of new methods (t/60.insert.t) |
| 538 |
- Updated MARC::Doc::Tutorial to reflect change in add_fields() |
| 539 |
|
| 540 |
0.93 May 21, 2002 |
| 541 |
- Added update() and replace_with() methods to MARC::Field |
| 542 |
- Added more stuff to MARC::Doc::Tutorial |
| 543 |
- Added MARC::Doc::Tutorial |
| 544 |
- Changed method call description for as_usmarc() in MARC::Record. |
| 545 |
- Removed IDEA for cloning in MARC::Record docs since it's been done. |
| 546 |
|
| 547 |
0.92 April 2, 2002 |
| 548 |
- Fixed marclint to use the new MARC::File object |
| 549 |
- Added MARC::Record::new_from_usmarc() for backward compatibility. |
| 550 |
This is in addition to the MARC::Record::as_usmarc() function. |
| 551 |
|
| 552 |
0.91 April 2, 2002 |
| 553 |
- Fixed a bad build: MARC::Batch wasn't included in the tarball. |
| 554 |
|
| 555 |
- marcdump now takes a --lif parm to be able to dump MicroLIF |
| 556 |
records. |
| 557 |
|
| 558 |
0.90 April 1, 2002 |
| 559 |
- Alpha version of what will become MARC::Record 1.00. |
| 560 |
|
| 561 |
- MAJOR infrastructure changes. Scripts WILL break. |
| 562 |
|
| 563 |
- The file-handling has been removed from the MARC::Record class |
| 564 |
and moved into its own MARC::File::* set of classes. |
| 565 |
|
| 566 |
- First rudimentary MARC::Batch functionality. This will make |
| 567 |
it easy to handle bunches of files at once without having to |
| 568 |
muck with what file you're on. |
| 569 |
|
| 570 |
- Now fully embracing all the glory of 5.6+ Perl, such as the |
| 571 |
"our" keyword and $fh filehandles. |
| 572 |
|
| 573 |
0.15 March 19, 2002 |
| 574 |
- Added clone() methods for MARC::Field and MARC::Record, so |
| 575 |
you can make a copy of an existing record. Plus, this acts |
| 576 |
as a filter to create records that are subsets of another. |
| 577 |
|
| 578 |
- Added selective printing of fields in marcdump. Now you |
| 579 |
can do something like this: |
| 580 |
|
| 581 |
marcdump myfile.marc --field=245 --field=1XX |
| 582 |
|
| 583 |
and only get back the title and author fields |
| 584 |
|
| 585 |
0.14 March 7, 2002 |
| 586 |
- Added skip_from_file() to read and ignore a record. It's the |
| 587 |
same as next_from_file(), without the overhead of the parsing. |
| 588 |
|
| 589 |
0.13 November 18, 2001 |
| 590 |
- MARC::Lint now squawks if there are inappropriate control |
| 591 |
characters in the data. |
| 592 |
|
| 593 |
0.12 November 13, 2001 |
| 594 |
- new_from_microlif() now allows underscores that are embedded in a |
| 595 |
subfield, and ignores any HDR line that gets passed to it. |
| 596 |
|
| 597 |
0.11 November 12, 2001 |
| 598 |
- Added inbound microlif support. |
| 599 |
- Added lif2marc program. |
| 600 |
|
| 601 |
0.10 September 27, 2001 |
| 602 |
- Correctly updates the base address in the leader. Thanks to |
| 603 |
Tim Wentz ([email protected]) for finding & fixing. |
| 604 |
|
| 605 |
0.09 August 9, 2001 |
| 606 |
- Updated rules from "Understanding MARC" book. |
| 607 |
- Added delete_field() method. |
| 608 |
|
| 609 |
0.08 May 25, 2001 |
| 610 |
- Added MARC::Record::title and ::author methods |
| 611 |
- Added the marclint program. |
| 612 |
- Added the rest of the rules for the 5XX tags forward. |
| 613 |
- Made the modules compatible with Perl 5.004. The exception |
| 614 |
is MARC::Lint, which requires 5.005 because of the qr// |
| 615 |
operator. |
| 616 |
- as_string() methods now return raw strings, without any special |
| 617 |
formatting. To get the formatted strings from versions <=0.07, |
| 618 |
use as_formatted(). |
| 619 |
|
| 620 |
0.07 May 22, 2001 |
| 621 |
- Added the rudimentary MARC::Lint module. |
| 622 |
- Added parms to marcdump program |
| 623 |
|
| 624 |
0.06 May 16, 2001 |
| 625 |
- Added marcdump program as demo and actual useful code |
| 626 |
|
| 627 |
0.05 May 16, 2001 |
| 628 |
- Created t/camel.t as the basis for a test suite. |
| 629 |
- Removed the MARC::Field::subfields() method |
| 630 |
- Documentation cleanup. |
| 631 |
|
| 632 |
0.04 May 15, 2001 |
| 633 |
- Sped up the MARC::Record and MARC::Field constructors about 30%. |
| 634 |
|
| 635 |
0.01 Apr 20, 2001 |
| 636 |
- First version. |