</xsl:choose>
</xsl:variable>
+ <xsl:variable name="has_fulltext">
+ <xsl:choose>
+ <xsl:when test="marc:datafield[@tag='856']/marc:subfield[@code='q']">
+ <xsl:text>yes</xsl:text>
+ </xsl:when>
+ <xsl:when test="marc:datafield[@tag='856']/marc:subfield[@code='i']='TEXT*'">
+ <xsl:text>yes</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>no</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
<pz:record>
-
<xsl:for-each select="marc:controlfield[@tag='001']">
<pz:metadata type="id">
<xsl:value-of select="."/>
</pz:metadata>
</xsl:for-each>
+ <pz:metadata type="has-fulltext">
+ <xsl:value-of select="$has_fulltext"/>
+ </pz:metadata>
+
<xsl:for-each select="marc:datafield[@tag='773']">
<pz:metadata type="citation">
<xsl:for-each select="*">