This commit is contained in:
cek 2015-09-13 02:15:40 +02:00
parent 9d9df3c449
commit 70348f56c3

View file

@ -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;