URL not showing

I have just updated Firefox and Open office as its been a while i have not used Zotero. My problem now is my URL does not show in my Openoffice

example:

Gloria, A., Ronca, D., Russo, T., D’Amora, U., Chierchia, M., De Santis, R., Nicolais, L. and Ambrosio, L. (2011) Technical features and criteria in designing fiber-reinforced composite materials: from the aerospace and aeronautical field to biomedical applications. Journal of Applied Biomaterials & Biomechanics: JABB, 9(2), p.151-163. [online] Available at: , (Accessed on 12 April 2011).

Before, the URL http://www.ncbi.nlm.nih.gov/pubmed/****** should show after Available at:

this is how i made my style modified from a Harvard type one

<macro name="access">
<group>
<text value="[online] Available at:" suffix=" "/>
<text variable="URL"/>
<group prefix=", (" suffix=")">
<text term="accessed" text-case="capitalize-first" suffix=" on "/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
</macro>


PLEASE HELP
  • yes - Zotero actually treated this "wrong" in the past, when this problem was corrected we had to fix this in a bunch of styles.
    It's simple though, you just have to test for the presence of a URL first, i.e. put

    <choose>
    <if variable="URL">

    between <macro name="access". and <group>

    and put
    </if>
    </choose>
    right before </macro>
  • Hi,

    Im having a similar problem with the url not showing. I tried the fix above but it didn't work for me.

    It seems that the problem only occurs where there is a page range stated (as with online journals) and the URL is present but not the DOI.

    Are there any other workarounds available? The macro works fine with webpage and newspaper articles items as well as journals with DOI's.


    <macro name="access">
    <choose>
    <if variable="DOI" >
    <text prefix="[Online] DOI: " variable="DOI"></text>
    </if>
    <else-if variable="URL" >
    <text variable="URL" prefix="Available at: "/>
    </else-if>
    </choose>

    <choose>
    <if variable="issued" >
    <group prefix=" (" suffix=")">
    <text term="accessed" text-case="capitalize-first" suffix=": "/>
    <date variable="accessed">
    <date-part name="day" suffix=" "/>
    <date-part name="month" suffix=" "/>
    <date-part name="year"/>
    </date>
    </group>
    </if>
    </choose>
    </macro>
  • There's a box to show URLs even where page ranges are given (by default that disables the URL variable) in the Cite tab of the Zotero preferences under Styles.
  • Thanks adamsmith,

    It works perfectly now. :-)

    I was going mad rewriting this in so many ways trying to find the fault.

    You and the team have done a really great job with Zotero.
Sign In or Register to comment.