I took a quick look around the net and there are a few PHP libraries which claim to be able to read MARC records (http://pear.php.net/package/File_MARC/, http://www.emilda.org/index.php?q=php-marc) so it's not inconceivable that a reader could be fashioned from one of these to import MARC records into biblio. I don't have any knowledge of the MARC format, so I don't know how much of a job this would be but maybe something could be done.

Ron.

CommentFileSizeAuthor
#6 marc.php_.txt3.22 KBaaustin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webengr’s picture

To get started, I am looking into how well I can convert some MARC records to RIS or BibTex
just to see how that goes. From my limited experience just converting ItsMarc serveral years ago to use for with the webapp marcsearch.sourceforge.net had problems... both are marc, but some global replacements had to be made to be compatible. I will look for my notes on that also.

webengr’s picture

for the novice, tools going from MARC to biblio formats are not off the shelf.

BTW, The PEAR PACKAGE is based on the PHP MARC used for emilda, and emilda does not seem to be very active. I'd lean towards the PHP PEAR on that basis.

rjerome’s picture

I wasn't suggesting the use of emilda, but what I was proposing was to create an import filter for biblio based on the PHP-MARC code, so you could suck MARC files directly into the biblio database.

I also wasn't proposing that you do this, unless of course you want to :-), but I would need some small MARC file to test with and some idea what you expect to get out of the file.

Ron.

p0732658’s picture

Hi Ron,

You could also have a look at Evergreen, an another Open source ILS (http://www.open-ils.org/) that offers the possibilty to import MARC21 files. There also OpenBiblio (http://obiblio.sourceforge.net/) and PMB [a French projet] ( http://www.sigb.net/ ). Both of those Open source programs uses some sort of MARC php libraries to import content by using the Z3950 protocol. I can't offer you more details because I'not very advance in php programing. I do know that Endnote use some sort of MARC filters when you import data from any library catalog via the search catalog feature. Fort intance, you could have a look at the National library of Canada filter. Finalely, to obtain MARC files you could import some records from http://amicus.collectionscanada.ca/aaweb/aalogine.htm . You have to register to import records into MARC format, but it free.

Hoping this is helpful,

Denis

Denis

patch-works@drupal.org’s picture

Hi,

Note that PMB uses UNIMARC (Europe) and not MARC 21or USMARC (America). You may also check

aaustin’s picture

FileSize
3.22 KB

I have found that it is relatively doable to break a marc record up in to an array without using an external library. The marc file and record is a series of record, field and subfield terminators separating the data. It just took a lot of time starring at the LOC documentation and many uses of the php explod() function.

I have a marc module that I am planning on contributing very soon. The purpose of my module is to import marc records in to Drupal as nodes to map to CCK text fields and taxonomies.

But maybe I could put an API in it to work with the Bibliography module. I will take a look at it.

Anyway, I am attaching some code out of the module that handles the reading of MARC records if anyone wants to look at it.

rjerome’s picture

Thanks,

I'll see if I can incorporate this into the biblio module for direct MARC import.

Ron.

rjerome’s picture

Thanks,

I'll see if I can incorporate this into the biblio module for direct MARC import.

Ron.

asb’s picture

Version: 5.x-1.x-dev » 6.x-1.5

Hi,

what kind of MARC file does the "Bibliography" module process?

I tried this with "PGA-Australiana.mrk" from http://gutenberg.net.au/pga-Australiana-marc.zip (http://gutenberg.net.au/marc.html) which gives me:

PGA-Australiana.mrk was uploaded
0 nodes saved.

Greetings, -asb

rjerome’s picture

That zip file contains both a MARC (.mrc) format file and the text (.mrk) used to create it. I imported the .mrc file without issue...

* PGA-Australiana.mrc was uploaded
* 278 nodes saved.

Ron.

Liam Morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.