Commit 4d964ce3 authored by Kristoffer Moe's avatar Kristoffer Moe
Browse files

Merge branch 'hotfix/0.6.2'

parents f36fb643 da736bf6
......@@ -13,7 +13,7 @@ The resulting compose file can then be used with `docker-compose up -d` to provi
# Releases
## 0.6.1 (2016-11-24) bugfixes/extras/reverts
## 0.6.2 (2016-11-24) bugfixes/extras/reverts
KOHA: 2ad15d86c314e0ef882fb9cf1eb9515f98dacf2a
......
......@@ -2295,7 +2295,7 @@
var formatter = function (node, formatter) {
if (formatter === 'isbn') {
$(node).on('input', function () {
let value = $(this).val()
let value = $(this).val().trim()
let parsedIsbn = ISBN.parse(value)
if (parsedIsbn) {
if (parsedIsbn.isIsbn10()) {
......@@ -2954,7 +2954,7 @@
if (!maintenance) {
setCreatedResourceValuesInMainInputs()
}
saveInputs(ractive.get(`${grandParentOf(grandParentOf(event.keypath))}.searchMainResource`) ? allTopLevelGroupInputsForDomain(event.context.rdfType) : event.context.inputs, event.context.rdfType)
saveInputs((!maintenance && ractive.get(`${grandParentOf(grandParentOf(event.keypath))}.searchMainResource`)) ? allTopLevelGroupInputsForDomain(event.context.rdfType) : event.context.inputs, event.context.rdfType)
.then(setCreatedResourceUriInSearchInput)
.then(!maintenance ? patchMotherResource : nop)
.then(!maintenance ? setTargetUri : nop)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment