Help with citation style

Hello!

What am I doing wrong?


<macro name="access">
<!-- Macro utilizada para apresentar a URL do site utilizado e data de acesso -->
<choose>
<if variable="DOI">
<!-- Quando houver DOI, utilizá-lo no lugar do link -->
<text term="available at" text-case="capitalize-first" prefix=" " suffix=": "/>
<text variable="DOI" prefix="https://doi.org/" suffix=". "/>
<text macro="access-expression"/>
</if>
<else-if variable="URL">
<choose>
<if variable="ISSN">
<text term="available at" text-case="capitalize-first" prefix=" " suffix=": "/>
<text variable="URL" suffix=". "/>
<text macro="access-expression"/>
</if>
<else-if type="book chapter">
<!-- Quando for livro, incluir a expressão e-book em itálico -->
<text term="available at" text-case="capitalize-first" prefix=" " suffix=": "/>
<text variable="URL" suffix=". "/>
<text macro="access-expression"/>
<text value="e-book" text-case="capitalize-first" font-style="italic" suffix="."/>
</else-if>
<else>
<text term="available at" text-case="capitalize-first" prefix=" " suffix=": "/>
<text variable="URL" suffix=". "/>
<text macro="access-expression"/>
</else>
</choose>
</else-if>
</choose>
</macro>
<macro name="access-expression">
<!-- formato de acesso utiliza a macro accessed -->
<text term="accessed" text-case="capitalize-first"/>
<text term="at" text-case="lowercase" prefix=" " suffix=": "/>
<text macro="accessed"/>
</macro>
<macro name="accessed">
<!-- Macro utilizada para a data de acesso -->
<date variable="accessed" suffix=".">
<date-part name="day" suffix=" "/>
<date-part name="month" form="short" suffix=" "/>
<date-part name="year" prefix=" "/>
</date>
</macro>


I'm getting this result:

ADVANCES IN DRUG RESEARCH. London: Academic Press, 1964. ISSN 0065-2490. Disponível em: http://www.ufrgs.br/secom/ciencia/simplificar-para-compreender/. Acesso em: 18 mar. 2021.
BIBLIOTECA CENTRAL UFRGS. [Março das mulheres]. Porto Alegre, 2020. Twitter: bc_UFRGS. Disponível em: https://twitter.com/BC_UFRGS/status/1234837429804204034. Acesso em: 4 mar. 2020.
CALLON, Michel; COSTA, Jorge Alberto Vieira. Dos estudos de laboratório aos estudos de coletivos heterogêneos, passando pelos gerenciamentos econômicos. Entrevista a Antonio Arellano Hernández e Ivan da Costa Marques. Sociologias, Porto Alegre, v. 10, n. 19, p. 302–321, 2008. Disponível em: https://doi.org/10.1590/S1517-45222008000100013.
LIMONGI-FRANÇA, Ana Cristina. Qualidade de vida no trabalho (QVT): conceitos e práticas nas empresas da sociedade pós-industrial. 2. ed. São Paulo: Atlas, 2012. Disponível em: https://integrada.minhabiblioteca.com.br/#/books/9788522478514/cfi/4!/4/2@100:0.00. E-book.


But I wanted to be like:

ADVANCES IN DRUG RESEARCH. London: Academic Press, 1964. ISSN 0065-2490. Disponível em: http://www.ufrgs.br/secom/ciencia/simplificar-para-compreender/. Acesso em: 18 mar. 2021.
BIBLIOTECA CENTRAL UFRGS. [Março das mulheres]. Porto Alegre, 2020. Twitter: bc_UFRGS. Disponível em: https://twitter.com/BC_UFRGS/status/1234837429804204034. Acesso em: 4 mar. 2020.
CALLON, Michel; COSTA, Jorge Alberto Vieira. Dos estudos de laboratório aos estudos de coletivos heterogêneos, passando pelos gerenciamentos econômicos. Entrevista a Antonio Arellano Hernández e Ivan da Costa Marques. Sociologias, Porto Alegre, v. 10, n. 19, p. 302–321, 2008. Disponível em: https://doi.org/10.1590/S1517-45222008000100013. Acesso em: 18 mar. 2021.
LIMONGI-FRANÇA, Ana Cristina. Qualidade de vida no trabalho (QVT): conceitos e práticas nas empresas da sociedade pós-industrial. 2. ed. São Paulo: Atlas, 2012. Disponível em: https://integrada.minhabiblioteca.com.br/#/books/9788522478514/cfi/4!/4/2@100:0.00. Acesso em: 18 mar. 2021. E-book.

