inspire-citesummary-js
Version:
Cite Summary component for INSPIRE HEP
26 lines (23 loc) • 838 B
JavaScript
(function (angular) {
/**
* HoldingPenRecordService allows for the getting, update and resolution of
* workflow records.
*/
angular.module('citeSummary.services', [])
.factory("CiteSummaryService", ["$http",
function ($http) {
return {
load: function (apiEndpoint) {
return $http.get(apiEndpoint).then(function (response) {
return response.data;
}).catch(function (value) {
console.error('cannot fetch content from ' + apiEndpoint, value);
return {};
});
}
};
}
]
)
;
}(angular));