Refactoring: cleaning directories structure
[fnpeditor.git] / modules / metadataEditor / transformations.js
diff --git a/modules/metadataEditor/transformations.js b/modules/metadataEditor/transformations.js
deleted file mode 100644 (file)
index a09ee38..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-define(['libs/jquery'], function($) {
-
-    'use strict';
-
-    return {
-        getMetadata: function(xml) {
-            var toret = {};
-            $(xml).find('metadata').children().each(function() {
-                var node = $(this);
-                toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();
-            });
-            return toret;
-        },
-        getXML: function(metadata) {
-            var meta = $('<metadata></metadata>\n');
-            _.each(_.keys(metadata), function(key) {
-                meta.append('\n\t<dc:'+key+'>' + metadata[key] + '</dc:'+key+'>');
-            });
-            meta.append('\n');
-            return vkbeautify.xml(meta.html());
-        }
-    };
-
-});
\ No newline at end of file