ibid error when no page
I have integrated ibid in my style. It works very well.
Just in one case it produces a wrong output:
If i cite e.g. a book without a page number and i cite it again without a page number, the second citation looks like this:
ibid, p.
(instead of just "ibid.")
I have disabled "p" for page. All other ibid are without p
How could I fix this?
this is my citation code:
https://pastebin.com/RupudN96
Just in one case it produces a wrong output:
If i cite e.g. a book without a page number and i cite it again without a page number, the second citation looks like this:
ibid, p.
(instead of just "ibid.")
I have disabled "p" for page. All other ibid are without p
How could I fix this?
this is my citation code:
https://pastebin.com/RupudN96
the last else-if adds the locator for everything if its not a case of ibid.
And again, else-if without an if condition isn't valid CSL (use else for that). I'm happy to try to help you debug your CSL, but you need to get it to the point where it validates. https://validator.citationstyles.org/
However, I changed lines 55, 57 to else.
What else would you change? There are a lot of else-conditions. Which do you mean?
<else-if>
by itself is never valid -- it needs a condition (that's what makes it else-IF)Edit -- you can post your whole code to pastebin and I can look at the validation, but it also really won't validate with an empty else-if condition in it, I just tested
https://pastebin.com/w1mwmT56
Basically you'll want to start
<else>
in row 98 (and then need to start with<if>
in row 100) and then end with</else></choose>
after row 217 (not in 201 where you had this originally). You'll want to clean up the 203-216 section which doesn't make a lot of sense right now and you'll probably need to do some diligence to make sure that the choose conditions line up. Getting indenting right using formatter.citationstyles.org/ will help with that.https://pastebin.com/PNAZBBPw
You'd need to figure out how to set choose/if/else-if/else conditions correctly (in the sense of both valid CSL and sensible conditionals).
To recap, the basic logic you want is
if position="ibid-with-locator"
else-if position = "ibid"
else
---> and then a whole set of if/else-if/else for the different item types within that last else, which captures all 'regular' citations.