Hi Devin,
You mentioned that your document type is a clone of "DEMOART". What
did you call it (i.e. what is the "doctype ID"?)
If, for example, you called it "CLONART", then your report-number-
generation function parameters could look something like this:
Parameter Name Parameter Value
autorngen Y
counterpath lastid_CLONART_<PA>categ</PA>_<PA>yy</PA>
edsrn DEMOART_RN
rnformat DEMO-<PA>categ</PA>-<PA>yy</PA>
rnin comboCLONART
yeargen AUTO
In fact, the one that is of particular importance to you is "rnin".
If you want to include the category in the report number, it's value
must be the string "combo" + "doctype-id". So in the demo site's
"DEMOART" submission, it is "comboDEMOART". In your cloned submission
though, it will be "comboYOURDOCTYPEID", hence "comboCLONART" in my
example above.
"comboCLONART" will be the name of a file created in the submission's
working directory, and will contain the "category" value that you
selected at the beginning of the submission (article, preprint or
report in the DEMOART example.)
I hope this helps.
Best wishes,
Nick.
On Jun 17, 2008, at 8:58 PM, Devin Bougie wrote:
Hi Tibor and Tony,
On Jun 17, 2008, at 6:18 AM, Tibor Simko wrote:
On Mon, 16 Jun 2008, Devin Bougie wrote:
I'm having trouble using categories in v0.99.0. If I clone DEMOART,
for example, the categories no longer seem to function properly.
The
original DEMOART document type works properly, but if I submit an
article using the cloned DEMOART document type, the new record
becomes
"DEMO--2008-006" instead of "DEMO-ARTICLE-2008-006".
(again I'm forwarding to the list Tony's reply)
The category (ARTICLE, PREPRINT or REPORT as selected on the first
page of the submission) is not getting through to the function that
generates the report number i.e. Report_Number_Generation.py
Please check that your parameters for Report_Number_Generation.py are
Parameter Name Parameter Value
autorngen Y
counterpath lastid_DEMOART_<PA>categ</PA>_<PA>yy</PA>
edsrn DEMOART_RN
rnformat DEMO-<PA>categ</PA>-<PA>yy</PA>
rnin comboDEMOART
yeargen AUTO
Yes, these are the parameters (which are the same as in the original
DEMOART document type).
The category for the submission is the parameter rnin which should
have the value comboDEMOART. comboDEMOART is defined as soon as you
select the category
Please let me know what else I can check.
Thanks,
Devin