Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#938 closed enhancement (fixed)

conditionals on locators don't work in CSL

Reported by: erazlogo Owned by: simon
Priority: major Milestone: 1.0.4
Component: styles Version: 1.0
Keywords: Cc:

Description

I tried this:

  <group prefix=", ">
    <choose>
      <if locator="page" match="none">
	<label variable="locator" form="short" suffix=". "/>
      </if>
    </choose>
    <text variable="locator"/>
  </group>

And got this error (and no label):

Error: citation is not defined
Source File: chrome://zotero/content/xpcom/cite.js
Line: 1313

Change History (3)

comment:1 Changed 9 years ago by codec

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in update [2333]

comment:2 Changed 9 years ago by simon

Assuming it works, this should probably be:

<label variable="locator" form="short" include-period="true" suffix=" "/>

comment:3 Changed 9 years ago by erazlogo

it works! codec & simon--many thanks for the fix and the code.

Note: See TracTickets for help on using tickets.