How to collapse consecutive numbers in a citation

I was making a numbered style csl file when I ran into this. How do you
collapse consecutive references to get citation like this (1, 3-5) instead
of (1, 3, 4, 5)?
In the old schema there was the “collapse” attribute. Is there an equivalent
to this in the new schema?

Peter Stoilov wrote:

I was making a numbered style csl file when I ran into this. How do you
collapse consecutive references to get citation like this (1, 3-5)
instead of (1, 3, 4, 5)?
In the old schema there was the “collapse” attribute. Is there an
equivalent to this in the new schema?

It seems that dropped out.

Simon, it seems we need this added back as an “option” on citation? Can
you do that?

If not, I’ll see if I can find time tomorrow.

Bruce

Peter Stoilov wrote:

I was making a numbered style csl file when I ran into this. How do you
collapse consecutive references to get citation like this (1, 3-5)
instead of (1, 3, 4, 5)?
In the old schema there was the “collapse” attribute. Is there an
equivalent to this in the new schema?

I made a change to the schema to add this as a parameter option on the
citation. Can you and anyone else check this to make sure it makes sense?

Bruce

I tried it with the current development version of Zotero (1.0.0rc4.r1646)
and it doesn’t seem to work. Are there other way to test it? Does Citeproc
support the new schema? I am not sure if I am the best person to test this.
I am amateur in this field.

Peter

Peter Stoilov wrote:

I tried it with the current development version of Zotero
(1.0.0rc4.r1646) and it doesn’t seem to work. Are there other way to
test it? Does Citeproc support the new schema? I am not sure if I am the
best person to test this. I am amateur in this field.

Oh, I was just referring to testing the schema.

Simon or Dan will have to make some changes to their code to implement it.

Bruce