Closed jstavel closed 10 years ago
I would like to attach marcoai xml file.
You have to add cze-dep
as library
parameter - this is not standard and it is only for our use:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from aleph import *
if __name__ == '__main__':
x = reactToAMQPMessage(SearchRequest(DocumentQuery("2762", "cze-dep")), "UUID")
print x.records[0]
prints:
AlephRecord(base=None, library='cze-dep', docNumber='2762', xml='<?xml version = "1.0" encoding = "UTF-8"?>
<find-doc>
<record>
<metadata>
<oai_marc>
<fixfield id="LDR">-----nam-a22------a-4500</fixfield>
<fixfield id="FMT">BK</fixfield>
<varfield id="BAS" i1=" " i2=" ">
<subfield label="a">49</subfield>
</varfield>
<fixfield id="001">nkc20140002762</fixfield>
<fixfield id="003">CZ-PrNK</fixfield>
<fixfield id="005">20140623142618.0</fixfield>
<varfield id="020" i1=" " i2=" ">
<subfield label="a">978-80-85979-67-1 (online : pdf)</subfield>
</varfield>
<varfield id="245" i1="0" i2="0">
<subfield label="a">Dra\xc4\x8d\xc3\xad doup\xc4\x9b plus</subfield>
<subfield label="h">[elektronick\xc3\xbd zdroj] :</subfield>
<subfield label="b">fantasy hra na hrdiny : besti\xc3\xa1\xc5\x99 /</subfield>
<subfield label="c">Matou\xc5\xa1 Je\xc5\xbeek</subfield>
</varfield>
<varfield id="260" i1=" " i2=" ">
<subfield label="a">[Ostrava] :</subfield>
<subfield label="b">Altar,</subfield>
<subfield label="c">2012</subfield>
</varfield>
<varfield id="856" i1="4" i2="0">
<subfield label="u">http://edeposit-test.nkp.cz/producents/zizala/epublications/draci-doupe-plus/drdplus-bestiar.pdf</subfield>
<subfield label="4">N</subfield>
</varfield>
<varfield id="856" i1="4" i2="2">
<subfield label="u">http://edeposit.nkp.cz/</subfield>
<subfield label="4">N</subfield>
</varfield>
<varfield id="928" i1="1" i2=" ">
<subfield label="a">ALTAR</subfield>
</varfield>
<varfield id="998" i1=" " i2=" ">
<subfield label="a">http://aleph.nkp.cz/F/?func=direct&doc_number=000002762&local_base=CZE-DEP</subfield>
</varfield>
<varfield id="IST" i1="1" i2=" ">
<subfield label="a">ox20140612</subfield>
<subfield label="b">zizala</subfield>
</varfield>
<varfield id="HLD" i1=" " i2=" ">
<subfield label="l">14/EB 00001</subfield>
<subfield label="n">ulo\xc5\xbeen\xc3\xad</subfield>
<subfield label="s">20140623</subfield>
<subfield label="j">e-book</subfield>
<subfield label="z">978-80-85979_12062014_00001</subfield>
</varfield>
<varfield id="STZ" i1=" " i2=" ">
<subfield label="a">du20140623</subfield>
<subfield label="b">mazi</subfield>
</varfield>
</oai_marc>
</metadata>
</record>
<session-id>T6D6974QBSMUGKFFY3ULYUBH436V8MTL5DTT7EE6IDN2Q4PC9A</session-id>
</find-doc>
', epublication=EPublication(ISBN=['978-80-85979-67-1'], nazev='Dra\xc4\x8d\xc3\xad doup\xc4\x9b plus', podnazev='fantasy hra na hrdiny : besti\xc3\xa1\xc5\x99 /', vazba='(online : pdf)', cena='', castDil='', nazevCasti='', nakladatelVydavatel='Altar,', datumVydani='2012', poradiVydani='', zpracovatelZaznamu='', format='', url='http://edeposit-test.nkp.cz/producents/zizala/epublications/draci-doupe-plus/drdplus-bestiar.pdf', mistoVydani='[Ostrava] :', ISBNSouboruPublikaci=[], autori=[], originaly=[], internal_url=''))
Thanks.
Hi, Acquisition proved a records with sysno: 2762 ... 2765
I loaded marc-oai record this way:
There is no field from acquisition in the file. The fields are: POV, HLD, STZ
Jan Stavel