Questions tagged [marc]

MARC is an acronym, used in the field of library science, that stands for MAchine-Readable Cataloging. It provides the protocol by which computers exchange, use, and interpret bibliographic information. Its data elements make up the foundation of most library catalogs used today.

Resources:

52 questions
6
votes
3 answers

How can you parse a document stored in the MARC21 format with Python

Yesterday harvard released open access to all its library metadata (some 12 million records) I was looking to parse the data and play with it as the goal of the release was to "support innovation" Download the 12GB tarball, unpacked it to find 13…
MattoTodd
  • 14,467
  • 16
  • 59
  • 76
4
votes
1 answer

XSL transformation from EAD to MARC skips over 2nd subject term

I have a very strange problem. I have XML documents encoded in EAD that I'm transforming into MARC records for a library catalog. There is a section of the EAD document that looks like this:
3
votes
2 answers

Python encoding conversion

I wrote a Python script that processes CSV files with non-ascii characters, encoded in UTF-8. However the encoding of the output is broken. So, from this in the input: "d\xc4\x9bjin hornictv\xc3\xad" I get this in the output: "d\xe2\x99\xafjin…
Jindřich Mynarz
  • 1,563
  • 1
  • 16
  • 31
3
votes
1 answer

Koha RESTful api

I've been looking around the internet for information on Koha ILS restful api but I haven't found anything concrete. There is this link which talks about its HTTP API: http://wiki.koha-community.org/wiki/Koha_/svc/_HTTP_API but there are no examples…
PentaKon
  • 4,139
  • 5
  • 43
  • 80
2
votes
2 answers

Working with MARC file

I'm having a database project for a library. Nearly all the book information in the library is available on the library of congress which provides free downloadable of book records that store in *.mrc file (MARC). I am required to retrieve those…
sovantha
  • 259
  • 3
  • 16
2
votes
1 answer

KORMARC to MARC21 converter

Does anyone know if there is a free open-source solution to convert KORMARC (Korean MARC) into MARC21 (aka USMARC)?
Ryan Berger
  • 9,644
  • 6
  • 44
  • 56
2
votes
1 answer

Python pymarc - how to print field tag and each indicator and subfield

I have a MARC21 record in an input file. I am trying to print it in Aleph Sequential format. How? I want to print record number (9 digits), space, the field tag, indicators, space, the L letter, space and then each subfield tag and subfield…
Oren Maurer
  • 179
  • 2
  • 6
2
votes
1 answer

Trouble reading MARC data using MARCReader() and pymarc

So I am trying to teach myself python and pymarc for a school project I am working on. I have a sample marc file and I am trying to read it using this simple code: from pymarc import * reader = MARCReader(open('dump.mrc', 'rb'),…
user3554599
  • 81
  • 1
  • 3
  • 13
2
votes
2 answers

How to get all dollar sings and the text after it in a string in PHP

A marc 21 tag may content a line with several dollar signs $ like: $string='10$athis is text a$bthis is text b/$cthis is text$dthis is text d'; I tried to match all the dollar sings and get the text after each sing, my code…
abdurrhman
  • 23
  • 2
2
votes
1 answer

xsl get element values from another node tree

I have the following XML:
schnydszch
  • 435
  • 5
  • 19
2
votes
1 answer

In ruby, how can I test input strings against a set of mixed data types?

I'm attempting to write a rudimentary MARC validator in ruby based on a short list of required and optional but desirable fields, partly as an exercise to write something in ruby, which I'm not terribly familiar with. I've come up with what looks…
ND Geek
  • 398
  • 6
  • 21
2
votes
0 answers

Insert new XML values in MySQL table

Rather than extracting or updating values or attributes of existing XML fields in a MySQL column, I should need to add (insert) new XML fields, with their own attributes and values. Can UpdateXML be used not just to update existing values, but to…
ggna
  • 65
  • 5
2
votes
3 answers

MySQL to update an XML attribute

In data load, it seems some XML attributes mapped incorrectly and I'm now trying to correct this, but am struggling with MySQL's handling of this XML column. I want to correct the XML attributes (Not Values) for all occurrences of a field (with…
Ashimema
  • 221
  • 4
  • 12
1
vote
1 answer

Need a regex to modify a second match and ignore the first and last

Library context, using MarcEdit which can also use regex. I need this: =773 \\$tEtudes inuit$x0701-1008$1Vol. 44 1-2, $2p. 53-84 to be changed to this: =773 \\$tEtudes inuit$x0701-1008$1Vol. 44, no. 1-2, $2p. 53-84 Problem is, the 44 in this case…
1
vote
0 answers

koha user rules and cataloging (Koha Library Management System)

Is there a plugin for koha that allows you to make the following points? or is possible to do this configurations on koha? Blocking and unblocking of records, by users of the headquarters library with system administration level, through validation…
NoobDEV-GBL
  • 354
  • 3
  • 20
1
2 3 4