﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
1425	Cooperator privacy law message displayed while the cooperator address infor should display	dbmulg	dbmulg	"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
"	defect	new	medium		Public Website App.	N/A					N/A	N/A
