# Names variable 'publisher'

**URL:** <https://discourse.citationstyles.org/t/names-variable-publisher/1056>\
**Category:** CSL Development\
**Created:** [January 4, 2012, 12:29am UTC](https://discourse.citationstyles.org/t/names-variable-publisher/1056 "2012-01-04T00:29:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Parnot](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Charles\_Parnot](https://discourse.citationstyles.org/u/Charles_Parnot)\
**Post date:** [January 4, 2012, 12:29am UTC](https://discourse.citationstyles.org/t/names-variable-publisher/1056/1 "2012-01-04T00:29:01Z")

</div>

I noticed that the variable ‘publisher’ is listed in the specifications document under the name variables (and also in the general variables), but is not in the schema:

[https://raw.github.com/citation-style-language/schema/v1.0/csl-variables.rnc](https://raw.github.com/citation-style-language/schema/v1.0/csl-variables.rnc)  
[http://citationstyles.org/downloads/specification.html](http://citationstyles.org/downloads/specification.html)

I realize the schema wins, and the style is not validating because of that. Though interestingly, I had hit the ‘publisher’ variable a few months ago from another perspective: a bug report, where the ‘publisher’ variable used in names resulted in an error in the output, because our database was returning a single string, instead of an array (like for ‘author’ or ‘editor’). At the time, I did not realize it was not in the schema, and coded a workaround to return an array of one object when in the context of ‘names’.

Anyway, I could not find any reference to this in the archives, so I thought I’d mention it (my apologies if this was in fact in a previous discussion).

My take would be to keep the schema as is, and remove the ‘publisher’ reference from the specs. It seems that you really can only output one publisher anyway (?).

Charles–  
Charles Parnot  
@Charles_Parnot  
twitter: @cparnot

> **[Home - Papers](https://www.papersapp.com/)**
>
> ReadCube Papers is your award winning reference manager that will improve the way you find, access, organize, read, cite and share scholarly research.

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [January 4, 2012, 1:05am UTC](https://discourse.citationstyles.org/t/names-variable-publisher/1056/2 "2012-01-04T01:05:23Z")

</div>

> I noticed that the variable ‘publisher’ is listed in the specifications document under the name variables (and also in the general variables), but is not in the schema:
> 
> [https://raw.github.com/citation-style-language/schema/v1.0/csl-variables.rnc](https://raw.github.com/citation-style-language/schema/v1.0/csl-variables.rnc)  
> [Redirecting…](http://citationstyles.org/downloads/specification.html)

The publisher variable is there in schema, but it’s a regular variable  
rather than a name, and there is only one field for it (apart from  
“original-publisher”). There has been discussion of making it a  
creator variable, but the sticking point has been that it would need  
an additional subfield for “publisher-place” to work properly. In  
citeproc-js I’ve hacked around the limitation from the other  
direction, casting parallel, semicolon-delimited  
publisher/publisher-place pairs as formatted pairs in the output – a  
non-standard, bad solution that would confuse users and hasn’t been  
publicized, but which works with the current field arrangement in  
Zotero.

(Apart from which, I don’t think I’ve yet welcomed you to the list,  
Charles, so welcome! It’s really great to see the Papers2 processor  
come onstream. If you can see your way clear to open-sourcing the code  
at some point down the road, it would be a great contribution. If it’s  
useful as a point of reference, developer feedback has been an  
invaluable source of guidance for citeproc-js, and in no way a  
burden.)

Frank

---

<div class="post-metadata">

**Author:** ![Charles\_Parnot](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Charles\_Parnot](https://discourse.citationstyles.org/u/Charles_Parnot)\
**Post date:** [January 4, 2012, 1:11am UTC](https://discourse.citationstyles.org/t/names-variable-publisher/1056/3 "2012-01-04T01:11:50Z")

</div>

Indeed, I had noticed it’s in the general variables in both the schema and the specs, but for some reason also listed in the names in the specs. It only came up while I validated the bioessays style, for which I had not seen an issue before because I had only focused on the specs, not done any validation (bad!!).

So I wanted to point out the discrepancy in the specs. For the style, I have indeed used the generic variable instead with the ‘text’ element.

And thanks for the nice welcome too 🙂  
(open-sourcing would be nice, I’ll do my best… and you are right, it definitely can have some benefits!)

charles

---

<div class="post-metadata">

**Author:** ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)\
**Post date:** [January 4, 2012, 3:52am UTC](https://discourse.citationstyles.org/t/names-variable-publisher/1056/4 "2012-01-04T03:52:13Z")

</div>

You’ve found a small mistake in the CSL 1.0 specification. I eliminated the  
"publisher" variable from the list of name variables for CSL 1.0, but  
apparently I didn’t update the spec. It is already fixed in the trunk. See  
also [https://github.com/citation-style-language/schema/issues/13](https://github.com/citation-style-language/schema/issues/13)

RintzeOn Tue, Jan 3, 2012 at 7:29 PM, Charles Parnot \<@Charles\_Parnot\>wrote:

---

<div class="post-metadata">

**Author:** ![Charles\_Parnot](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@Charles\_Parnot](https://discourse.citationstyles.org/u/Charles_Parnot)\
**Post date:** [January 4, 2012, 6:04am UTC](https://discourse.citationstyles.org/t/names-variable-publisher/1056/5 "2012-01-04T06:04:07Z")

</div>

Ah! In addition to the mailing list, I had searched the wrong repo for the issue, namely the ‘styles’, which was a bit silly of me, I have to admit. And I now see Google brings that thread up with ‘names publisher CSL’. Sigh. I’ll be sure to search things better next time… Thanks for the link!
