").text(field.name).appendTo($fg);
- $fg.data('ns', ns);
- $fg.data('tag', tag);
- $fg.data('field', field);
- cont.appendTo($fg);
+ // if multiple?
+ $("
").appendTo($fg);
- self.displayMetaProperty($fg);
+ let match = field.uri.match(/({(.*)})?(.*)/);
+ let ns = match[2];
+ let tag = match[3];
- $fg.appendTo( $("#properties-form", self.$pane));
- });
- }
+ let cont = $('
');
+
+ $fg.data('ns', ns);
+ $fg.data('tag', tag);
+ $fg.data('field', field);
+ cont.appendTo($fg);
+
+ self.displayMetaProperty($fg);
+
+ $fg.appendTo( $("#properties-form", self.$pane));
+ });
+ }
- // check node type, find relevant tags
- if ($node[0].nodeName == 'DIV') {
- $("#current-convert").attr("data-current-type", "div");
- } else if ($node[0].nodeName == 'EM') {
- $("#current-convert").attr("data-current-type", "span");
+ // check node type, find relevant tags
+ if ($node[0].nodeName == 'DIV') {
+ $("#current-convert").attr("data-current-type", "div");
+ } else if ($node[0].nodeName == 'EM') {
+ $("#current-convert").attr("data-current-type", "span");
+ }
}
- };
- PropertiesPerspective.prototype.addMetaInput = function(cont, field, element) {
- let self = this;
+ addMetaInput(cont, field, element) {
+ let self = this;
- let ig = $('