Revision 10
Added by Matt Wheeler about 14 years ago
lookups.php | ||
---|---|---|
26 | 26 |
'TaxonRelationshipAssertion' => True, |
27 | 27 |
'Specimen' => True, |
28 | 28 |
'Publication' => True, |
29 |
'ScientificName' => True, |
|
30 | 29 |
'vegX' => True, |
31 | 30 |
'TaxonConceptType' => True |
32 | 31 |
); |
... | ... | |
129 | 128 |
'TemporalCoverage' => True, |
130 | 129 |
'TaxonomicCoverage' => True, |
131 | 130 |
'temporalCoverageLC' => True, |
132 |
'taxonomicCoverageLC' => True |
|
131 |
'taxonomicCoverageLC' => True, |
|
132 |
'ScientificName' => True |
|
133 | 133 |
); |
134 | 134 |
|
135 | 135 |
function handleAdHocAttr($tName) { |
... | ... | |
141 | 141 |
$secondaryNodeNames = array(); |
142 | 142 |
|
143 | 143 |
switch($tName) { |
144 |
case 'ScientificName': |
|
145 |
$primaryKey = 'attr_id__exact'; |
|
146 |
$primaryAttrName = 'id'; |
|
147 |
break; |
|
144 | 148 |
case 'TemporalCoverage': |
145 | 149 |
$primaryKey = 'attr_id__exact'; |
146 | 150 |
$primaryAttrName = 'id'; |
Also available in: Unified diff
Added ability to change the vegx node names to be different from the postgres table names.
This was the easiest way to change the postgres table names when the vegx names are
not useable for some reason. This requires that the node names be altered in the xsd
definition and then mapped back to the orginal node name in the types.php file.