highsource / highsource/jsonix
How to simplify dc:Elements.
- Dominant language
- JavaScript
- Stars
- 369
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
@highsource I tried the new version (2.1.2) of jsonix with simplified mappings, all unmarshaled objects are easy to read.
It is posible to also simplify the `dcElement` in a `csw:Record` ? Instead an array of attributtes maybe an object with atributtes ?
Related issue #56
Proposed:
``` javascript
"dcElement": {
"dc:identifier": "0173e0d7-6ea9-4407-b846-f29d6bfa9903",
"dc:title":"Aerial Photos",
"dc:anotherAttr": "xxxxx",
....................
}
```
Actual:
``` javascript
{
"csw:Record": {
"TYPE_NAME": "CSW_2_0_2.RecordType",
"dcElement": [
{
"dc:identifier": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"0173e0d7-6ea9-4407-b846-f29d6bfa9903"
]
}
},
{
"dc:title": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"Aerial Photos"
]
}
},
{
"dc:type": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"dataset"
]
}
},
{
"dc:subject": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"Orthoimagery"
]
}
},
{
"dct:references": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"scheme": "None",
"content": [
"http://www.ypaat.gr"
]
}
},
{
"dc:date": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"2009-10-09"
]
}
},
{
"dc:rights": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"otherRestrictions"
]
}
}
],
"boundingBox": [
{
"ows:BoundingBox": {
"TYPE_NAME": "OWS_1_0_0.BoundingBoxType",
"crs": "urn:x-ogc:def:crs:EPSG:6.11:4326",
"dimensions": 2,
"lowerCorner": [
38,
20
],
"upperCorner": [
40,
24
]
}
}
]
}
}
```
Thanks in advance
JM
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.