hbz / lobid-resources

Transformation, web frontend, and API for the hbz catalog as LOD
http://lobid.org/resources
Eclipse Public License 2.0
8 stars 7 forks source link

ALMA-Fix: Add `publication.frequency` and `publication.note` #1484

Closed TobiasNx closed 2 years ago

TobiasNx commented 2 years ago

derivative of #1475

ALEPH-Morph is:

<!-- ####################### -->
<!-- ########## frequency -->
<!-- ####################### -->
<choose name="http://id.loc.gov/ontologies/bibframe/frequency">
<data source="052.">
    <regexp match="^........t|^.........t|^..........t"
        format="http://marc21rdf.info/terms/continuingfre#i"/>
</data>
<data source="052.">
    <regexp match="^........([dcwesmbqfaghz])|^.........([dcwesmbqfaghz])|^..........([dcwesmbqfaghz])"
        format="http://marc21rdf.info/terms/continuingfre#${1}"/>
</data>
</choose>
<!-- if 523-1p and 523-1a -->
<combine name="http://id.loc.gov/ontologies/bibframe/note" value="${p}${a}">
<data source="523[-a][-1].p" name="p">
    <regexp match="(.*)" format="${1}: "/>
</data>
<data source="523[-a][-1].a" name="a"/>
</combine>
...
<!-- if only 523-1a -->
<combine name="http://id.loc.gov/ontologies/bibframe/note" value="${a}">
<if>
    <none>
        <data source="523[-a][-1].p"/>
    </none>
</if>
<data source="523[-a][-1].a" name="a"/>
</combine>

Mapping for frequency from https://service-wiki.hbz-nrw.de/display/VDBE/ALT+-+Mapping+MAB2+-+MARC+21+-++Segmente+0---%2C+001+-+088+-+Kurzform:

052 Pos. 8-10   Erscheinungsweise              
052/8-10/3                  
d=täglich     008,18     d      
t=3-5 x wöchentl.     008,18     i      
c=2x wöchentl.     008,18     c      
w=wöchentl.     008,18     w      
e=14-tägig     008,18     e      
s=halbmonatl.     008,18     s      
k=laufend     008,18     k      
m=monatl.     008,18     m      
b=alle 2 Monate     008,18     b      
q=vierteljährl.     008,18     q      
f=halbjährl.     008,18     f      
a=jährl.     008,18     a      
g=alle 2 Jahre     008,18     g      
h=alle 3 Jahre     008,18     h      
i=dreimal pro Jahr     008,18     t      
j=dreimal im Monat     008,18     j      
z=sonst. & unregelmäßig     008,18     z

Mapping for note from https://service-wiki.hbz-nrw.de/pages/viewpage.action?pageId=483000321

523# $p $a 515 ## $a <523# $p>:_<523# $a> Anmerkung zur Zählung von fortlaufenden Ressourcen(Rückkonvertierung: 523# $a <523# $p>:_<523# $a) ($p entfällt)Hz ergänzt
dr0i commented 2 years ago

Fixed, see e.g. http://test.lobid.org/resources/990051552280206441.json and for frequency http://test.lobid.org/resources/990053976760206441.json. Closed.