WCGA / West-Coast-Ocean-Data-Portal

bugs and fixes for the geoportal back end and UI front end of the WCODP
1 stars 0 forks source link

iso-2 Contact name and Contact email issues #27

Closed emiliom closed 9 years ago

emiliom commented 9 years ago

I've checked the exposed attributes for iso-2 records (at least NANOOS ones). All are ok, except for a couple of issues under "Contact". I went through the XPaths in Metadata.js:

To explore the second issue a bit further, I took a quick look at one CeNCOOS iso-2 record. I can't make the same email assessment there. But I discovered that it actually has two _gmd:CIResponsibleParty elements! I don't know how the UI code decides between the two, but it looks like the second one was selected for contact name (contact email is identical in the two elements). Sigh.

tchaddad commented 9 years ago

@twelch by any chance is this issue related to any of the stuff you have been working on?

twelch commented 9 years ago

@tchaddad yes looks like it may be related to #136 and have a similar solution. I can look into

twelch commented 9 years ago

Err this issue attached to the other repo - https://github.com/Ecotrust/wc-data-registry/issues/136

emiliom commented 9 years ago

Cool! And good to learn that @twelch is "now" looking directly at WCODP innards. I say "now", with awareness that I've been out of the WCODP loop (I think) for the last few months. Hi Tim and Tanya:)

twelch commented 9 years ago

Turns out it it was matching on the less specific iso selector and was never getting to the isoii selector. I simply switched them.

Unfortunately the wcodp code is still maintained in the ecotrust repo so you won't get notifications of commits here. I just made a pull request for this. https://github.com/Ecotrust/wc-data-registry/pull/143. Look forward to reviewing @fishytodd

emiliom commented 9 years ago

Awesome!

twelch commented 9 years ago

Simple unit test created to ensure proper values are pulled and any regressions are caught early, more to come, should be reviewed this week - https://github.com/Ecotrust/wc-data-registry/pull/144