unb-libraries/ojs-extras — Issue #12: cleanUp modifications
Author: AhemNason
Created: 2011-12-14 19:24:52+00:00
State: open

I'm looking at getting a few additions made to the cleanUp script we use for detailed markup. In the interest of making our lives easier or whatever. Here they are:

1. Section Numbering. Sections go like:

1

2

1

2

3

3

..... AND SO ON. Each numbers sequentially regardless of nesting. We'd need it to work for section3 elements as well. (Sorry about this long and obvious example. I just want these numbered by the script like everything else that's numbered by the script.

2. Image numbering. In two ways. A figure, for example looks like this:

Figure 2

Fig. 2 Title...

where it says (the PPPP is clearly just a placeholder) the images should number sequentially, across any time of image within the and also elements. It doesn't matter what type of image it is.

Additionally, the figure id ("fig2" in this case) could also be numbered sequentially based on the type of image. Figures would all go fig1, fig2... etc. Tables are ta1, ta2... equations are eq... etc.

3. The section has two things happening that need to be looked at. First of all, notes. For every note, the following code has to be in the element:

So, that's for note 38, obviously. Yup.

4. Generation of image xlinks. They look like this:

You can see all sorts of things in here we enter. File paths to the image (which always match the file path to the issue the XML is in except they're in "journalimages' instead of etc_journals). The desc attribute is basically just the same as the idproprio attribute we fill out at the top, which actually just matches the file name? So maybe there's more to be done there. Anyway... this whole thing could be whipped up with existing information.

5. The infoarticle element could be filled in. It could count references, notes, figures, tables, images in general, and words.

How's that for a bunch of stuff? It's a bunch.