Loading src/utils/JamaClient.js +52 −0 Original line number Diff line number Diff line Loading @@ -578,6 +578,33 @@ class JamaClient { } /** * Use such a dict for selection: * ``` * { * "include": { * "resources_ids": [3493, 159] * "collections_ids:" [20, 31] * }, * "exclude": { * "resources_ids": [12, 10, 15] * "collections_ids:" [4, 254, 17] * } * } * ``` * * @param {BigInteger} from_collection_id * @param {Object} selection * @param {BigInteger} meta_id * @param {String} meta_value * @returns {Boolean} */ async addMetaToSelection(from_collection_id, selection, meta_id, meta_value) { return this._rpc("add_meta_to_selection", [from_collection_id, selection, meta_id, meta_value]); } /** * Add a new metadata to metadata set. * Loading Loading @@ -1422,6 +1449,31 @@ class JamaClient { } /** * Use such a dict for selection: * ``` * { * "include": { * "resources_ids": [3493, 159] * "collections_ids:" [20, 31] * }, * "exclude": { * "resources_ids": [12, 10, 15] * "collections_ids:" [4, 254, 17] * } * } * ``` * * @param {BigInteger} from_collection_id * @param {Object} selection * @param {BigInteger} meta_value_id * @returns {Boolean} */ async removeMetaValueFromSelection(from_collection_id, selection, meta_value_id) { return this._rpc("remove_meta_value_from_selection", [from_collection_id, selection, meta_value_id]); } /** * Remove a resource from a collection given ids. * Loading Loading
src/utils/JamaClient.js +52 −0 Original line number Diff line number Diff line Loading @@ -578,6 +578,33 @@ class JamaClient { } /** * Use such a dict for selection: * ``` * { * "include": { * "resources_ids": [3493, 159] * "collections_ids:" [20, 31] * }, * "exclude": { * "resources_ids": [12, 10, 15] * "collections_ids:" [4, 254, 17] * } * } * ``` * * @param {BigInteger} from_collection_id * @param {Object} selection * @param {BigInteger} meta_id * @param {String} meta_value * @returns {Boolean} */ async addMetaToSelection(from_collection_id, selection, meta_id, meta_value) { return this._rpc("add_meta_to_selection", [from_collection_id, selection, meta_id, meta_value]); } /** * Add a new metadata to metadata set. * Loading Loading @@ -1422,6 +1449,31 @@ class JamaClient { } /** * Use such a dict for selection: * ``` * { * "include": { * "resources_ids": [3493, 159] * "collections_ids:" [20, 31] * }, * "exclude": { * "resources_ids": [12, 10, 15] * "collections_ids:" [4, 254, 17] * } * } * ``` * * @param {BigInteger} from_collection_id * @param {Object} selection * @param {BigInteger} meta_value_id * @returns {Boolean} */ async removeMetaValueFromSelection(from_collection_id, selection, meta_value_id) { return this._rpc("remove_meta_value_from_selection", [from_collection_id, selection, meta_value_id]); } /** * Remove a resource from a collection given ids. * Loading