| 1 |
MARC (manipulate MAchine Readable Cataloging) |
| 2 |
VERSION=1.07, 23 April 2000 |
| 3 |
|
| 4 |
This is a cross-platform module. All of the files except README.txt |
| 5 |
are LF-only terminations. You will need a better editor than Notepad |
| 6 |
to read them on Win32. README.txt is README with CRLF. |
| 7 |
|
| 8 |
DESCRIPTION: |
| 9 |
|
| 10 |
MARC.pm is a Perl 5 module for reading in, manipulating, and outputting |
| 11 |
bibliographic records in the USMARC format. You will need to have Perl |
| 12 |
5.004 or greater for MARC.pm to work properly. Since it is a Perl module |
| 13 |
you use MARC.pm from one of your own Perl scripts. It handles conversions |
| 14 |
from MARC into ASCII (text), Library of Congress MARCMaker, HTML, |
| 15 |
and ISBD. Input from MARCMaker format is also supported. Individual |
| 16 |
records, fields, indicators, and subfields can be created, modified, and |
| 17 |
deleted. It can extract URLs from the 856 field into HTML. |
| 18 |
|
| 19 |
The MARC::XML module adds conversions to and from XML. |
| 20 |
|
| 21 |
The MARC::Tie module adds another way to access this data. |
| 22 |
|
| 23 |
MARC.pm can handle both single and batches of MARC records. The limit on |
| 24 |
the number of records in a batch is determined by the memory capacity of |
| 25 |
the machine you are running. If memory is an issue for you MARC.pm will |
| 26 |
allow you to read in records from a batch gradually. MARC.pm also includes |
| 27 |
a variety of tools for searching, removing, and even creating records from |
| 28 |
scratch. |
| 29 |
|
| 30 |
FILES: |
| 31 |
|
| 32 |
Changes - for history lovers |
| 33 |
Makefile.PL - the "starting point" for traditional reasons |
| 34 |
MANIFEST - file list |
| 35 |
README - this file for CPAN |
| 36 |
README.txt - this file for DOS |
| 37 |
MARC.pm - the reason you're reading this |
| 38 |
|
| 39 |
t - test directory |
| 40 |
t/marc.dat - two record data file for testing |
| 41 |
t/marc4.dat - slightly different version of t/marc.dat |
| 42 |
t/badmarc.dat - corrupt data file for testing |
| 43 |
t/test1.t - basic tests, search, update |
| 44 |
t/test2.t - MARCMaker format tests |
| 45 |
t/test3.t - Inheritance version of test1.t |
| 46 |
t/test4.t - tests for the *map* methods |
| 47 |
t/test5.t - updatefirst/deletefirst tests |
| 48 |
t/MARCopt.pm - Inheritance stub module |
| 49 |
t/makrbrkr.mrc - LoC. MARCMaker reference records |
| 50 |
t/makrtest.src - MARCMaker source for makrbrkr.mrc |
| 51 |
t/brkrtest.ref - MARCBreaker output from makrbrkr.mrc |
| 52 |
t/makrtest.bad - corrupt MARCMaker source file for testing |
| 53 |
|
| 54 |
eg - test directory |
| 55 |
eg/microlif.001 - eighteen record data file for demo |
| 56 |
eg/addlocal.pl - simple modify/write demo with comments |
| 57 |
eg/specials.001 - complex data file for fixlocal demo |
| 58 |
eg/fixlocal.pl - multi-field search and replace demo with comments |
| 59 |
and option templates |
| 60 |
eg/uclocal.pl - complex modify/write demo with extensive use of |
| 61 |
templates and tutorial comments |
| 62 |
|
| 63 |
INSTALL and TEST: |
| 64 |
|
| 65 |
On linux and Unix, this distribution uses Makefile.PL and the "standard" |
| 66 |
install sequence for CPAN modules: |
| 67 |
perl Makefile.PL |
| 68 |
make |
| 69 |
make test |
| 70 |
make install |
| 71 |
|
| 72 |
On Win32, Makefile.PL creates equivalent scripts for the "make-deprived" |
| 73 |
and follows a similar sequence. |
| 74 |
perl Makefile.PL |
| 75 |
perl test.pl |
| 76 |
perl install.pl |
| 77 |
|
| 78 |
Both sequences create install files and directories. The test uses a |
| 79 |
small sample input file and creates outputs in various formats. You can |
| 80 |
specify an optional PAUSE (0..5 seconds) between pages of output. The |
| 81 |
'perl t/test1.pl PAUSE' form works on all OS types. The test will |
| 82 |
indicate if any unexpected errors occur (not ok). |
| 83 |
|
| 84 |
Once you have installed, you can check if Perl can find it. Change to |
| 85 |
some other directory and execute from the command line: |
| 86 |
|
| 87 |
perl -e "use MARC" |
| 88 |
|
| 89 |
No response that means everything is OK! If you get an error like |
| 90 |
* Can't locate method "use" via package MARC *, then Perl is not |
| 91 |
able to find MARC.pm--double check that the file copied it into the |
| 92 |
right place during the install. |
| 93 |
|
| 94 |
EXPERIMENTAL ELEMENTS: |
| 95 |
|
| 96 |
A number of functions were added in Version 0.92 by Derek Lane to |
| 97 |
support updating "000" and "008" fields. All of these are experimental |
| 98 |
and may be subject to changes or syntax refinements. Here are his |
| 99 |
comments: |
| 100 |
|
| 101 |
(unpack_ldr): gets an updateable version of the LDR |
| 102 |
|
| 103 |
(_unpack_ldr): This and other _ - series functions work fine on a |
| 104 |
record-by-record basis. In general all official methods in the |
| 105 |
(un)?pack.* series call corresponding _(un)?pack.* methods. The |
| 106 |
official interfaces have to specify the records. |
| 107 |
|
| 108 |
(_pack_ldr): Added in 0.95d |
| 109 |
|
| 110 |
(bib_format): returns, e.g. BOOK or SERIAL. Don't confuse this |
| 111 |
with usmarc vs XML. |
| 112 |
|
| 113 |
(_bib_format): Suitable for record-by-record access. |
| 114 |
|
| 115 |
(unpack_008): Returns updateable fixed field information. |
| 116 |
|
| 117 |
(_unpack_008): Internal record-by-record equivalent. |
| 118 |
|
| 119 |
(_pack_008): Added in 0.95d |
| 120 |
|
| 121 |
COMPATIBILITY: |
| 122 |
|
| 123 |
The length() method has been removed because it overrides a Perl builtin. |
| 124 |
Use the new marc_count() method instead. |
| 125 |
|
| 126 |
Version 0.93 adds character_set conversions to MarcMaker format reads and |
| 127 |
writes. The usmarc/ustext character maps are used by default, so existing |
| 128 |
files in that format will produce different results than earlier versions. |
| 129 |
|
| 130 |
Starting with version 1.00, the XML conversions are moved to MARC::XML. |
| 131 |
|
| 132 |
Version 1.05 no longer assumes fields with same tag are contiguous. This |
| 133 |
is required for CJK characters and may introduce other changes from earlier |
| 134 |
conversions. The addition of proper date stamp generation in the "005" field |
| 135 |
may now create different output from the same source data. |
| 136 |
|
| 137 |
NOTES: |
| 138 |
|
| 139 |
Please let us know if you run into any difficulties using MARC.pm-- |
| 140 |
e'd be happy to try to help. Also, please contact us if you notice any |
| 141 |
bugs, or if you would like to suggest an improvement/enhancement. Email |
| 142 |
addresses are listed at the bottom of this page. |
| 143 |
|
| 144 |
The module is provided in standard CPAN distribution format. Additional |
| 145 |
documentation is created during the installation (html and man formats). |
| 146 |
|
| 147 |
Download the latest version from CPAN or: |
| 148 |
|
| 149 |
http://marcpm.sourceforge.net |
| 150 |
|
| 151 |
AUTHORS: |
| 152 |
|
| 153 |
Chuck Bearden [email protected] |
| 154 |
Bill Birthisel [email protected] |
| 155 |
Charles McFadden [email protected] |
| 156 |
Ed Summers [email protected] |
| 157 |
Derek Lane [email protected] |
| 158 |
|
| 159 |
COPYRIGHT |
| 160 |
|
| 161 |
Copyright (C) 1999, 2000 Bearden, Birthisel, Lane, McFadden, and Summers. |
| 162 |
All rights reserved. This module is free software; you can redistribute |
| 163 |
it and/or modify it under the same terms as Perl itself. |
| 164 |
Portions Copyright (C) 1999, 2000 Duke University, Lane. |