seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
75 stars 39 forks source link

Missing title with chicago-fullnote-bibliography #44

Closed lnprieto closed 6 years ago

lnprieto commented 6 years ago

Hi With chicago-fullnote-bibliographyn the item's title isn't displayed. It is displayed in others formats. I tried the example given in the README and the same occurs : no title. The condition is true. We used to use the old library academicpuma/citeproc-php and with it, titles are displayed. But with it we had other problems that have been solved in this version. Is there a way to have the title displayed ? Thank you in advance

seboettg commented 6 years ago

Hi, Thank you for this comment. In order to reproduce your issue, I need the input data, with which the error occurred.

lnprieto commented 6 years ago

Thank for this quick answer. I reproduce this with the data given in the README, which is simpler than ours

[ { "author": [ { "family": "Doe", "given": "James", "suffix": "III" } ], "id": "item-1", "issued": { "date-parts": [ [ "2001" ] ] }, "title": "My Anonymous Heritage", "type": "book" }, { "author": [ { "family": "Anderson", "given": "John" }, { "family": "Brown", "given": "John" } ], "id": "ITEM-2", "type": "book", "title": "Two authors writing a book" } ]

seboettg commented 6 years ago

Looks like the "none" conditions don't work.

The if condition matches, although title exists. Thus, "else-if" and "else" can't never reached.

<choose>
    <if variable="title" match="none"> <!-- this matches, though title exists --> 
        .... 
    </if>
    <else-if type="book graphic motion_picture song" match="any">
        ...
    </else-if>
    <else>
        ...
    </else>
<choose>

I'm working on a solution to the problem.

seboettg commented 6 years ago

The bug is solved with release v2.0.3.

Thank you for reporting this bug!

lnprieto commented 6 years ago

Great ! Thank you very much !