Commit 0569c9e2 authored by ephoto_dam's avatar ephoto_dam

Ephoto Dam Field module in progress

parent 76e52af0
......@@ -137,7 +137,6 @@
return;
}
const constid = dcore['dc:identifier:string'];
const id = parseInt(dcore['dc:identifier:number'], 10);
if (!id) {
......@@ -149,12 +148,22 @@
const fields = this._getFieldValues();
for (const inc in fields) {
if(typeof versions[fields[inc].name] === 'undefined') continue;
if (typeof versions[fields[inc].name] === 'undefined') continue;
let size = fields[inc].size;
let name = fields[inc].name;
let size = this._checkSizeValue(fields[inc].size);
let version = fields[inc].name;
let file = version + '@' + id;
console.log('version:' + name + ';' + size + ';' + constid);
let button = this.ephoto.File.setButtons( this.ephoto.IMAGE_FILES, [ {
'mode': 'link',
'definition': 'custom',
'size': size
} ] ).get(0);
button.getLink([file], function(url) {
fields[inc].input.val(url);
});
}
}.bind(this));
......@@ -182,10 +191,7 @@
this.ephoto.File.setButtons( this.ephoto.IMAGE_FILES, [ {
'mode': 'link',
'definition': 'custom',
'size': size,
'dpi': 72,
'format': 'jpg',
'notEnlarge': true
'size': size
} ] );
this.ephoto.File.get();
......
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