AFAICT, the publisher is not included in magazine articles, newspapers, etc.., 
but that's just based on this page: 
https://docs.google.com/gview?url=http://owl.english.purdue.edu//media/pdf/20110928111055_949.pdf&chrome=true

I am not sure if the best place for the `<choose>` element is then in the macro 
itself, or in the group that calls the macro in the `<bibliography>`. Here is 
what I have tentatively done in the macro. I figured it's best to keep the main 
`<layout>` as clean as possible:

  <macro name="publisher">
    <choose>
      <if type="report" match="any">
        <group delimiter=": ">
          <text variable="publisher-place"/>
          <text variable="publisher"/>
        </group>
      </if>
      <else-if type="thesis" match="any">
        <group delimiter=", ">
          <text variable="publisher"/>
          <text variable="publisher-place"/>
        </group>
      </else-if>
      <else>
        <group delimiter=", ">
          <choose>
            <if variable="event" match="none">
              <text variable="genre"/>
            </if>
          </choose>
          <choose>
            <if type="article-journal article-magazine" match="none">
              <group delimiter=": ">
                <text variable="publisher-place"/>
                <text variable="publisher"/>
              </group>
            </if>
          </choose>
        </group>
      </else>
    </choose>
  </macro>



On Mar 20, 2012, at 9:43 AM, Bruce D'Arcus wrote:

> What APA do with publishers in other, non-journal, articles?
> 
> In any case, the current code probably reflects that Zotero hasn't had
> a "publisher" variable on journal articles. So I see no problem is
> tightening this up. The question is just how best to do this.
> 
> On Tue, Mar 20, 2012 at 12:37 PM, Charles Parnot
> <[email protected]> wrote:
>> I am going through some tickets in Papers2 regarding styles. I have this one 
>> ticket I am not sure how to best handle:
>> 
>>> … I inserted a bibliography, these publishers' names also showed up in the 
>>> citation. In the APA style, we do not cite the names of the publishers for 
>>> journal papers (we do cite publishers' name for books)…
>> 
>> It looks like the issue that was discussed before, where the 'publisher' 
>> variable is only relevant for non-articles in Zotero and is thus only 
>> displayed for e.g. books. In Papers, articles can have a publisher, and it 
>> seems the consensus is that this is actually a proper behavior, see the 
>> discussion we had on github: 
>> https://github.com/citation-style-language/styles/issues/82#issuecomment-3681234
>>  and following comments.
>> 
>> I'd be happy to modify APA to have some conditionals added on the publisher, 
>> but since it's such an important style, I don't want to mess it up, so I'd 
>> like to get your advice or comments first. Or if you guys think we should 
>> simply never output a publisher for articles.
>> 
>> Thanks for your feedback!
>> 
>> Charles
>> 
>> --
>> Charles Parnot
>> [email protected]
>> twitter: @cparnot
>> http://mekentosj.com
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> xbiblio-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
> 
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here 
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> xbiblio-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

--
Charles Parnot
[email protected]
twitter: @cparnot
http://mekentosj.com



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
xbiblio-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to