Esempio n. 1
0
const GetDepictions = function (id) {
  return ajaxCall('get', `/collection_objects/${id}/depictions.json`)
}
Esempio n. 2
0
const UpdateDepiction = function (id, data) {
  return ajaxCall('patch', `/depictions/${id}.json`, data)
}
Esempio n. 3
0
const GetRecentSources = function () {
  return ajaxCall('get', '/sources.json?recent=true&per=20')
}
Esempio n. 4
0
const DestroyDepiction = function (id) {
  return ajaxCall('delete', `/depictions/${id}.json`)
}
Esempio n. 5
0
const GetSourceTags = function (id) {
  return ajaxCall('get', `/sources/${id}/tags.json`)
}
Esempio n. 6
0
const GetMetadataProjectSource = function () {
  return ajaxCall('get', '/metadata/ProjectSource')
}
Esempio n. 7
0
const GetMetadata = function () {
  return ajaxCall('get', '/hub/tasks?category=source')
}
Esempio n. 8
0
const GetDocumentsFromSourceID = function (id) {
  return ajaxCall('get', `/sources/${id}/documentation.json`)
}
Esempio n. 9
0
const GetCitationsFromSourceID = function (id) {
  return ajaxCall('get', `/citations.json?source_id=${id}`)
}