mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Editing template
This commit is contained in:
@@ -144,6 +144,9 @@
|
|||||||
getName : function() {
|
getName : function() {
|
||||||
return this.databoxField.getName();
|
return this.databoxField.getName();
|
||||||
},
|
},
|
||||||
|
getMetaStructId : function() {
|
||||||
|
return this.databoxField.getMetaStructId();
|
||||||
|
},
|
||||||
isMulti : function() {
|
isMulti : function() {
|
||||||
return this.databoxField.isMulti();
|
return this.databoxField.isMulti();
|
||||||
},
|
},
|
||||||
|
@@ -1111,7 +1111,8 @@ function edit_applyMultiDesc(evt)
|
|||||||
{
|
{
|
||||||
var temp = {
|
var temp = {
|
||||||
meta_id : values[v].getMetaId() ? values[v].getMetaId() : '',
|
meta_id : values[v].getMetaId() ? values[v].getMetaId() : '',
|
||||||
meta_struct_id : p4.edit.T_records[r].fields[f].meta_struct_id,
|
meta_struct_id : p4.edit.T_records[r].fields[f].getMetaStructId(),
|
||||||
|
vocabularyId : values[v].getVocabularyId() ? values[v].getVocabularyId() : '',
|
||||||
value : cleanTags(values[v].getValue())
|
value : cleanTags(values[v].getValue())
|
||||||
};
|
};
|
||||||
record_datas.metadatas.push(temp);
|
record_datas.metadatas.push(temp);
|
||||||
@@ -1123,13 +1124,20 @@ function edit_applyMultiDesc(evt)
|
|||||||
|
|
||||||
var temp = {
|
var temp = {
|
||||||
meta_id : value.getMetaId() ? value.getMetaId() : '',
|
meta_id : value.getMetaId() ? value.getMetaId() : '',
|
||||||
meta_struct_id : p4.edit.T_records[r].fields[f].meta_struct_id,
|
meta_struct_id : p4.edit.T_records[r].fields[f]..getMetaStructId(),
|
||||||
|
vocabularyId : value.getVocabularyId() ? value.getVocabularyId() : '',
|
||||||
value : cleanTags(value.getValue())
|
value : cleanTags(value.getValue())
|
||||||
};
|
};
|
||||||
record_datas.metadatas.push(temp);
|
record_datas.metadatas.push(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(window.console)
|
||||||
|
{
|
||||||
|
console.log(record_datas.metadatas);
|
||||||
|
}
|
||||||
|
|
||||||
// les statbits
|
// les statbits
|
||||||
var tsb = [];
|
var tsb = [];
|
||||||
for(var n=0; n<64; n++)
|
for(var n=0; n<64; n++)
|
||||||
|
Reference in New Issue
Block a user