Skip to content

Commit

Permalink
Fix parsing of 083
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Jul 22, 2017
1 parent 29a7b0c commit 338f445
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/humord-c28807.ttl
Expand Up @@ -11,6 +11,7 @@
dcterms:identifier "HUME28807" ;
dcterms:modified "2016-12-09"^^xsd:date ;
skos:broader <http://data.ub.uio.no/humord/c08282> ;
skos:exactMatch <http://dewey.info/class/584.92/e23/> ;
skos:inScheme <http://data.ub.uio.no/humord/> ;
skos:note "Lukket bemerkning: ubo16"@nb ;
skos:prefLabel "Undervannsgeologi"@nb .
Expand Down
5 changes: 5 additions & 0 deletions examples/humord-c28807.xml
Expand Up @@ -14,6 +14,11 @@
<subfield code="b">nob</subfield>
<subfield code="f">humord</subfield>
</datafield>
<datafield tag="083" ind2="4" ind1="0">
<subfield code="a">584.92</subfield>
<subfield code="2">23no</subfield>
<subfield code="4">=EQ</subfield>
</datafield>
<datafield ind1=" " ind2=" " tag="150">
<subfield code="a">Undervannsgeologi</subfield>
<subfield code="9">rank=preferred</subfield>
Expand Down
1 change: 1 addition & 0 deletions mc2skos/record.py
Expand Up @@ -678,6 +678,7 @@ def parse(self, options):
self.append_relation(
ConceptScheme('ddc', ClassificationRecord, edition=el.text('mx:subfield[@code="2"]')),
SKOS.exactMatch,
collection='class',
object=self.get_class_number(el)
)

Expand Down

0 comments on commit 338f445

Please sign in to comment.