Locators Zotero 2.1.6
Having to use locators that are not in Zotero (previous posts), since I don't need "sub verbo", I added a test so as to ignore it and enter the label and the locator itself in the dedicated field.
1/ CSL 0.8 didn't accept sub verbo, nor does CSL 1.0, as the valdator says :
Error: Bad value sub verbo for attribute locator on element if from namespace http://purl.org/net/xbiblio/csl.
From line 545, column 5; to line 545, column 28
<if locator="sub verbo">
2/ So as in Zotero 2.0. I tested all the other locators, as follow:
<macro name="locator-refs">
<choose>
<if locator="book chapter column figure folio issue line note opus page paragraph part section verse volume" match="none">
<text variable="locator" prefix=", "/>
</if>
<else>
<label variable="locator" form="short" prefix=", "/>
<text variable="locator" prefix=" "/>
</else>
</choose>
</macro>
But in Zotero 2.1.6 whatever is the locator, the label never appears. I changed the test with "any", or just with "page", but it looks as if testing the locator makes it ignore the rest of the macro.
Thanks for your help
1/ CSL 0.8 didn't accept sub verbo, nor does CSL 1.0, as the valdator says :
Error: Bad value sub verbo for attribute locator on element if from namespace http://purl.org/net/xbiblio/csl.
From line 545, column 5; to line 545, column 28
<if locator="sub verbo">
2/ So as in Zotero 2.0. I tested all the other locators, as follow:
<macro name="locator-refs">
<choose>
<if locator="book chapter column figure folio issue line note opus page paragraph part section verse volume" match="none">
<text variable="locator" prefix=", "/>
</if>
<else>
<label variable="locator" form="short" prefix=", "/>
<text variable="locator" prefix=" "/>
</else>
</choose>
</macro>
But in Zotero 2.1.6 whatever is the locator, the label never appears. I changed the test with "any", or just with "page", but it looks as if testing the locator makes it ignore the rest of the macro.
Thanks for your help
https://github.com/citation-style-language/schema/blob/master/csl-terms.rnc
In any case, for me at least testing for sub verbo still works. You'll likely have to author your style in csl 1.0 so that conversion doesn't fail but otherwise I see no reason why you shouldn't use that.
I tested
<choose>
<if locator="sub verbo">
<text value="test"/>
</if>
</choose>
and that worked fine.
It might also make sense to consider changing "sub verbo" to "sub-verbo". Any objections to that?
I think changing to sub-verbo would be good, yes.
<locale>
<terms>
<term name="sub verbo">
<single></single>
<multiple></multiple>
</term>
</terms>
</locale>
That way you wouldn't need a conditional.
Apparently the processor is treating the argument to the locator attribute on conditional statements as a single token; it does work correctly if only one locator type is specified. I'll fix this in the processor, and the fix should appear in the next Zotero version.
Meanwhile, Rintze' simple suggestion to just redefine the sub verbo term as empty is worth a look; that should work just fine.
but unfortunately, although the validator admits it, it doesn't have any effect.
If I choose "sub verbo" in the Zotero panel I get the label "s. vv." (without quotes)
2/ I made another test, as follows :
<macro name="locator-refs">
<choose>
<if locator="book chapter column figure folio issue line note opus page paragraph part section verse volume" match="any">
<text value="BRANCHE1"/>
<label variable="locator" form="short" prefix=", "/>
<text variable="locator" prefix=" "/>
</if>
<else>
<text value="BRANCHE2"/>
<text variable="locator" prefix=", "/>
</else>
</choose>
</macro>
Whatever locator I choose, I obtain BRANCHE2 and no label
Replacing match "any" by match "none", I then always obtain BRANCHE1 followed by the locator label ( "s. vv." included)
Very strange
Re Rintze' proposal, be sure that the term is aligned with the CSL version (CSL 1.0 uses the structure in the example, CSL 0.8.1 was a bit different). I'm pretty sure that I tested for empty terms. If it's definitely not working, paste the style to http://gist.github.com/ as a public gist and post the URL from the address bar back here; I'll be happy to take a look and test it locally.
<term name="sub verbo" form="short">
<single></single>
<multiple></multiple>
</term>
The result is exactly what I need.
Furthermore, it's much simpler.
Excuse me for giving a incomplete information.
The locator's label is then omitted in the citation, and to that point, it's fine.
However, there is a special problem with sub verbo:
Once we have entered a note containing "sub verbo" as a locator, next time we want to modify it, the locator field is blank. If one doesn't pay attention, this blank information will be transformed to "page" the next time !
I tried it with Chicago full note and obtained the same result as with my own style
It's quite dangerous to leave it as it is.
We hope a solution will soon be found.
2/ I saw on other threads that some people ask for more locator types. Since we have this kind of problem I understand their request.
But I again plead for an "joker" type, with no label attached that would allow everybody to use it as his own field requests
http://forums.zotero.org/discussion/14717/universal-locator-type/
Do you mean it would be in 2.1.8 ?
https://www.zotero.org/trac/timeline
which I guess will be 1.0.178
I am unable to find out if it was supposed to be operational.
I will describe how it works with the 2.1.8 (I tried the 2.1.8.r10027 which crashes):
If we enter sub verbo in a citation, the result is OK, but if we want to modify it, we discover that the locator label has been erased in the Zotero panel, and, more serious, it has been considered as "page". If we look at it again in the Zotero panel, the label is now "page", there is no trace of the initial label, that is "sub verbo"
But if we cite exactly the same reference, with the same location (we then obtain "Ibid"), and we want to modify it, we discover that "sub verbo" has been left. But,of course, if we modify it, "sub verbo" disappears as in the case before.
With which stable release can we hope to get this question solved ?
Thanks
I'll report back on what I find after I've had a chance to take a look. Feel free to ping this thread if you don't hear back in a day or two.
2. No, no locators in the bibliography (they always refer to an individual citation of an item, not the item itself)