Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Management Plans & Self-sub datasets show 'junk' for some list fields #66

Open
grantj-re3 opened this issue Jan 29, 2016 · 0 comments

Comments

@grantj-re3
Copy link

For ReDBox v1.8, when looking at the Details pane for a particular Data Management Plan (in the Researcher Dashboard), the People section shows the following for the Collaborators list when there are no collaborators.

 1. {missing: "person.foaf:givenName" } {missing: "person.foaf:familyName" }

This is despite the template at portal/dashboard/dashboard/display/package-dmpt/detail/preview/sections/people.vm saying:

    #set($personList = $self.getList("locrel:clb.foaf:Person"))
    #if ($personList.isEmpty())
    <dd>
    #noInformation()
    </dd>
    #else
      ...only attempt to show the list if we get here
    #end

Hence I suspect that the coding in people.vm is ok. The problem appears to be that data is stored for a person (ie. array element 1 is populated) [with blank fields] even though none of the collaborator fields were populated in the form. For example:

$ cat storage/1793582ab247f6442162a75562dcc548/6a/35/e5/6a35e5da4cd1500393a64d8b194ece5b/6f68a32b-b677-4cf1-9218-0d7020e68eaa.tfpackage |sed 's/","/",\n"/g' |grep locrel:clb.foaf:Person
"locrel:clb.foaf:Person.1.person.foaf:title":"",
"locrel:clb.foaf:Person.1.person.foaf:givenName":"",
"locrel:clb.foaf:Person.1.person.foaf:email":"",
"locrel:clb.foaf:Person.1.person.foaf:familyName":"",
"locrel:clb.foaf:Person.1.person.dc:identifier":"",

Similarly for self-submission, there is the same problem when there are no collaborators. For example:

$ cat storage/1793582ab247f6442162a75562dcc548/89/df/a9/89dfa9732c84002e6c0723395ae79746/6827f527-eb7e-4e47-ac70-125a9b8e914a.tfpackage |sed 's/","/",\n"/g' |grep dc:contributor.locrel:clb
"dc:contributor.locrel:clb.1.foaf:Agent.foaf:familyName":"",
"dc:contributor.locrel:clb.1.foaf:Agent.dc:identifier":"",
"dc:contributor.locrel:clb.1.foaf:Agent.foaf:title":"",
"dc:contributor.locrel:clb.1.foaf:Agent.foaf:givenName":"",
"dc:contributor.locrel:clb.1.foaf:Agent.foaf:email":"",

Similarly for self-submission, there is the same problem when there are no Geospatial locations (in the Coverage section). For example:

$ cat storage/1793582ab247f6442162a75562dcc548/89/df/a9/89dfa9732c84002e6c0723395ae79746/6827f527-eb7e-4e47-ac70-125a9b8e914a.tfpackage |sed 's/","/",\n"/g' |grep dc:coverage.vivo:GeographicLocation
"dc:coverage.vivo:GeographicLocation.1.dc:type":"text",
"dc:coverage.vivo:GeographicLocation.1.dc:identifier":"",
"dc:coverage.vivo:GeographicLocation.1.rdf:PlainLiteral":"",
"dc:coverage.vivo:GeographicLocation.1.redbox:Fid":"",
"dc:coverage.vivo:GeographicLocation.1.geo:long":"",
"dc:coverage.vivo:GeographicLocation.1.geo:lat":"",
"dc:coverage.vivo:GeographicLocation.1.redbox:wktRaw":"",

Question: Is there a way to ensure that the array is not populated when none of the collaborator (or geospatial) fields are populated? Alternatively is there some work-around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant