Editing template

This commit is contained in:
Romain Neutron
2012-01-23 12:26:33 +01:00
parent 333f0aaa6a
commit 16bb162f5d
2 changed files with 13 additions and 2 deletions

View File

@@ -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();
}, },

View File

@@ -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++)