/** * GETs the JSON representation of the ORCID record containing only work details * * @param orcid the ORCID that corresponds to the user's record * @return the JSON representation of the ORCID record */ @Override @GET @Produces(value = {VND_ORCID_JSON, ORCID_JSON, MediaType.APPLICATION_JSON}) @Path(WORKS_PATH) public Response viewWorksDetailsJson(@PathParam("orcid") String orcid) { return serviceDelegator.findWorksDetails(orcid); }
/** * GETs the HTML representation of the ORCID record containing only work details * * @param orcid the ORCID that corresponds to the user's record * @return the HTML representation of the ORCID record */ @Override @GET @Produces(value = {MediaType.TEXT_HTML}) @Path(WORKS_PATH) public Response viewWorksDetailsHtml(@PathParam("orcid") String orcid) { Response response = serviceDelegator.findWorksDetails(orcid); return Response.fromResponse(response) .header("Content-Disposition", "attachment; filename=\"" + orcid + "-works.xml\"") .build(); }