Books and "Retrieved from" with APA
I've been importing book citations from various online sources (Amazon, Lib. Catalogs, Google Books). When I export them in APA format, I get a "Retrieved from ." at the end of the book citation. Since I actually use a print copy and there's often no URL, I'd like to find a way to remove that from the CSL. But I can't figure out how that would be done. Anybody else with the same problem/solution?
Or delete the URL from your record.
Sayer, R. A. (1995). Radical political economy. Wiley-Blackwell. Retrieved from .
<text macro="access"/>
. But I don't think you should need to do this to fix your problem.Sayer, R. A. (1995). Radical political economy. Wiley-Blackwell.
Check to make sure your URL field is really empty. If my URL field has a period, I get:Sayer, R. A. (1995). Radical political economy. Wiley-Blackwell. Retrieved from .
As above, you can modify the style fairly trivially to make it so it doesn't use any access information at all.
http://forums.zotero.org/discussion/4884/doi-reference-in-apastyle/
It does affect the access macro, so maybe it's relevant. I'm not sure why the DOI variable was there for APA in the first place, since to my knowledge it's not part of the citation style.
http://ksulib.typepad.com/talking/2008/03/recent-changes.html
Thanks for the help--I'll just go back to the stock style.
<macro name="access">
<choose>
<if variable="URL">
<text value="test"/>
</if>
</choose>
</macro>
But both these tests never result in any output:
<if variable="accessed">
and<if is-date="accessed">
Both are valid tests, right? Does that mean the CSL processor doesn't handle things correctly? The original code of the access macro does output the accessed date if present:
<date variable="accessed" suffix=", ">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
<macro name="date-webpage-accessed">
<choose>
<if variable="accessed" match="any">
<date variable="accessed">
<date-part name="day" suffix="."/>
<date-part name="month" form="numeric-leading-zeros" suffix="."/>
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
This code always results in displaying the "no date" term. Without the "else" statement it shows nothing. But when i delete the whole conditional statement the accessed-dates are shown correctly (where they are available):
<macro name="date-webpage-accessed">
<date variable="accessed">
<date-part name="day" suffix="."/>
<date-part name="month" form="numeric-leading-zeros" suffix="."/>
<date-part name="year"/>
</date>
</macro>
I thought this might mean that testing dates is not possible, but the same code testing the "issued" -date works correctly:
<macro name="date-webpage-issued">
<choose>
<if variable="issued" match="any">
<date variable="issued">
<date-part name="day" suffix="."/>
<date-part name="month" form="numeric-leading-zeros" suffix="."/>
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>
i really dont understand that.
- peter -
I believe I have found a fix which I will try to submit shortly.