SBL page range not appearing in first reference
I have the SBL 2nd edition and latest zotero. On first reference, shouldn't the footnote have the page range in addition to the specific number of the reference. On subsequent entries then you don't need the page range. However, zotero only gives the page number reference and takes out page range. It does it on both articles and book sections. Help?
This is a starting point: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step
I'm trying to figure out how to get it to show the page range (even if something is entered in the page box when creating a citation), and then also show the page number that is entered in the page box. Not quite sure if I can use a variable in some other way to accomplish this?
https://github.com/citation-style-language/styles/blob/master/society-of-biblical-literature-fullnote-bibliography.csl#L530
locator is what you put into the citation box -- so this says that the pages are printed where no locator is given -- it sounds like you just added this a second time.
Nope. I'm using the visual editor, but if I switch to code editor the changes I made resulted in this:
security settings won't let me insert xml and I don't know how to embed it with any escape characters for whatever this editor supports - so this is flattened. The key part is where I've added an extra text variable = "page"
macro name="pages"
choose
if type="article-journal"
text variable="page" prefix=": "
text variable="page"
if
else-if type="chapter paper-conference" match="any"
text variable="page" prefix=", "
else-if
choose
macro
When I do an inline citation the zotero search bar comes up, I enter the article, I select the article, then I can click on it and a little box comes up that enables me to enter additional info including page and suffix. If I enter a page number there, then only it shows. If I don't, then the page range shows. I want both.
So, I tried to simply put another element that refers to the page variable. But this variable value is set by what I enter into that box in the UI. Specifically, if I don't enter anything then the code is grabbing that data from the article entry in my library (i.e. the page range) and defaulting to that. If I enter a page number, then the page variable is set to that value. Thus, by simply adding another text varaible page entry, I'm just entering the variable value twice...i.e. the page range shows twice, or the page number shows twice.
I'm trying to figure out - how do I make the page range show up and also the page number show up.
One fix is to just enter the page number as a suffix. However, I already have several inline citations that I want to update. Zotereo actually used to render the style in the manner I describe but a recent update changed this and I'm trying to make it go back.
My only other ideas are to dig through the code to see how the page variable default value is set and create a new variable in CSL to try and do the same thing but don't name it page.
Or, if I could figure out some other trick in the CSL to just make it do what I need that would be great.
(You can wrap code in <code> and </code> html tags)
I'm trying to get the page range then the page number to show up, e.g. "231-235, 233."
With this change I made the variable value for page I enter is just showing up twice (either page range if I enter nothing, or the page number if I enter one):
<macro name="pages">
<choose>
<if type="article-journal">
<text variable="page" prefix=": "/>
<text variable="page"/>
</if>
<else-if type="chapter paper-conference" match="any">
<text variable="page" prefix=", "/>
</else-if>
</choose>
</macro>
<text variable="page" prefix=": "/>
<text variable="page"/>
Remove one of them.
I'm surprised the page number you enter would show up twice, though, that shouldn't be the case unless you made an analogous change referring to the locator.
locator
. Add that in the relevant place in the style, and it will show up. Search in the existing style and you will see where it currently is.