[Koha] import with file.xsl
anabela semedo
anabela556 at hotmail.com
Sat Dec 8 04:37:26 NZDT 2018
can you see in this line Katrin.
<xsl:template name="transform-datafield">
<xsl:param name="srcTag"/>
<xsl:param name="dstTag" select="@srcTag"/>
<xsl:param name="srcCodes" select="$all-codes"/>
<xsl:param name="dstCodes" select="$srcCodes"/>
<xsl:if test="marc:datafield[@tag=$srcTag]/marc:subfield[contains($srcCodes, @code)]">
<xsl:for-each select="marc:datafield[@tag=$srcTag]">
<marc:datafield tag="{$dstTag}">
<xsl:call-template name="copy-indicators"/>
<xsl:call-template name="transform-subfields">
<xsl:with-param name="srcCodes" select="$srcCodes"/>
<xsl:with-param name="dstCodes" select="$dstCodes"/>
</xsl:call-template>
</marc:datafield>
</xsl:for-each>
</xsl:if>
</xsl:template>
<xsl:template name="transform-personal-name">
<xsl:param name="srcTag"/>
<xsl:param name="dstTag"/>
<xsl:for-each select="marc:datafield[@tag=$srcTag]">
<marc:datafield tag="{$dstTag}" ind1="{@ind2}" ind2="">
________________________________
De: Koha <koha-bounces at lists.katipo.co.nz> em nome de Katrin Fischer <katrin.fischer.83 at web.de>
Enviado: 7 de dezembro de 2018 09:55
Para: koha at lists.katipo.co.nz
Assunto: Re: [Koha] import with file.xsl
Hi anabela,
it looks like some of the xsl is missing from the code below. Where is
transform-personal-name template defined?
Katrin
On 06.12.18 14:38, anabela semedo wrote:
> hi
>
> i need to import data with z39.50 from Library of Portugal with file.xsl because the tags is not a same.
>
> hi have a problem when import the their field 700 to our field 100 because their are the subfields 700$a$b and we are only 100$a and i can not calling de firstname of authors.
>
> <!-- 700->100 -->
> <xsl:call-template name="transform-personal-name">
> <xsl:with-param name="srcTag">700</xsl:with-param>
> <xsl:with-param name="dstTag">100</xsl:with-param>
> <xsl:with-param name="srcCodes">abf</xsl:with-param>
> <xsl:with-param name="dstCodes">ad</xsl:with-param>
> </xsl:call-template>
>
> <!-- 701->700 -->
> <xsl:call-template name="transform-personal-name">
> <xsl:with-param name="srcTag">701</xsl:with-param>
> <xsl:with-param name="dstTag">700</xsl:with-param>
> <xsl:with-param name="srcCodes">ab</xsl:with-param>
> <xsl:with-param name="dstCodes">a</xsl:with-param>
> </xsl:call-template>
>
> <!-- 702->700 -->
> <xsl:call-template name="transform-personal-name">
> <xsl:with-param name="srcTag">702</xsl:with-param>
> <xsl:with-param name="dstTag">700</xsl:with-param>
> <xsl:with-param name="srcCodes">ab</xsl:with-param>
> <xsl:with-param name="dstCodes">a</xsl:with-param>
> </xsl:call-template>
>
>
> It's the same with 701 and 702.
> can someone help me?
>
> Ana Bela
>
>
>
> _______________________________________________
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________
Koha mailing list http://koha-community.org
Koha at lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list