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 authored and Hadoop committed Mar 9, 2016
1 parent e3f6e06 commit 46b8ee5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/flow/Constants.java
Expand Up @@ -35,7 +35,7 @@ public class Constants {

// ELASTICSEARCH SETTINGS
protected static final String ES_CLUSTER = "lobid-hbz";
protected static final String ES_INDEX = "organisations-staging";
protected static final String ES_INDEX = "organisations";
protected static final String ES_TYPE = "organisation";
protected static final String SERVER_NAME = "quaoar1.hbz-nrw.de";

Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/morph-enriched.xml
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
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 46b8ee5

Please sign in to comment.