3. ALTO Transferadd chapter
3..1 Target of the Workflow
Generates an Alto XML file for each job page.
3..2 Implementation
Entry of the base or target directory:
$job.getWfKeyValue('LOCAL_MASTER_FOLDER')$/$eval(job.getWfKeyValue('FOLDER_NAME'))$
egistration of the KeyMap values in the workflow:
Name: FOLDER_FOLDER Value: job.index1
Name: LOCAL_MASTER_FOLDER Wert: C:/Altovar p;
var alto_str;
var folder = job.getWfKeyValue('LOCAL_MASTER_FOLDER') + '/' +eval(job.getWfKeyValue('FOLDER_NAME'));
var file_name;
for (i = 0; i < job.numPages; i++) {
p = job.pages[i];
alto_str = p.getKeyValue('alto_string');
nr = i+1;ut.createCompletePath(folder);
file_name = folder +'/' + 'ALTO_' + nr + '.xml';
ut.writeStringToFile(file_name, alto_str);}