Ignore:
Timestamp:
Nov 11, 2010, 2:29:16 PM (11 years ago)
Author:
t.w.abma@…
Message:
  • rewrote part of the importer and added a ImportRecord? and ImportCell? domain
  • ontologies should now always be shown individually
Location:
trunk/grails-app/views/importer/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/importer/common/_failedcells.gsp

    r1103 r1121  
    3131  </tr>
    3232<g:form name="failedcellsform" action="saveCorrectedCells">
    33         <g:each var="record" in="${failedcells}">
    34           <g:each var="list" in="${record}">
    35             <g:each var="cell" in="${list}">
     33        <g:each var="item" in="${failedcells}"> <!-- [recordhash, importrecord] -->
     34          <g:each var="cell" in="${item.value.importcells}">
    3635            <tr>
    37               <td>${cell.value.name}</td>
     36              <td>${cell.mappingcolumn.name}</td>
    3837              <td>-</td>
    39               <td>${cell.value.value}</td>
     38              <td>${cell}</td>
    4039              <td>
    41                   <input type="text" name="cell.index.${cell.hashCode()}" rel="ontology-all-name"/>
    42                   <!-- <input type="hidden" name="cell.index.${cell.value}-concept_id"/>
    43                   <input type="hidden" name="cell.index.${cell.value}-ontology_id"/>
    44                   <input type="hidden" name="cell.index.${cell.value}-full_id"/> -->
     40                  <input type="text" name="cell.index.${cell.getIdentifier()}" rel="ontology-all-name"/>
     41                  <!-- <input type="hidden" name="cell.index.${cell}-concept_id"/>
     42                  <input type="hidden" name="cell.index.${cell}-ontology_id"/>
     43                  <input type="hidden" name="cell.index.${cell}-full_id"/> -->
    4544              </td>
    46             </tr>
    47             </g:each>
     45            </tr>           
    4846          </g:each>
    4947        </g:each>
  • trunk/grails-app/views/importer/common/_missingproperties.gsp

    r1103 r1121  
    2525        <g:set var="showHeader" value="${true}"/>
    2626            <g:each status="index" var="table" in="${datamatrix}">
    27                 <g:each status="i" var="entity" in="${table}">                 
     27                <g:each status="i" var="entity" in="${table}">
    2828                    <g:if test="${showHeader}">
    2929                        <g:set var="showHeader" value="${false}"/>
Note: See TracChangeset for help on using the changeset viewer.