Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/11/08 23:52:52 (8 months ago)
Author:
bmckown
Message:

complex_obs branch: Changed to mapping the ComplexObsHandlers instead of using ConceptComplexHandler class.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/complex_obs/web/WEB-INF/view/dictionary/conceptForm.jsp

    r2965 r4166  
    373373                </td> 
    374374        </tr> 
     375 
     376    <tr id="complexDatatypeRow"> 
     377        <th valign="top"><spring:message code="ConceptComplex.handler"/></th> 
     378        <c:if test="${concept.complex}"> 
     379        <c:forEach var="h" items="${handlers }"> 
     380        <td> 
     381            <table border="0"> 
     382                <tr> 
     383                    <td> 
     384                        <select name="handlerSelect">  
     385                            <option value=""> </option> 
     386                            <c:forEach var="h" items="${handlers }"> 
     387                                <option value="${h.class}" <c:if test="${fn:contains(h.class, concept.handler)}">selected="selected"</c:if>> 
     388                                    <c:choose> 
     389                                        <c:when test="${fn:length(fn:substringAfter( fn:substringAfter(h.class, 'class '), 'hanasddler.' )) > 1}"> 
     390                                            ${fn:substringAfter( fn:substringAfter(h.class, 'class '), 'handler.' )} 
     391                                        </c:when> 
     392                                        <c:otherwise> 
     393                                            ${fn:substringAfter(h.class, 'class ')} 
     394                                        </c:otherwise> 
     395                                     </c:choose> 
     396                                </option> 
     397                            </c:forEach> 
     398                        </select> 
     399                    </td> 
     400                </tr> 
     401                    <c:if test="${concept.complex}"> 
     402                        <tr> 
     403                            <th name="handlerTitle"> 
     404                                <spring:message code="ConceptComplex.handler.class"/> 
     405                            </th> 
     406                        </tr> 
     407                        <c:forEach var="h" items="${handlers }"> 
     408                            <tr name="handlerRow" id="handler_${fn:substringAfter(h.class, 'class ')}"> 
     409                                <td> 
     410                                    ${fn:substringAfter(h.class, 'class ') } 
     411                                </td> 
     412                             </tr> 
     413                        </c:forEach> 
     414                    </c:if> 
     415            </table>      
     416        </td> 
     417        </c:forEach> 
     418        </c:if> 
     419    </tr> 
     420 
     421         
    375422        <tr> 
    376423                <th><spring:message code="Concept.version" /></th>