Opened 10 years ago
Last modified 10 years ago
#1425 new defect
Cooperator privacy law message displayed while the cooperator address infor should display
| Reported by: | dbmulg | Owned by: | dbmulg |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Public Website App. | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
From Kurt:
Laura,
In today’s AdCom meeting Marty clicked on a cooperator mentioned on an accession detail page and got a message about not displaying information on the cooperator due to federal privacy laws. You said this message happens when the cooperator isn’t in the source table. This confused me because the link was in the source history section, so the cooperator must be in the source table.
Because I don’t remember what PI Marty was using I had to find another example
https://npgsweb.ars-grin.gov/gringlobal/accessiondetail.aspx?id=1421162
This accession PI 526226 has two collector links in the source history that display “federal privacy law” messages; Mushonga and Muza:
https://npgsweb.ars-grin.gov/gringlobal/cooperator.aspx?id=77417
https://npgsweb.ars-grin.gov/gringlobal/cooperator.aspx?id=77418
I believe this happens because of their cooperator records having a null geography id. The way the join and where clause are done in the web_cooperator dataview causes them to return no data even though they are left joins. I’d suggest moving the two highlighted tests from the WHERE to the JOINs.
FROM
cooperator AS c
left join geography g
on c.geography_id = g.geography_id
left join code_value cv
on g.country_code = cv.value
left join code_value_lang cvl
on cv.code_value_id = cvl.code_value_id
WHERE
c.cooperator_id = :cooperatorid
and cv.group_name = 'GEOGRAPHY_COUNTRY_CODE'
and cvl.sys_lang_id = LANGUAGEID
Kurt

Loaded 2017_03_14_web_cooperator.dataview on npgsdev for testing, as received from Laura.