コード例 #1
0
  /**
   * Get PublicationMap (JSON), containing publications basic information and detail.
   *
   * @param authorId
   * @param startPage
   * @param maxresult
   * @param response
   * @return
   */
  @RequestMapping(value = "/publicationList", method = RequestMethod.GET)
  @Transactional
  public @ResponseBody Map<String, Object> getPublicationList(
      @RequestParam(value = "id", required = false) final String authorId,
      @RequestParam(value = "query", required = false) String query,
      @RequestParam(value = "year", required = false) String year,
      @RequestParam(value = "orderBy", required = false) String orderBy,
      @RequestParam(value = "startPage", required = false) Integer startPage,
      @RequestParam(value = "maxresult", required = false) Integer maxresult,
      final HttpServletResponse response) {
    if (year == null) year = "all";
    if (query == null) query = "";
    if (orderBy == null) orderBy = "date";

    return researcherFeature
        .getResearcherPublication()
        .getPublicationListByAuthorId(authorId, query, year, startPage, maxresult, orderBy);
  }