NERC-CEH / npms-app

📱NPMS mobile application
http://www.npms.org.uk/
GNU General Public License v3.0
0 stars 0 forks source link

sample:entered_sref error on submission #38

Closed kazlauskis closed 4 years ago

kazlauskis commented 6 years ago

img_2020

kazlauskis commented 6 years ago

This part attaches the entered_sref to the submission in this file.

For some reason the value.plot must be empty or corrupted so that the warehouse rejects it then.

location: {
        id: 'location_id',
        values(value, submission) {
          // add other location related attributes
          submission.fields.entered_sref = value.plot; // eslint-disable-line

          // lat lon
          if (value.plot.match(/\d+\.\d+N \d+\.\d+W/g)) {
            submission.fields.entered_sref_system = 4326; // eslint-disable-line
          }

          return value.id;
        },
}
sacrevert commented 5 years ago

@kazlauskis can this be closed?

kazlauskis commented 5 years ago

I will close it once the app is released in the apple app store

sacrevert commented 4 years ago

@kazlauskis Can this be closed?