Ignore:
Timestamp:
12/22/10 13:27:06 (13 years ago)
Author:
patdui
Message:
  • added resourceType facet and added a list of resources on the show result page.
  • added i18n properties
  • fixed some olac facets supporting multiple patterns to match a facet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo_webapp/src/main/resources/importerConfig.xml

    r996 r1007  
    1111          <property name="originName" value="OLAC Metadata Providers" />
    1212          <property name="rootFile"
    13             value="/Users/patdui/data/snapshots2/olac-cmdi-20101105/_corpusstructure/collection_root.cmdi" />
     13            value="/Users/patdui/data/snapshots2/olac-cmdi-20101214/_corpusstructure/collection_root.cmdi" />
    1414          <property name="facetMapping" ref="olacMapping"></property>
    1515        </bean>
     
    121121        </bean>
    122122        <bean class="eu.clarin.cmdi.vlo.importer.DataRoot">
    123           <property name="originName" value="CLARIN LRT" />
     123          <property name="originName" value="CLARIN LRT inventory" />
    124124          <property name="rootFile"
    125125            value="/Users/patdui/data/snapshots2/lrt-20101117/_corpusstructure/collection_lrt_inventory.cmdi" />
     
    130130  </bean>
    131131
    132   <!--
    133     Mapping of facets to XPATH expressions. The facets should correspond to the facets described in the
    134     solr/conf/schema.xml file of the SOLR Server installation
    135   -->
    136 
    137   <bean id="imdiMapping" class="eu.clarin.cmdi.vlo.importer.FacetMapping"> <!-- add year? -->
     132<!--    Mapping of facets to XPATH expressions. The facets should correspond to the facets described in the-->
     133<!--    solr/conf/schema.xml file of the SOLR Server installation-->
     134
     135  <bean id="imdiMapping" class="eu.clarin.cmdi.vlo.importer.FacetMapping">  <!-- add year? -->
    138136    <property name="idMapping" value="/CMD/Header/MdSelfLink/text()" />
    139137    <property name="facets">
     
    196194        <bean class="eu.clarin.cmdi.vlo.importer.FacetConfiguration">
    197195          <property name="name" value="country" />
    198           <property name="pattern" value="/CMD/Components/OLAC-DcmiTerms/spatial/text()" />
    199           <!--
    200             /CMD/Components/OLAC-DcmiTerms/spatial[@dcterms-type="ISO3166"] -> country
    201             /CMD/Components/OLAC-DcmiTerms/coverage[@dcterms-type="ISO3166"] -> country
    202           -->
     196          <property name="patterns">
     197            <list>
     198                <value>/CMD/Components/OLAC-DcmiTerms/spatial[@dcterms-type="ISO3166"]/text()</value>
     199                <value>/CMD/Components/OLAC-DcmiTerms/coverage[@dcterms-type="ISO3166"]/text()</value>
     200            </list>
     201          </property>
    203202        </bean>
    204203        <bean class="eu.clarin.cmdi.vlo.importer.FacetConfiguration">
    205204          <property name="name" value="language" />
    206           <property name="pattern" value="/CMD/Components/OLAC-DcmiTerms/language/@olac-language" />
     205          <property name="patterns">
     206            <list>
     207                <value>/CMD/Components/OLAC-DcmiTerms/language/@olac-language</value>
     208                <value>/CMD/Components/OLAC-DcmiTerms/subject/@olac-language</value>
     209            </list>
     210          </property>
    207211        </bean>
    208212        <bean class="eu.clarin.cmdi.vlo.importer.FacetConfiguration">
     
    219223          <property name="pattern" value="/CMD/Components/OLAC-DcmiTerms/description/text()" />
    220224        </bean>
    221         <!--
    222           <entry key="continent"> <value>CMD/Components/olac</value> </entry>-->
    223         <!--        <entry key="subject">-->
    224         <!--          <value>CMD/Components/OLAC-DcmiTerms/subject</value> -->
    225         <!-- [@dcterms-type="LCSH"]  -->
    226         <!--        </entry>-->
     225        <bean class="eu.clarin.cmdi.vlo.importer.FacetConfiguration">
     226          <property name="name" value="subject" />
     227          <property name="patterns">
     228            <list>
     229                <value>/CMD/Components/OLAC-DcmiTerms/subject/@olac-linguistic-field</value>
     230                <value>/CMD/Components/OLAC-DcmiTerms/subject[@dcterms-type="LCSH"]/text()</value>
     231            </list>
     232          </property>
     233          <property name="caseInsensitive" value="true" />
     234        </bean>
    227235      </list>
    228236    </property>
Note: See TracChangeset for help on using the changeset viewer.