Changeset 518 for trunk/grails-app/views


Ignore:
Timestamp:
Jun 3, 2010, 12:27:08 PM (12 years ago)
Author:
roberth
Message:

Publications can be added to a study in the create study wizard. Publications are searched for on Pubmed, and when needed, added to the system.

Location:
trunk/grails-app/views
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/publication/add.gsp

    r496 r518  
    2222  <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.pubmed.js')}"></script>
    2323  <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.programminglanguages.js')}"></script>
    24 
     24  <script type="text/javascript">
     25    PublicationChooser.prototype.availableDBs[ "pubmed" ].select = selectPubMedAdd;
     26    PublicationChooser.prototype.availableDBs[ "pubmed" ].close  = closePubMedAdd;
     27</script>
    2528 </head>
    2629 <body>
    27 
    28  <g:form action="createFromPubmed">
    29   <g:textField name="publication" rel="publication-pubmed" style="width:300px;"/>
    30   <g:submitButton name="add" value="Add publication" />
    31  </g:form>
    32 
    33 
     30   <p>
     31     Search for a publication on pubmed. You can search on a part of the title or authors.
     32   </p>
     33   <g:form action="createFromPubmed">
     34    <g:textField name="publication" rel="publication-pubmed" style="width:500px;"/>
     35    <!-- <g:submitButton name="add" value="Add publication" /> -->
     36   </g:form>
    3437
    3538 ${errors}
  • trunk/grails-app/views/wizard/index.gsp

    r507 r518  
    2323        <script type="text/javascript" src="${resource(dir: 'js', file: 'table-editor.min.js')}"></script>
    2424        <script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.min.js')}"></script>
     25        <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.js')}"></script>
     26        <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.pubmed.js')}"></script>
    2527        <script type="text/javascript" src="${resource(dir: 'js', file: 'SelectAddMore.min.js')}"></script>
    2628        <script type="text/javascript" src="${resource(dir: 'js', file: 'timepicker-0.2.1.min.js')}"></script>
     
    3335        <script type="text/javascript" src="${resource(dir: 'js', file: 'table-editor.js')}"></script>
    3436        <script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.js')}"></script>
     37        <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.js')}"></script>
     38        <script type="text/javascript" src="${resource(dir: 'js', file: 'publication-chooser.pubmed.js')}"></script>
    3539        <script type="text/javascript" src="${resource(dir: 'js', file: 'SelectAddMore.js')}"></script>
    3640        <script type="text/javascript" src="${resource(dir: 'js', file: 'timepicker-0.2.1.js')}"></script>
  • trunk/grails-app/views/wizard/pages/_study.gsp

    r455 r518  
    3030        </wizard:templateElement>
    3131        <g:if test="${study}"><wizard:templateElements entity="${study}" /></g:if>
     32
     33        <wizard:publicationSelectElement name="publication" value="${study?.publications}" />
     34
    3235</wizard:pageContent>
Note: See TracChangeset for help on using the changeset viewer.