I am attempting to replace a custom extract process with a new OAI
crosswalk.

This crosswalk should only output records with a specific dc.type field.

Unfortunately, my extract process fails if I attempt to skip a specific
record.  Note that in the following code, I am generating an empty document
with a root tag <skip-record/> to work around this issue.

If you are familiar with this part of the system, could you offer any
advice?

Thanks, Terry

      <xsl:variable name='type'
select="doc:metadata/doc:element[@name='dc']/doc:element[@name='type']//doc:field[@name='value']/text()"/>
        <xsl:choose>
            <xsl:when test="$type != 'ETD'">
<marc:record>
                   .. this is a record that I want to ouput
</marc:record>
            </xsl:when>
            <xsl:otherwise>
                    <skip-record/>
            </xsl:otherwise>
        </xsl:choose>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://github.com/terrywbrady/info
425-298-5498 (Seattle, WA)

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to