Package org.cipres.treebase.domain.study

Examples of org.cipres.treebase.domain.study.Citation


      }
    }

    // Get the existing list of authors for the citation
    Study study = ControllerUtil.findStudy(request, mStudyService);
    Citation citation = study.getCitation();

    if (citation == null) {
      request.getSession().setAttribute(
        "errors",
        "Please provide the citataion for this study first.");
View Full Code Here


    // Long submission_id = ControllerUtil.getSubmissionId(request);
    // Study study = mStudyService.findBySubmissionID(submission_id);
    Study study = ControllerUtil.findStudy(request, mStudyService);
    List<Person> people = null;
    if (study != null) {
      Citation citation = study.getCitation();

      if (citation != null) people = getPeople(citation);// study.getAuthors();
    }

    request.getSession().setAttribute(Constants.PEOPLE_LIST, people);
View Full Code Here

   */
  private void rearrangeList(String aPersonIdsList, HttpServletRequest request) {

    Study study = ControllerUtil.findStudy(request, mStudyService);

    Citation citation = study.getCitation();
    List<Person> oldList = (List<Person>) getPeople(citation);

    if (LOGGER.isDebugEnabled()) {
      LOGGER
        .debug("rearrangeList(String, HttpServletRequest) - Total Elements in the Old List:" + oldList.size()); //$NON-NLS-1$
View Full Code Here

    } else {
      request.getSession().setAttribute("publicationState", "NotReady");
    }

    Citation citation = study.getCitation();
    if (citation == null) {
      return new ArticleCitation();
    } else {
      return citation;
    }
View Full Code Here

    }

    /* Get the existing list of authors for the citation */
    Study study = ControllerUtil.findStudy(request, mStudyService);
    Citation citation = study.getCitation();

    if (citation == null) {
      request.getSession().setAttribute(
        "errors",
        "Please provide the citataion for this study first.");
View Full Code Here

      LOGGER.info("IN FORM BACKING OBJECT");
    }
    Study study = ControllerUtil.findStudy(request, mStudyService);
    List<Person> people = null;
    if (study != null) {
      Citation citation = study.getCitation();

      if (citation != null) people = getPeople(citation);// study.getAuthors();
    }

    request.getSession().setAttribute(Constants.PEOPLE_LIST, people);
View Full Code Here

   */
  private void rearrangeList(String aPersonIdsList, HttpServletRequest request) {

    Study study = ControllerUtil.findStudy(request, mStudyService);

    Citation citation = study.getCitation();
    List<Person> oldList = (List<Person>) getPeople(citation);

    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("Total Elements in the Old List:" + oldList.size());
    }
View Full Code Here

    Person author_editor = (Person) command;

    /* Get the existing list of authors for the citation */
    Study study = ControllerUtil.findStudy(request, mStudyService);
    Citation citation = study.getCitation();

    if (citation == null) {
      request.getSession().setAttribute(
        "errors",
        "Please provide the citation for this study first.");
View Full Code Here

    } else {
      request.getSession().setAttribute("publicationState", "NotReady");
    }

    Citation citation = study.getCitation();
    if (citation == null) {
      return new ArticleCitation();
    } else {
      return citation;
    }
View Full Code Here

      File bagitPath = uploadFiles[0];
      File dataPath = new File(bagitPath, "data");
     
      try{
              CitationParser cparser= new CitationParser(dataPath);
              Citation citation = cparser.getCitation();
          Study study = new Study();
          //study.setName(bagitPath.getName());
          study.setName(citation.getTitle());
       
          study.setCitation(citation);
              citation.setStudy(study);

          study.setNotes(bagitPath.getName() +
                   ": Please enter these author names into the TreeBASE citation " +
                     "by clicking on the highlighted \"Authors\" item in the Tool Box." +
                     "\n\n" + citation.getAuthorsDryadNotes());
         
         

          citation.setAuthors(null);   
                 
          Submission submission = mSubmissionService.createSubmission(user, study);
 
          long unixTime = System.currentTimeMillis() / 1000L;
         
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.study.Citation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.