Citation Style dosn't show URLs

Hi,

I am trying to modify the "Harvard Reference format 7 (Author-Date) (de) (dev)" so that it works for my thesis. I now realized that it dosn't include URLs into the bibliography. May some one enlighten my on how to correkt that in the CSL editor!?

Thank's a lot!
JWH
  • look at the macro "access" - currently it test for webpage
    - if type="webpage"
    and only prints a URL for those.
    if you take out that entire conditional
    i.e.
    <choose>
    <if type="webpage">
    </if>
    </choose>

    (but not what's between that)
    Zotero will print the URL of all items without page ranges.
  • Hi adamsmith,
    sorry, but I am uncertain on what to delete. This is what I think the final result should look like e.g.:

    Bohman, James, Rehg, William (2009): "Jürgen Habermas". In: Zelta, Edward N. (ed.) The Stanford Encyclopedia of Philosophy (Summer 2009 Edition). URL: http://plato.stanford.edu/archives/sum2009/entries/habermas/ (May 2010).

    ... with the access date in brackets at the end.

    This is what it looks like in the CSL:

    </macro>
    <macro name="access">
    <choose>
    <if variable="DOI">
    <text variable="DOI" prefix="doi: "/>
    </if>
    <else>
    <choose>
    <if type="webpage">
    <group>
    <text term="retrieved" text-case="capitalize-first" suffix=" "/>
    <text value="am" suffix=" "/>
    <date variable="accessed">
    <date-part name="day" form="numeric-leading-zeros" suffix="."/>
    <date-part name="month" suffix="." form="numeric-leading-zeros"/>
    <date-part name="year" form="long"/>
    </date>
    <group>
    <text term="from" prefix=" " suffix=" "/>
    <text variable="URL"/>
    </group>
    </group>
    </if>
    </choose>
    </else>
    </choose>
    </macro>

    Thanks for your support!!
    JWH
  • OK, should be about this - but I haven't tested this - should give you an idea, though.


    <macro name="access">
    <choose>
    <if variable="DOI">
    <text variable="DOI" prefix="doi: "/>
    </if>
    <else-if variable="URL">
    <text variable="URL" prefix="URL: "/>
    <group prefix=" (" suffix=")">
    <date variable="accessed">
    <date-part name="month" suffix=" " form="long"/>
    <date-part name="year" form="long"/>
    </date>
    </group>
    </else-if>
    </choose>
    </macro>
  • I just tested it - works perfectly... thanks a lot!
    JWH
Sign In or Register to comment.