def get_resource_map(self, pk): authorize(self.request, pk, view=True) res = hydroshare.get_science_metadata(pk) return json_or_jsonp(self.request, hydroshare.utils.serialize_resource_map(res))
def get_resource_map(self, pk): authorize(self.request, pk, view=True) res = hydroshare.get_science_metadata(pk) return json_or_jsonp( self.request, hydroshare.utils.serialize_resource_map(res))
def get(self, request, pk): view_utils.authorize(request, pk, view=True, edit=True, full=True) # TODO: once the science metadata xml file is available as a separate file on iRODS, that file needs to be returned return Response(data=hydroshare.get_science_metadata(pk), status=status.HTTP_200_OK)