My macro: access-expression is not beeing included as it should when I use variable: DOI and value: e-book.

Thanks again!
  • This looks right in general, we'd have to see the whole style.

    There are two small issues in the above -- there shouldn't be a semicolon after prefix="https://doi.org/"; and you should use match="any" for the else-if condition, but I don't think they'd change anything here.

    Do other styles display access dates for those items?
  • For the ebooks and chapters, I can't replicate that. Make sure you actually have a valid accessed date there.

    For the DOI in journal articles, it looks like Zotero isn't including the accessed date when there's no URL -- and for items with a page range, the URL is ommitted unless you check the "Include URL" checkbox in the Cite tab of the preferences.
  • My itens are like this at my library:


    [
    {
    "id": "http://zotero.org/groups/1919373/items/U7FCEY86",
    "type": "book",
    "edition": "2",
    "event-place": "São Paulo",
    "publisher": "Atlas",
    "publisher-place": "São Paulo",
    "title": "Qualidade de vida no trabalho (QVT): conceitos e práticas nas empresas da sociedade pós-industrial",
    "URL": "https://integrada.minhabiblioteca.com.br/#/books/9788522478514/cfi/4!/4/2@100:0.00",
    "author": [
    {
    "family": "Limongi-França",
    "given": "Ana Cristina"
    }
    ],
    "issued": {
    "date-parts": [
    [
    "2012"
    ]
    ]
    }
    },
    {
    "id": "http://zotero.org/groups/1919373/items/8KGTHU3M",
    "type": "article-journal",
    "archive": "SciELO Brasil",
    "container-title": "Sociologias",
    "DOI": "10.1590/S1517-45222008000100013",
    "ISSN": "1517-4522",
    "issue": "19",
    "note": "publisher-place: Porto Alegre\ngenre: Entrevista a Antonio Arellano Hernández e Ivan da Costa Marques",
    "page": "302-321",
    "title": "Dos estudos de laboratório aos estudos de coletivos heterogêneos, passando pelos gerenciamentos econômicos",
    "URL": "https://doi.org/10.1590/S1517-45222008000100013",
    "volume": "10",
    "author": [
    {
    "family": "Callon",
    "given": "Michel"
    },
    {
    "family": "Costa",
    "given": "Jorge Alberto Vieira"
    }
    ],
    "accessed": {
    "date-parts": [
    [
    "2021",
    3,
    18
    ]
    ]
    },
    "issued": {
    "date-parts": [
    [
    "2008"
    ]
    ]
    }
    }
    ]
  • Right, no accessed date for the book.
  • Thank you!!

    I always forget about that checkbox and I totally couldn't see that this book didn't have a date for access.

    Sorry for the trouble!
  • FWIW, I think the behavior of the checkbox is particularly perplexing here. I can see a certain logic in omitting the accessed date if no URL is given, but it's not apparent from any label or documentation.
  • Is there a way for this DOI inclusion have same behavior as URL (only appear if checkbox is checked)?


    <if variable="DOI">
    <!-- Quando houver DOI, utilizá-lo no lugar do link -->
    <text term="available at" text-case="capitalize-first" prefix=" " suffix=": "/>
    <text variable="DOI" prefix="https://doi.org/"; suffix=". "/>
    <text macro="access-expression"/>
    </if>

  • No, only exists for URLs (and we're actually thinking about removing that option, too)
  • Got it!

    Thanks again for your always marvelous work!!

    Ps: Even though I always forget about it, it would be really good if omitting URL was an option at "document preferences".
Sign In or Register to comment.