Changeset 7616


Ignore:
Timestamp:
Mar 4, 2019, 7:44:18 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2149: Batch item importers should be able to use an annotation for item identification

Added "Is identifier" to the annotation type edit, view and list pages.

Location:
trunk/www
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/annotationtypes/edit_annotationtype.jsp

    r7610 r7616  
    374374        </td>
    375375      </tr>
     376      <%
     377      if (valueType == Type.STRING || valueType == Type.INT || valueType == Type.LONG)
     378      {
     379        %>
     380        <tr>
     381          <th><label for="identifier">Is identifier</label></th>
     382          <td><input type="checkbox" name="identifier" id="identifier" value="1"
     383            <%=(annotationType != null && annotationType.isIdentifier()) ||
     384              (annotationType == null && Values.getBoolean(cc.getPropertyValue("identifier"))) ? "checked" : ""%>
     385            >
     386          </td>
     387          <td></td>
     388        </tr>
     389        <%
     390      }
     391      %>
    376392      <tr>
    377393        <th><label for="required_for_miame">Required for MIAME</label></th>
  • trunk/www/admin/annotationtypes/index.jsp

    r7605 r7616  
    210210      annotationType.setDisableInheritance(Values.getBoolean(request.getParameter("disable_inheritance")));
    211211      annotationType.setProjectAnnotations(Values.getBoolean(request.getParameter("project_annotations")));
     212      annotationType.setIdentifier(Values.getBoolean(request.getParameter("identifier")));
    212213      if (annotationType.getValueType().canEnumerate())
    213214      {
  • trunk/www/admin/annotationtypes/list_annotationtypes.jsp

    r7605 r7616  
    265265      />
    266266      <tbl:columndef
     267        id="isIdentifier"
     268        property="identifier"
     269        datatype="boolean"
     270        title="Is identifier"
     271        sortable="true"
     272        filterable="true"
     273        exportable="true"
     274      />
     275      <tbl:columndef
    267276        id="requiredForMiame"
    268277        property="requiredForMiame"
     
    636645                  HTML.encodeTags(Values.getString(item.getValues(), ", ", true, FormatterFactory.getTypeFormatter(sc, item.getValueType()) )) :
    637646                  "<i>- no -</i>"%></tbl:cell>
     647                <tbl:cell column="isIdentifier"><%=item.isIdentifier() ? "yes" : "no"%></tbl:cell>
    638648                <tbl:cell column="requiredForMiame"><%=item.isRequiredForMiame() ? "yes" : "no"%></tbl:cell>
    639649                <tbl:cell column="isProtocolParameter"><%=item.isProtocolParameter() ? "yes" : "no"%></tbl:cell>
  • trunk/www/admin/annotationtypes/view_annotationtype.jsp

    r7605 r7616  
    285285        <th>Multiplicity</th>
    286286        <td><%=annotationType.getMultiplicity() == 0 ? "<i>- unlimited -</i>" : annotationType.getMultiplicity()%></td>
     287      </tr>
     288      <tr>
     289        <th>Is identifier</th>
     290        <td><%=annotationType.isIdentifier() ? "yes" : "no"%></td>
    287291      </tr>
    288292      <tr>
  • trunk/www/include/scripts/main-2.js

    r7540 r7616  
    20202020    controllers = [];
    20212021    controllers['ANNOTATION'] = { url:'common/annotations/index.jsp', width:750, height:500, edit:true, popup:true, noAnyToAny:true };
    2022     controllers['ANNOTATIONTYPE'] = { url:'admin/annotationtypes/index.jsp', width:600, height:400 };
     2022    controllers['ANNOTATIONTYPE'] = { url:'admin/annotationtypes/index.jsp', width:750, height:500 };
    20232023    controllers['ANNOTATIONTYPECATEGORY'] = { url:'admin/annotationtypecategories/index.jsp', width:600, height:400 };
    20242024    controllers['ANYTOANY'] = { url:'common/anytoany/index.jsp', width:600, height:400, popup:true, noAnyToAny:true };
Note: See TracChangeset for help on using the changeset viewer.