Is it possible to print special text if publisher = author

Hello
What I mean with the topic is: if I have a report and changed the CSL file to have Publisher substitute for author if I could print out "Washington: Author." So the bibliography would print like this.

American Psychiatric Association. (1994). Diagnostic and statistical manual of mental disorders. Washington: Author.

Instead of repeating the Author like this:
American Psychiatric Association. (1994). Diagnostic and statistical manual of mental disorders. Washington: American Psychiatric Association.

Hope I explained it right.
  • no, you can't test for the content of a variable, sorry. Which style requires this?
  • Thanks for the quick answer. And I really like this program.

    What I am doing is trying to localize the APA style to the standards that have been laid out for the icelandic APA localization. In the book I have with some guidelines about it, it says "In bibliography, reports should be treated like it was a book. If the Author is not mentioned, you should take the organization that published the report as the author, so in the citation the organization should be cited" (translation is mine). And the example given is the one mentioned above.

    So that is what I was trying to do.
  • ok I see that's also in the general APA guidelines and not some Icelandic quirk ;-).
    Still, I see no way to do this - not even clear if and how that could be addressed in the future.
  • Ok, thanks. This is what I thought, but wasn't 100% shure. And I thought it was some Icelandic quirk :-)

    I also had to change the apa.csl style to substitute publisher if author was empty, maybe it was taken out (or never put in) because of this problem.

    Maybe I will just cheat and have publisher = "Author" and Author= "American Psychiatric Association"
  • that's a good point - I should probably add the author/publisher substitution for the general apa.
  • I thought about this - I'm not quite sure how I would add the publisher substitute - that's not a general rule, is it? In some cases it's probably better to have the title instead? Right now I'm leaving this as is, but curious how you coded this and what your experience is.
  • Hello adamsmith
    I added the publisher substitute like this:

    <macro name="author">
    <names variable="author">
    <name name-as-sort-order="all" and="text" sort-separator=", "
    initialize-with=". " delimiter=", " delimiter-precedes-last="never"/>
    <!-- Don't want to show (ed.) after the editors name -->
    <!-- <label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/> -->
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <TEXT VARIABLE="PUBLISHER"/> <-- Uppercase is mine
    <text macro="title"/>
    </substitute>
    </names>
    </macro>

    I think my teachers want me to have the publisher instead of Title, if the publisher is known and author is not and sometimes there are some organizations or universities behind the reports. This as how the APA guidelines are given to me by the by the icelandic universities.

    Best regards
    Styrmir
  • yeah that won't do for the general style unfortunately - APA wants the title to substitute the author as a general rule
  • What is this then.

    "In bibliography, reports should be treated like it was a book. If the Author is not mentioned, you should take the organization that published the report as the author, so in the citation the organization should be cited

    I haven't read all of the APA 6th style only this one chapter that is a part of my book.
  • yeah, but there is also this:
    "Unknown Author: If the work does not have an author, cite the source by its title in the signal phrase or use the first word or two in the parentheses. Titles of books and reports are italicized or underlined; titles of articles, chapters, and web pages are in quotation marks."
  • Just a thougt, is it then possible to have a if statement inside the author, if type="report" then
    <substitute>
    ...
    <text variable="publisher"/>
    ...
  • You can do so from within the cs:substitute element. See http://citationstyles.org/downloads/specification.html#substitute
  • I think that makes sense - I don't see it as high priority so this may take a while, but I'll get to this eventually.
  • OK, this is now implemented as a condition of the cs:substitute element as Rintze and styrmirm suggested. At this point you'll have to manually re-install the style to update.
    Thanks everyone for their input, this thread can be closed.
Sign In or Register to comment.