Change the page display to be dependant on a locator. Requires 1.0.2 to work correctly.

This commit is contained in:
Julian Onions 2007-11-30 09:50:53 +00:00
parent fadef0c9d9
commit 0939f9b0b3

View File

@ -80,8 +80,12 @@
</group> </group>
</macro> </macro>
<macro name="pageno"> <macro name="pageno">
<label variable="page" suffix=". " form="short"/> <choose>
<text variable="page"/> <if variable="locator" match="none">
<label variable="page" suffix=". " form="short"/>
<text variable="page"/>
</if>
</choose>
</macro> </macro>
<macro name="pageref"> <macro name="pageref">
<label variable="locator" suffix=". " form="short"/> <label variable="locator" suffix=". " form="short"/>
@ -141,8 +145,9 @@
<text macro="publisher"/> <text macro="publisher"/>
<text macro="date"/> <text macro="date"/>
</group> </group>
<text macro="pageno"/>
<text macro="pageref"/>
</group> </group>
<text macro="pageref" prefix=", "/>
</else-if> </else-if>
<else> <else>
<group delimiter=", "> <group delimiter=", ">
@ -152,6 +157,7 @@
<text macro="volref"/> <text macro="volref"/>
<text macro="date"/> <text macro="date"/>
<text macro="volumes"/> <text macro="volumes"/>
<text macro="pageno"/>
<text macro="pageref"/> <text macro="pageref"/>
</group> </group>
</else> </else>