Skip to content

Commit

Permalink
Update source field for rs in DBS data and fix digits bug (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Mar 8, 2016
1 parent e3f6e06 commit fd8a4b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/resources/morph-enriched.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
</choose>
</combine>
<choose>
<data source="gemeindekennzahl" name="rs">
<regexp match="(\d{11})" format="0${1}"/>
</data>
<data source="gemeindekennzahl" name="rs">
<data source="stk_2007" name="rs">
<regexp match="\d{12}" />
</data>
<data source="stk_2007" name="rs">
<regexp match="(\d{11})" format="0${1}"/>
</data>
<data source="032P.n" name="rs">
<lookup in="rs_map" />
</data>
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/test_morph-enriched.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
<literal name="typ_text" value="Öffentliche Bibliothek" />
<literal name="utr_text" value="Land" />
<literal name="gro_text" value="1.000.001 und mehr" />
<literal name="stk_2007" value="10510011011" />
</record>
<record id="de-123">
<literal name="ema" value="some.one@example.com" />
<literal name="tvw" value="-221" />
<literal name="tel" value="123" />
<literal name="stk_2007" value="100460000000" />
</record>
</records>
</cgxml>
Expand Down Expand Up @@ -67,6 +69,7 @@
</record>
<record id="de-10">
<!--<literal name="inr" value="dbs-id" />-->
<literal name="rs" value="010510011011" />
<entity name="classification">
<literal name="id" value="http://purl.org/lobid/libtype#n33" />
<literal name="value" value="Öffentliche Bibliothek" />
Expand All @@ -85,6 +88,7 @@
<literal name="telephone" value="0221 123" />
<literal name="email" value="mailto:some.one@example.com" />
-->
<literal name="rs" value="100460000000" />
</record>
</records>
</cgxml>
Expand Down

0 comments on commit fd8a4b2

Please sign in to comment.