El formato MARC o maskinlæsbare katalogisering naci? los a?60 para compartir registros bibliogr?cos y cat?gos entre bibliotecas.
Ejemplo de un registro da formato MARC21:
00549nam 2200181 450 008004100000021002100041035001500062080001000077100
00280008724500630011525000100017826000300018830000300021849000380024850400270028
6650002400313999003000337 ^ ^ 920413s1988 sp ad W 000 kat ^ ^ 10 ^ _a84-7596-137-1 ^ _bm ^ ^ ^ _a0000-00560 ^ ^ 00 ^ _a82.08 ^ ^ 10 ^ _aCassany i Comas ^ _hDaniel ^ ^ 10 ^ _aDescriure skrive ^ _bcom s'apr?en skrive ^ _dDaniel Cassany ^ ^ 00 ^ _a2 � ed ^ ^ 00 ^ _aBarcelona ^ _bEmp?s ^ _c1988 ^ ^ 00 ^ _a192 s. ^ _bil. ^ _igr? ^ _c20 cm ^ ^ 00 ^ _aBiblioteca Universal Emp?s ^ _v35 ^ ^ 00 ^ _aBibliogr.: S [185] -190 ^ ^ 00 ^ _aLiteratura ^ _xT?ica ^ ^ 00 ^ _aVTLSFF4002 930429 0002 ^^^]
Posteriormente NACE MARCXML , con la definici?e un XML Schema para describir la estructura MARC21 y as?oder kode los registros MARC da XML:
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
El equivalente al ejemplo anterior, men da formato MARC es el siguiente:
�������������������� xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
�������������������� xsi: schemaLocation = "http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd">
��
����
����
����
������
������
����
����
������
����
����
������
����
����
������
������
����
����
������
������
������
����
����
������
����
����
������
������
������
����
����
������
������
������
������
����
����
������
������
����
����
������
����
����
������
������
����
����
������
����
��
As?ues, ante la nødvendigt at konvertere fra MARC21 en MARCXML, han desarrollado FN sencillo script da Python que realiza el proces. Para utilizarlo, Solo es nødvendigt pasarle Como parametro el fichero de origen y el DESTINO:
python marc2xml.py
Usage: run.py
Podeis descargar el script her
Ingen kommentarer:
Send en kommentar