format ISBNs with dashes
This commit is contained in:
parent
23d401b3f2
commit
846eb7f3f3
2 changed files with 4 additions and 3 deletions
|
@ -105,7 +105,8 @@
|
||||||
"id": "isbn",
|
"id": "isbn",
|
||||||
"title": "ISBN",
|
"title": "ISBN",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"columnWidth": 96,
|
"format": {"type": "ISBN", "args": [13, true]},
|
||||||
|
"columnWidth": 128,
|
||||||
"sort": true
|
"sort": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -625,8 +625,8 @@ oml.ui.infoView = function(externalData, isMixed) {
|
||||||
editable: isEditable,
|
editable: isEditable,
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return (value ? [
|
return (value ? [
|
||||||
Ox.formatISBN(value, 13),
|
Ox.formatISBN(value, 13, true),
|
||||||
Ox.formatISBN(value, 10)
|
Ox.formatISBN(value, 10, true)
|
||||||
] : []).join(separator);
|
] : []).join(separator);
|
||||||
},
|
},
|
||||||
placeholder: formatLight(Ox._(
|
placeholder: formatLight(Ox._(
|
||||||
|
|
Loading…
Reference in a new issue