Se hele opsætningsguiden her: Opsætning til Push
1. Gå til F7 - Aflevering - Brugerdefinerede skabeloner for notifikationen "Lån skal snart afleveres"
2. Kopier præcis denne tekst (version 3):
<#-- XX4.18 Returdato for materialelån nærmer sig -->
<#-- XXPåmindelse til låner angående materialelån, hvis returdato nærmer sig. -->
<#-- XX4.18.2 Model Felt Beskrivelse Eksempel -->
Returdato for materialelån nærmer sig
{
"data": {
"agency": {
"name": "${((data.agency.name)!"")?json_string}"
},
"loaner": {
"name": "${((data.loaner.name)!"")?json_string}",
"loanerNumber": "${((data.loaner.loanerNumber)!"")?json_string}",
"addressCity": "${((data.loaner.addressCity)!"")?json_string}",
"addressStreet": "${((data.loaner.addressStreet)!"")?json_string}",
"coName": "${((data.loaner.coName)!"")?json_string}",
"countryCode": "${((data.loaner.countryCode)!"")?json_string}",
"loanerGroups": [ <#list data.loaner.loanerGroups as loanerGroup> {
"loanerGroupName": "${((loanerGroup.loanerGroupName)!"")?json_string}",
"loanerGroupNameWithHierarchyPath": "${((loanerGroup.loanerGroupNameWithHierarchyPath)!"")?json_string}",
"loanerGroupNameWithRoot": "${((loanerGroup.loanerGroupNameWithRoot)!"")?json_string}"
}<#if loanerGroup_has_next>,</#if></#list>],
"preferredLanguage": "${((data.loaner.preferredLanguage)!"")?json_string}",
"zipCode": "${((data.loaner.zipCode)!"")?json_string}"
},
"materialLoans": [ <#list data.materialLoans as materialLoan> {
"loan": {
"loanDate": <#if ((materialLoan.loan.loanDate)?has_content)> "${(materialLoan.loan.loanDate)?date!""}" <#else>""</#if>,
"returnDate": <#if ((materialLoan.loan.returnDate)?has_content)> "${(materialLoan.loan.returnDate)?date!""}" <#else>""</#if>
},
"material": {
"acquisitionDate": <#if ((materialLoan.material.acquisitionDate)?has_content)> "${(materialLoan.material.acquisitionDate)?date!""}" <#else>""</#if>,
"activeBranch": {
"name": "${((materialLoan.material.activeBranch.name)!"")?json_string}",
"shortName": "${((materialLoan.material.activeBranch.shortName)!"")?json_string}"
},
"activeDepartment": {
"name": "${((materialLoan.material.activeDepartment.name)!"")?json_string}",
"shortName": "${((materialLoan.material.activeDepartment.shortName)!"")?json_string}"
},
"activeFloatGroupName": "${((materialLoan.material.activeFloatGroupName)!"")?json_string}",
"activeLocation": {
"name": "${((materialLoan.material.activeLocation.name)!"")?json_string}",
"shortName": "${((materialLoan.material.activeLocation.shortName)!"")?json_string}"
},
"activeSublocation": {
"name": "${((materialLoan.material.activeSublocation.name)!"")?json_string}",
"shortName": "${((materialLoan.material.activeSublocation.shortName)!"")?json_string}"
},
"defaultBranch": {
"name": "${((materialLoan.material.defaultBranch.name)!"")?json_string}",
"shortName": "${((materialLoan.material.defaultBranch.shortName)!"")?json_string}"
},
"defaultDepartment": {
"name": "${((materialLoan.material.defaultDepartment.name)!"")?json_string}",
"shortName": "${((materialLoan.material.defaultDepartment.shortName)!"")?json_string}"
},
"defaultLocation": {
"name": "${((materialLoan.material.defaultLocation.name)!"")?json_string}",
"shortName": "${((materialLoan.material.defaultLocation.shortName)!"")?json_string}"
},
"defaultSublocation": {
"name": "${((materialLoan.material.defaultSublocation.name)!"")?json_string}",
"shortName": "${((materialLoan.material.defaultSublocation.shortName)!"")?json_string}"
},
"group": "${((materialLoan.material.group)!"")?json_string}",
"itemNumber": "${((materialLoan.material.itemNumber)!"")?json_string}",
"lastScannedBranch": {
"name": "${((materialLoan.material.lastScannedBranch.name)!"")?json_string}",
"shortName": "${((materialLoan.material.lastScannedBranch.shortName)!"")?json_string}"
},
"note": "${((materialLoan.material.note)!"")?json_string}",
"periodical": ${((materialLoan.material.periodical)!false)?c},
"periodicalName": "${((materialLoan.material.periodicalName)!"")?json_string}",
"theme": {
"department": {
"name": "${((materialLoan.material.theme.department.name)!"")?json_string}",
"shortName": "${((materialLoan.material.theme.department.shortName)!"")?json_string}"
},
"location": {
"name": "${((materialLoan.material.theme.location.name)!"")?json_string}",
"shortName": "${((materialLoan.material.theme.location.shortName)!"")?json_string}"
},
"name": "${((materialLoan.material.theme.name)!"")?json_string}",
"sublocation": {
"name": "${((materialLoan.material.theme.sublocation.name)!"")?json_string}",
"shortName": "${((materialLoan.material.theme.sublocation.shortName)!"")?json_string}"
}
}
},
"price": "${((materialLoan.price)!"")?json_string}",
"record": {
"author": "${((materialLoan.record.author)!"")?json_string}",
"classification": "${((materialLoan.record.classification)!"")?json_string}",
"faust": "${((materialLoan.record.faust)!"")?json_string}",
"title": "${((materialLoan.record.title)!"")?json_string}",
"type": "${((materialLoan.record.type)!"")?json_string}"
}
}<#if materialLoan_has_next>,</#if></#list>]
}
}
3. Tryk på forhåndsvisning og tjek at der står “Returdato for materialelån nærmer sig” aller øverst. Hvis den melder fejl tjek at skabelonen er kopieret korrekt.
4. Sæt teksten ind i stedet for den eksisterende og tryk ’Gem’.
Gå til næste trin: Opsætning del 5: Materiale klar til afhentning