Skip to content
Permalink
Browse files

rip out is_pseudonym field, DIH isn't playing nicely

  • Loading branch information
hossman committed Feb 25, 2011
1 parent a882346 commit d407b19f55350b803900d7190f56bbbaac2a6755
Showing with 6 additions and 10 deletions.
  1. +1 −10 src/isfdb-solr-home/conf/isfdb-dih.xml
  2. +5 −0 src/isfdb-solr-home/conf/schema.xml
@@ -1,13 +1,4 @@
<dataConfig>
<script><![CDATA[
function isPseudonym(row) {
var real_id = row.get('real_author_id');
// having a real_id means it's a pseudonym
// tried just testing null, but it didn't work
row.put('is_pseudonym', (null != real_id));
return row;
}
]]></script>
<dataSource type="JdbcDataSource"
driver="com.mysql.jdbc.Driver"
encoding="UTF-8"
@@ -60,7 +51,7 @@
</entity>
</entity>
<entity name="author"
transformer="TemplateTransformer,script:isPseudonym"
transformer="TemplateTransformer"
query="select A.author_id as author_id,
A.author_marque as marque,
A.author_lastname as last_name,
@@ -113,7 +113,12 @@
<field name="birth_place" type="simpletext" multiValued="false"/>

<!-- is this author a pseudonym for someone else -->
<!-- :TODO: couldn't get DIH to populate this cleanly,
for now use: -real_author_id:[* TO *]
-->
<!--
<field name="is_pseudonym" type="boolean" multiValued="false" />
-->

<!-- pseudonyms for our author -->
<field name="pseudonym_ids" type="string" multiValued="true" />

0 comments on commit d407b19

Please sign in to comment.
You can’t perform that action at this time.