#64 humming along

This commit is contained in:
UKDTOM 2020-06-15 00:39:29 +02:00
parent ce2976b492
commit 26e2cce67d
3 changed files with 23 additions and 6 deletions

View file

@ -11,7 +11,7 @@
},
"level": {
"testtommy": [
"Media ID", "Title"
"Media ID", "Title", "Subtitle Header Compression"
],
"level1": [
"Media ID", "Title", "Sort title",

View file

@ -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<fields.length; i++) {
const call = def[libType]['fields'][fields[i]]['call']
if (call > count)
{
count = call
}
}
log.debug('Count needed is: ' + count)
return count
}
getLevels(libType) {

View file

@ -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),