|
@@ -22,6 +22,17 @@ ARKIWI.Aggregator = function (aggregator, defaultParameters) {
|
|
|
|
|
|
ARKIWI.Aggregator.constructor = ARKIWI.Aggregator;
|
|
|
|
|
|
+/* Chiede all'aggregatore i metadati su una cartella o un file. */
|
|
|
+ARKIWI.Aggregator.prototype.path = function (path, callback, notBase64) {
|
|
|
+ var pathType = notBase64 ? 'path' : 'path64';
|
|
|
+ $.getJSON(this.aggregator + '/' + pathType + '/' + path + '/json/?' + this.defaultParameters, function (result) {
|
|
|
+ if (callback != undefined)
|
|
|
+ callback(result);
|
|
|
+ }).fail(function (error) {
|
|
|
+ throw 'Arkiwi.path(): status ' + status + ' error ' + error.responseText;
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
/* Esegue un ricerca sull'aggregatore */
|
|
|
ARKIWI.Aggregator.prototype.search = function (query, callback, jailFolder) {
|
|
|
var sanitizedQuery = query;
|