mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-23 03:23:05 +00:00
#64 humming along
This commit is contained in:
parent
ce2976b492
commit
26e2cce67d
3 changed files with 23 additions and 6 deletions
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
"level": {
|
||||
"testtommy": [
|
||||
"Media ID", "Title"
|
||||
"Media ID", "Title", "Subtitle Header Compression"
|
||||
],
|
||||
"level1": [
|
||||
"Media ID", "Title", "Sort title",
|
||||
|
|
|
@ -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) {
|
||||
|
|
10
src/main.js
10
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),
|
||||
|
|
Loading…
Reference in a new issue