Not show number of pages in book
I created my own CSL style with online generator (http://www.somwhere.org/csl) for entry "book" and "journal article" but zotero don't generate the total number of pages. But i added the total number of pages in zotero database.
I have this version of zotero -- 2.0b7.6
fragment of CSL source:
<macro name="page">
<choose>
<if type="article-journal">
<text variable="page" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</if>
<else-if type="book">
<text variable="page" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</else-if>
<else>
<text variable="page" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</else>
</choose>
</macro>
<bibliography>
<layout>
<choose>
<if type="article-journal">
<text macro="author-short" prefix="" suffix=""/>
<text macro="title" prefix="" suffix=" // "/>
<text macro="container-title" prefix="" suffix=". --- "/>
<text macro="year-date" prefix="" suffix=". --- "/>
<text macro="volume" prefix="" suffix=". --- "/>
<text macro="issue" prefix="%u2116 " suffix=". --- "/>
<text macro="page" prefix="%u0421. " suffix="."/>
</if>
<else-if type="book">
<text macro="author-short" prefix="" suffix="."/>
<text macro="title" prefix="" suffix=". — "/>
<text macro="publisher-place" prefix="" suffix=": "/>
<text macro="publisher" prefix="" suffix=", "/>
<text macro="year-date" prefix="" suffix=". — "/>
<text macro="page" prefix="" suffix=" с."/>
</else-if>
<else>
<text variable="citation-number" prefix="" suffix=". "/>
<text macro="author-short" prefix="" suffix=". "/>
<text macro="title" prefix="" suffix=". --- "/>
<text macro="publisher-place" prefix="" suffix=":"/>
<text macro="publisher" prefix="" suffix=","/>
<text macro="year-date" prefix="" suffix=". --- "/>
<text macro="page" prefix="" suffix=" %u0441. —"/>
I have this version of zotero -- 2.0b7.6
fragment of CSL source:
<macro name="page">
<choose>
<if type="article-journal">
<text variable="page" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</if>
<else-if type="book">
<text variable="page" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</else-if>
<else>
<text variable="page" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</else>
</choose>
</macro>
<bibliography>
<layout>
<choose>
<if type="article-journal">
<text macro="author-short" prefix="" suffix=""/>
<text macro="title" prefix="" suffix=" // "/>
<text macro="container-title" prefix="" suffix=". --- "/>
<text macro="year-date" prefix="" suffix=". --- "/>
<text macro="volume" prefix="" suffix=". --- "/>
<text macro="issue" prefix="%u2116 " suffix=". --- "/>
<text macro="page" prefix="%u0421. " suffix="."/>
</if>
<else-if type="book">
<text macro="author-short" prefix="" suffix="."/>
<text macro="title" prefix="" suffix=". — "/>
<text macro="publisher-place" prefix="" suffix=": "/>
<text macro="publisher" prefix="" suffix=", "/>
<text macro="year-date" prefix="" suffix=". — "/>
<text macro="page" prefix="" suffix=" с."/>
</else-if>
<else>
<text variable="citation-number" prefix="" suffix=". "/>
<text macro="author-short" prefix="" suffix=". "/>
<text macro="title" prefix="" suffix=". --- "/>
<text macro="publisher-place" prefix="" suffix=":"/>
<text macro="publisher" prefix="" suffix=","/>
<text macro="year-date" prefix="" suffix=". --- "/>
<text macro="page" prefix="" suffix=" %u0441. —"/>
(Also, for what it's worth, that CSL generator is old and produces bad output, and it's recommended that it not be used.)
UPDATE:
I downloaded this style with "number-of-pages" value:
http://code.google.com/p/zotero-gost-rus-bibliography/
But it's not generated the bibliography with total number of pages in book:
Aspects of the Theory of Syntax [Текст] / N. Chomsky. — Cambridge: M.I.T. Press, 1965.
And it's should be:
Aspects of the Theory of Syntax [Текст] / N. Chomsky. — Cambridge: M.I.T. Press, 1965. — 265 p.
UPDATE #2:
I think i should add this:
<macro name="number-of-pages">
<text variable="number-of-pages" font-style="normal" vertical-align="baseline" font-weight="normal" text-case="" form=""/>
</macro>
<bibliography>
<if type="book">
<text macro="author" prefix="" suffix=" "/>
<text macro="title-text"/>
<text macro="volume-book" prefix=": "/>
<text macro="collection-title" prefix=": " suffix=""/>
<text macro="author-short"/>
<text macro="publisher-place" prefix=". — " suffix=": "/>
<text macro="publisher" prefix="" suffix=", "/>
<text macro="year-date" prefix="" suffix="."/>
<text macro="number-of-pages"/>
</if>
</bibliography>
<macro name="citation-number">
<text variable="citation-number" font-style="normal" vertical-align="baseline" />
</macro>
<macro name="title">
<text variable="title" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="editor">
<text variable="editor" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="translator">
<text variable="translator" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="publisher">
<text variable="publisher" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="publisher-place">
<text variable="publisher-place" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="number-of-volume">
<text variable="number-of-volume" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="issue">
<text variable="issue" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="URL">
<text variable="URL" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="DOI">
<text variable="DOI" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="edition">
<text variable="edition" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="collection-title">
<text variable="collection-title" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="volume">
<text variable="volume" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="number-of-pages">
<text variable="number-of-pages" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="container-title">
<text variable="container-title" font-weight="normal" font-style="normal" text-case="" vertical-align="baseline" form=""/>
</macro>
<macro name="author-short">
<names variable="author">
<name font-weight="normal" font-style="normal" />
</names>
</macro>
<macro name="year-date">
<date variable="issued" font-weight="normal" font-style="normal">
<date-part name="year" form="long" suffix=""/>
</date></macro>
<macro name="author-citation">
<names variable="author">
<name form="short"/>
</names>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter="," font-weight="normal" font-style="normal" vertical-align="baseline">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography>
<layout>
<text macro="author-short" prefix="" suffix=""/>
<text macro="title" prefix="" suffix=""/>
<text macro="publisher" prefix="" suffix=""/>
<text macro="year-date" prefix="" suffix=""/>
<text macro="number-of-pages" prefix="" suffix=""/>
</layout>
</bibliography>
Result:
Jane Austen Annette BarnesEmmaPearson Education1999
I don't think "number-of-pages" works at the moment. It will in the new CSL processor.
b7.7 (or 8?) will be out soon.
And for version 2.0b7.6 can i generate the bibilography with total number of pages, perhaps with undocumented capabilities of zotero? :) Or it's no method to do this in this version? Or nobody before ask it ? :) then no issue to do total number of pages in a book since zotero 1.0?