CitadelOnTheMove / converter-lib

CITADEL on the move - The Converter java library
0 stars 0 forks source link

Bogus data gets inserted in Image, Video and Parking fields if left empty #9

Open tthoeye opened 10 years ago

tthoeye commented 10 years ago

1, #2 and #3 have been fixed but introduce a small error in the export schema step:

When no video, image or parking field is indicated in the export schema step the converted file gets filled with bogus data. Would be better to leave these attributes out by default

tthoeye commented 10 years ago

For example, when converting a dataset without any data about images, website, parking details etc. the Attributes array looks like this:

"attribute": [
          {
            "term": "Image",
            "type": "url",
            "text": "http://www.issy.com/en/home",
            "tplIdentifier": "#Citadel_image"
          },
          {
            "term": "Video",
            "type": "url",
            "text": "http://www.issy.com/en/home",
            "tplIdentifier": "#Citadel_video"
          },
          {
            "term": "Park type",
            "type": "string",
            "text": "http://www.issy.com/en/home",
            "tplIdentifier": "#Citadel_parkType"
          },
          {
            "term": "Park floors",
            "type": "string",
            "text": "http://www.issy.com/en/home",
            "tplIdentifier": "#Citadel_parkFloors"
          },
          {
            "term": "Park capacity",
            "type": "string",
            "text": "http://www.issy.com/en/home",
            "tplIdentifier": "#Citadel_parkCapacity"
          }
        ]
      },

It looks like it gets the value for each attribute from the website column, but it was never indicated that it should.