Changeset 2408 for metadata


Ignore:
Timestamp:
12/11/12 16:23:21 (11 years ago)
Author:
dietuyt
Message:

Added a condition that adds a ResourceProxy? of the type SearchService? for specific Collections (determined by the collection parameter)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xslt/imdi2clarin.xsl

    r2378 r2408  
    2424    URI. Omit this if you are unsure. -->
    2525    <xsl:param name="uri-base"/>
     26
     27    <!-- definition of the SRU-searchable collections at TLA (for use later on) -->
     28    <xsl:variable name="SruSearchable">childes,ESF corpus,IFA corpus,MPI CGN,talkbank</xsl:variable>
    2629
    2730    <xsl:template name="metatranscriptDelegate">
     
    5457                <xsl:apply-templates select="//Description[not(normalize-space(./@ArchiveHandle)='') or not(normalize-space(./@Link)='')]" mode="linking"/>
    5558                <xsl:apply-templates select="//Corpus" mode="linking"/>
     59                <!-- If this collection name is indicated to be SRU-searchable, add a link to the TLA SRU endpoint -->
     60                <xsl:if test="$collection and contains($SruSearchable,$collection)">
    5661                <ResourceProxy id="sru">
    5762                    <ResourceType>SearchService</ResourceType>
    5863                    <ResourceRef>http://cqlservlet.mpi.nl/</ResourceRef>
    5964                </ResourceProxy>
     65                </xsl:if>
    6066            </ResourceProxyList>
    6167            <JournalFileProxyList> </JournalFileProxyList>
Note: See TracChangeset for help on using the changeset viewer.