Action Code Full Preingester

Assigned
PKO+JRG

Prev assigned

Tasks adressed
["Collection"]

Time estimated
9 md

Time used
md

Priority
1

Status
Not described

Iteration
19

Notes

(Test with actual objects, ingesting a few of the results into test-Fedora by Admin application) Here, the object templates written in an earlier action will be used. Any TODO's in those templates should be finished.

First step

* UNDER CONSTRUCTION *

In DDAPreingester.java, make a method that generates FoxML objects for towns. This will be done in two passes.

The first pass gathers the stuff that will (in the second pass) be inserted in the town-templates at <!-- INSERT_HASPAPER_RELATIONS_HERE -->. The pass uses an array (or HashMap) for each volume, let's call it townRelations, to store for each town(number) the string (containing relations) to be inserted in the corresponding towns template. (Remember here that for a given town, it can exist in several volumes, and those towns will then be separate here.) This pass will consist of a loop over volumes containing a loop over the paper xmls of the volume. From each paper xml will be extracted (via xpath code like in last iteration) the "number" of the paper, and that will be used for constructing the pid of that paper, which in turn will be used to construct a string <doms:hasPaper rdf:resource="info:fedora/INSERT_HASPAPER_PID_HERE"/> This string is appended to the relations-string (in townRelations) for the town (and volume) of the current paper xml. In this way, the first pass will have collected the hasPaper-relations for each town for each volume.

The second pass will generate the FoxML objects for towns. Looping over all volumes and all towns in townRelations we will use the

pid - volume, townnumber title - firstpagepid -

Second step

Third step

BR

BR

Checklist For Working On An Action

The Life Cycle of an Action:

Please make sure that you address the below issues, when working on an action: