Menu

xml2ris (v4.15) incorrectly converts the publication date to "PY - DA - yyyy//"

2012-11-22
2013-01-10
  • Matthias Steffens

    Hi,

    when converting MODS XML to RIS using Bibutils v4.15, the publication year (e.g., "2003") gets converted into "PY - DA - 2003//" instead of just "PY - 2003" or "DA - 2003//".

    As an example, this command:

    xml2ris -i utf8 -o utf8 DA_test.xml > DA_test.ris
    

    with file 'DA_test.xml' containing:

    <?xml version="1.0" encoding="UTF-8" ?>
    
    <modsCollection xmlns="http://www.loc.gov/mods/v3">
        <mods version="3.2" ID="Aberle+Witte2003Deep-sea">
            <titleInfo>
                <title>Deep-sea macrofauna exposed to a simulated sedimentation event in the abyssal NE Atlantic: in situ pulse-chase experiments using ¹³C-labelled phytodetritus</title>
            </titleInfo>
            <name type="personal">
                <namePart type="family">Aberle</namePart>
                <namePart type="given">N</namePart>
                <role>
                    <roleTerm authority="marcrelator" type="text">author</roleTerm>
                </role>
            </name>
            <name type="personal">
                <namePart type="family">Witte</namePart>
                <namePart type="given">U</namePart>
                <role>
                    <roleTerm authority="marcrelator" type="text">author</roleTerm>
                </role>
            </name>
            <originInfo>
                <dateIssued>2003</dateIssued>
            </originInfo>
            <note>exported from refbase (https://refbase.ipoe.uni-kiel.de/refs/show.php?record=21520), last updated on Sat, 15 Jul 2006 22:24:16 +0200</note>
            <typeOfResource>text</typeOfResource>
            <location>
                <url>http://www.int-res.com/abstracts/meps/v251/p37-47/</url>
            </location>
            <identifier type="doi">10.3354/meps251037</identifier>
            <identifier type="citekey">Aberle+Witte2003Deep-sea</identifier>
            <relatedItem type="host">
                <titleInfo>
                    <title>Marine Ecology Progress Series</title>
                </titleInfo>
                <titleInfo type="abbreviated">
                    <title>Mar Ecol Prog Ser</title>
                </titleInfo>
                <originInfo>
                    <dateIssued>2003</dateIssued>
                    <publisher>Inter-Research</publisher>
                    <place>
                        <placeTerm type="text">Oldendorf/Luhe</placeTerm>
                    </place>
                    <issuance>continuing</issuance>
                </originInfo>
                <genre authority="marcgt">periodical</genre>
                <genre>academic journal</genre>
                <part>
                    <detail type="volume">
                        <number>251</number>
                    </detail>
                    <extent unit="page">
                        <start>37</start>
                        <end>47</end>
                    </extent>
                </part>
                <identifier type="issn">0171-8630</identifier>
            </relatedItem>
        </mods>
        <mods version="3.2" ID="Arrigo2003PrimProd">
            <titleInfo>
                <title>Primary production in sea ice</title>
            </titleInfo>
            <name type="personal">
                <namePart type="family">Arrigo</namePart>
                <namePart type="given">K</namePart>
                <namePart type="given">R</namePart>
                <role>
                    <roleTerm authority="marcrelator" type="text">author</roleTerm>
                </role>
            </name>
            <originInfo>
                <dateIssued>2003</dateIssued>
            </originInfo>
            <note>exported from refbase (https://refbase.ipoe.uni-kiel.de/refs/show.php?record=21647), last updated on Mon, 18 Oct 2010 12:17:39 +0200</note>
            <typeOfResource>text</typeOfResource>
            <location>
                <url>http://www3.interscience.wiley.com/cgi-bin/summary/117888178/SUMMARY</url>
            </location>
            <identifier type="doi">10.1002/9780470757161.ch5</identifier>
            <identifier type="citekey">Arrigo2003PrimProd</identifier>
            <relatedItem type="host">
                <titleInfo>
                    <title>Sea ice – an introduction to its physics, chemistry, biology and geology</title>
                </titleInfo>
                <name type="personal">
                    <namePart type="family">Thomas</namePart>
                    <namePart type="given">D</namePart>
                    <namePart type="given">N</namePart>
                    <role>
                        <roleTerm authority="marcrelator" type="text">editor</roleTerm>
                    </role>
                </name>
                <name type="personal">
                    <namePart type="family">Dieckmann</namePart>
                    <namePart type="given">G</namePart>
                    <namePart type="given">S</namePart>
                    <role>
                        <roleTerm authority="marcrelator" type="text">editor</roleTerm>
                    </role>
                </name>
                <originInfo>
                    <dateIssued>2003</dateIssued>
                    <publisher>Blackwell Science Ltd</publisher>
                    <place>
                        <placeTerm type="text">Oxford</placeTerm>
                    </place>
                    <issuance>monographic</issuance>
                </originInfo>
                <genre authority="marcgt">book</genre>
                <part>
                    <extent unit="page">
                        <start>143</start>
                        <end>183</end>
                    </extent>
                </part>
                <identifier type="isbn">0-632-05808-0</identifier>
            </relatedItem>
        </mods>
        <mods version="3.2" ID="Assur1958">
            <titleInfo>
                <title>Composition of sea ice and its tensile strength</title>
            </titleInfo>
            <name type="personal">
                <namePart type="family">Assur</namePart>
                <namePart type="given">A</namePart>
                <role>
                    <roleTerm authority="marcrelator" type="text">author</roleTerm>
                </role>
            </name>
            <originInfo>
                <dateIssued>1958</dateIssued>
                <publisher>National Academy of Sciences, National Research Council</publisher>
                <place>
                    <placeTerm type="text">Washington DC</placeTerm>
                </place>
            </originInfo>
            <note>exported from refbase (https://refbase.ipoe.uni-kiel.de/refs/show.php?record=5746), last updated on Wed, 24 Nov 2010 09:32:32 +0100</note>
            <typeOfResource>text</typeOfResource>
            <identifier type="citekey">Assur1958</identifier>
            <relatedItem type="host">
                <titleInfo>
                    <title>Arctic sea ice: proceedings of the conference conducted by the Division of Earth Sciences and supported by the Office of Naval Research</title>
                </titleInfo>
                <originInfo>
                    <dateIssued>1958</dateIssued>
                    <publisher>National Academy of Sciences, National Research Council</publisher>
                    <place>
                        <placeTerm type="text">Washington DC</placeTerm>
                    </place>
                </originInfo>
                <genre authority="marcgt">conference publication</genre>
                <part>
                    <extent unit="page">
                        <start>106</start>
                        <end>138</end>
                    </extent>
                </part>
                <relatedItem type="series">
                    <titleInfo>
                        <title>National Research Council Publications</title>
                    </titleInfo>
                    <titleInfo type="abbreviated">
                        <title>Nat Res Council Publ</title>
                    </titleInfo>
                    <part>
                        <detail type="volume">
                            <number>598</number>
                        </detail>
                    </part>
                </relatedItem>
            </relatedItem>
        </mods>
    </modsCollection>
    

    results in this RIS output in file 'DA_test.ris':

    TY  - JOUR
    AU  - Aberle, N.
    AU  - Witte, U.
    PY  - DA  - 2003//
    TI  - Deep-sea macrofauna exposed to a simulated sedimentation event in the abyssal NE Atlantic: in situ pulse-chase experiments using ¹³C-labelled phytodetritus
    T2  - Mar Ecol Prog Ser
    JO  - Marine Ecology Progress Series
    SP  - 37
    EP  - 47
    VL  - 251
    PB  - Inter-Research
    CY  - Oldendorf/Luhe
    SN  - 0171-8630
    UR  - http://www.int-res.com/abstracts/meps/v251/p37-47/
    DO  - 10.3354/meps251037
    N1  - exported from refbase (https://refbase.ipoe.uni-kiel.de/refs/show.php?record=21520), last updated on Sat, 15 Jul 2006 22:24:16 +0200
    ID  - Aberle+Witte2003Deep-sea
    ER  - 
    TY  - CHAP
    AU  - Arrigo, K. R.
    ED  - Thomas, D. N.
    ED  - Dieckmann, G. S.
    PY  - DA  - 2003//
    TI  - Primary production in sea ice
    BT  - Sea ice – an introduction to its physics, chemistry, biology and geology
    SP  - 143
    EP  - 183
    PB  - Blackwell Science Ltd
    CY  - Oxford
    SN  - 0-632-05808-0
    UR  - http://www3.interscience.wiley.com/cgi-bin/summary/117888178/SUMMARY
    DO  - 10.1002/9780470757161.ch5
    N1  - exported from refbase (https://refbase.ipoe.uni-kiel.de/refs/show.php?record=21647), last updated on Mon, 18 Oct 2010 12:17:39 +0200
    ID  - Arrigo2003PrimProd
    ER  - 
    TY  - CONF
    AU  - Assur, A.
    PY  - DA  - 1958//
    TI  - Composition of sea ice and its tensile strength
    T2  - Nat Res Council Publ
    BT  - Arctic sea ice: proceedings of the conference conducted by the Division of Earth Sciences and supported by the Office of Naval Research
    T3  - National Research Council Publications
    SP  - 106
    EP  - 138
    VL  - 598
    PB  - National Academy of Sciences, National Research Council
    CY  - Washington DC
    N1  - exported from refbase (https://refbase.ipoe.uni-kiel.de/refs/show.php?record=5746), last updated on Wed, 24 Nov 2010 09:32:32 +0100
    ID  - Assur1958
    ER  -
    

    Note the incorrect formatting of the PY/DA field.

    Best regards,
    Matthias

     
  • Chris Putnam

    Chris Putnam - 2012-11-23

    Oops. Thanks for letting me know. The fix will be in version 4.16.

    I think the best thing to do in the output is to generate both PY and DA tags, as in:

    PY - 1958
    DA - 1958//

    Unless this causes a problem for programs that consume RIS-formatted files.

    Chris.

     
  • Matthias Steffens

    Yes, including both tags seems good to me.

    FWIW, refbase currently only recognizes PY, though future refbase releases will probably prefer DA over PY (if present). So including both is fine for us.

    Thanks again,
    Matthias

     
  • Chris Putnam

    Chris Putnam - 2013-01-10

    This should now be fixed in version 4.16. I'll chalk up this bug to me learning how to use but not abuse my version control system.

    Chris.

     

Log in to post a comment.