diff --git a/src/components/modules/ExportTools/definitions.json b/src/components/modules/ExportTools/definitions.json index 69a6ed1..c411d01 100644 --- a/src/components/modules/ExportTools/definitions.json +++ b/src/components/modules/ExportTools/definitions.json @@ -11,7 +11,7 @@ }, "level": { "testtommy": [ - "Media ID", "Title" + "Media ID", "Title", "Subtitle Header Compression" ], "level1": [ "Media ID", "Title", "Sort title", diff --git a/src/components/modules/ExportTools/et.js b/src/components/modules/ExportTools/et.js index c57dab9..cf1b84d 100644 --- a/src/components/modules/ExportTools/et.js +++ b/src/components/modules/ExportTools/et.js @@ -24,10 +24,19 @@ const et = new class ET { } getLevelCall (libType, level) { - // this will return true, if we also need to call individual items - console.log('Ged libType: ' + libType) - console.log('Ged Level: ' + level) - return true + // this will return number of calls needed + let count = 0 + // So walk every field + const fields = et.getLevelFields(level, libType) + for (var i=0; i count) + { + count = call + } + } + log.debug('Count needed is: ' + count) + return count } getLevels(libType) { diff --git a/src/main.js b/src/main.js index 4274808..89fdc20 100644 --- a/src/main.js +++ b/src/main.js @@ -84,6 +84,14 @@ console.log('Fields in this level: ' + JSON.stringify(et.getLevelFields(level, l console.log('Fields in this level sorted: ' + JSON.stringify(et.getLevelFields(level, libType).sort())) +console.log('GetLevel calls: ' + et.getLevelCall(libType, level) ) + + +excel +libName + +/* + // EXCEL Stuff // Create WorkBook const WorkBook = excel.NewExcelFile() @@ -101,7 +109,7 @@ excel.AddRow(Sheet, Row) // Save Excel file excel.SaveWorkbook(WorkBook, libName, level, 'xlsx') - + */ new Vue({ render: h => h(App),