| | 51 | <!-- |
|---|
| | 52 | <bean id="newPatientForm" class="org.openmrs.module.addresshierarchy.web.controller.AddressLayoutPortletController"> |
|---|
| | 53 | <property name="sessionForm"><value>true</value></property> |
|---|
| | 54 | <property name="commandName"><value>patient</value></property> |
|---|
| | 55 | <property name="commandClass"><value>org.openmrs.web.controller.patient.ShortPatientModel</value></property> |
|---|
| | 56 | <property name="formView"><value>/admin/patients/newPatientForm</value></property> |
|---|
| | 57 | <property name="successView"><value>../../patientDashboard.form</value></property> |
|---|
| | 58 | </bean> |
|---|
| | 59 | --> |
|---|
| | 60 | <!-- <bean id="addressLayoutPortletController" class="org.openmrs.module.addresshierarchy.web.controller.AddressLayoutPortletController" > |
|---|
| | 61 | <property name="commandName"><value>addressLayout</value></property> |
|---|
| | 62 | <property name="commandClass"><value>org.openmrs.module.addresshierarchy.web.controller.AddressLayoutPortletController</value></property> |
|---|
| | 63 | <property name="formView"><value>/module/@MODULE_ID@/portlets/addressLayout</value></property> |
|---|
| | 64 | <property name="successView"><value>/module/@MODULE_ID@/portlets/addressLayout</value></property> |
|---|
| | 65 | </bean>--> |
|---|
| | 66 | <!-- /Controllers --> |
|---|
| | 67 | <!-- <bean parent="addressSupport" class="org.openmrs.layout.web.address.AddressSupport"> |
|---|
| | 68 | <property name="layoutTemplates"> |
|---|
| | 69 | <list> |
|---|
| | 70 | <ref bean="addressHierarchyTemplate" /> |
|---|
| | 71 | </list> |
|---|
| | 72 | </property> |
|---|
| | 73 | </bean> |
|---|
| 50 | | <!-- /Controllers --> |
|---|
| | 75 | <bean id="addressHierarchyTemplate" class="org.openmrs.layout.web.address.AddressTemplate"> |
|---|
| | 76 | <property name="displayName"><value>Address Hierarchy Format</value></property> |
|---|
| | 77 | <property name="codeName"><value>us</value></property> |
|---|
| | 78 | <property name="country"><value>Common</value></property> |
|---|
| | 79 | <property name="nameMappings"> |
|---|
| | 80 | <props> |
|---|
| | 81 | <prop key="address1">addresshierarchy.location.address1</prop> |
|---|
| | 82 | <prop key="address2">addresshierarchy.location.address2</prop> |
|---|
| | 83 | <prop key="country">addresshierarchy.location.country</prop> |
|---|
| | 84 | <prop key="stateProvince">addresshierarchy.location.state</prop> |
|---|
| | 85 | <prop key="sublocation1">addresshierarchy.location.sublocation1</prop> |
|---|
| | 86 | <prop key="sublocation2">addresshierarchy.location.sublocation2</prop> |
|---|
| | 87 | <prop key="sublocation3">addresshierarchy.location.sublocation3</prop> |
|---|
| | 88 | <prop key="sublocation4">addresshierarchy.location.sublocation4</prop> |
|---|
| | 89 | <prop key="sublocation5">addresshierarchy.location.sublocation5</prop> |
|---|
| | 90 | <prop key="sublocation6">addresshierarchy.location.sublocation6</prop> |
|---|
| | 91 | <prop key="postalCode">addresshierarchy.location.postalcode</prop> |
|---|
| | 92 | <prop key="longitude">addresshierarchy.location.longitude</prop> |
|---|
| | 93 | <prop key="latitude">addresshierarchy.location.latitude</prop> |
|---|
| | 94 | |
|---|
| | 95 | </props> |
|---|
| | 96 | </property> |
|---|
| | 97 | <property name="sizeMappings"> |
|---|
| | 98 | <props> |
|---|
| | 99 | <prop key="address1">40</prop> |
|---|
| | 100 | <prop key="address2">40</prop> |
|---|
| | 101 | <prop key="country">40</prop> |
|---|
| | 102 | <prop key="stateProvince">40</prop> |
|---|
| | 103 | <prop key="sublocation1">40</prop> |
|---|
| | 104 | <prop key="sublocation2">40</prop> |
|---|
| | 105 | <prop key="sublocation3">40</prop> |
|---|
| | 106 | <prop key="sublocation4">40</prop> |
|---|
| | 107 | <prop key="sublocation5">40</prop> |
|---|
| | 108 | <prop key="sublocation6">40</prop> |
|---|
| | 109 | <prop key="postalCode">10</prop> |
|---|
| | 110 | <prop key="longitude">10</prop> |
|---|
| | 111 | <prop key="latitude">10</prop> |
|---|
| | 112 | </props> |
|---|
| | 113 | </property> |
|---|
| | 114 | <property name="elementDefaults"> |
|---|
| | 115 | <props> |
|---|
| | 116 | <prop key="country"></prop> |
|---|
| | 117 | </props> |
|---|
| | 118 | </property> |
|---|
| | 119 | <property name="lineByLineFormat"> |
|---|
| | 120 | <list> |
|---|
| | 121 | <value>address1</value> |
|---|
| | 122 | <value>address2</value> |
|---|
| | 123 | <value>country</value> |
|---|
| | 124 | <value>stateProvince</value> |
|---|
| | 125 | <value>subLocation1</value> |
|---|
| | 126 | <value>subLocation2</value> |
|---|
| | 127 | <value>subLocation3</value> |
|---|
| | 128 | <value>subLocation4</value> |
|---|
| | 129 | <value>subLocation5</value> |
|---|
| | 130 | <value>subLocation5</value> |
|---|
| | 131 | <value>postalCode</value> |
|---|
| | 132 | <value>latitude</value> |
|---|
| | 133 | <value>longitude</value> |
|---|
| | 134 | </list> |
|---|
| | 135 | </property> |
|---|
| | 136 | </bean> |
|---|
| | 137 | --> |
|---|
| | 138 | |
|---|