Skip to content

Commit 68ef28d

Browse files
committed
fixed bug regarding useSRU
1 parent 2111f22 commit 68ef28d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

signaturenDruck/js/classes/Print.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class Print {
77
return this._dataAll.all
88
}
99

10-
constructor (file, formats, manuelSignature) {
10+
constructor (file, formats, manualSignature) {
1111
this.formats = formats
12-
this.manualSignature = manuelSignature
12+
this.manualSignature = manualSignature
1313
this.jsonFile = ''
1414
if (fs.existsSync(file)) {
1515
this.jsonFile = JSON.parse(jsonfile.readFile(file))

signaturenDruck/js/classes/ShelfmarksFromSRUData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function getOccurrence (object, barcode) {
125125
function getPPN (object) {
126126
const data = _.find(object['zs:searchRetrieveResponse']['zs:records']['zs:record']['zs:recordData'].record.datafield, { tag: '003@' })
127127
if (data !== undefined) {
128-
return data.subfield['#text']
128+
return String(data.subfield['#text'])
129129
} else {
130130
return ''
131131
}
@@ -134,7 +134,7 @@ function getPPN (object) {
134134
function getEPN (object) {
135135
const data = _.find(object['zs:searchRetrieveResponse']['zs:records']['zs:record']['zs:recordData'].record.datafield, { tag: '203@' })
136136
if (data !== undefined) {
137-
return data.subfield['#text']
137+
return String(data.subfield['#text'])
138138
} else {
139139
return ''
140140
}

signaturenDruck/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function createWindow () {
302302

303303
const options = windowParams()
304304
options.backgroundColor = '#f0f0f0'
305-
options.webPreferences.preload = path.join(__dirname, 'js\\renderer.js')
305+
//options.webPreferences.preload = path.join(__dirname, 'js\\renderer.js')
306306

307307
if (config.store.devMode) {
308308
options.height = 600
@@ -455,7 +455,7 @@ ipcMain.on('readyToPrint', function (event, formatInformation, printImmediately,
455455
const fileName = formatInformation.name + new Date().getTime() + '.pdf'
456456
const fullPath = defaultProgramPath + '\\' + fileName
457457
fs.writeFile(fullPath, data, (error) => {
458-
if (error) throw error
458+
if (error) {throw error}
459459
// tested native electron silent printing, still broken
460460
/*
461461
else {

0 commit comments

Comments
 (0)