Project

General

Profile

Story #7084

Fix the display of EML citations when there is no individualName field

Added by Chris Jones over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_mercury_ui
Start date:
2015-05-07
Due date:
% Done:

100%

Story Points:
Sprint:

Description

The XSL stylesheets that ship with EML render a citation that is dependent on having a creator/individualName field value, however, many EML documents have creator/organizationName field values only, and so the citation ends up being 1) incomplete, and 2) quite messy with multiple periods with blank space around them.

Decide what the citation generation algorithm should be, in consultation with the eml-dev@ecoinformatics.org list, and then patch the EML projects version, which can then be incorporated into the ONEMercury copy. The algorithm might be:

if count(creator/individualName > 0):
for individual in individualNames:
addIndividualString()
else if count(creator/organizationName > 0)
for organization in organizationNames:
addOrganizationString()

This would optionally allow for an org name in place of a non-existent individual name, but would not add it by default.

Associated revisions

Revision 15828
Added by Chris Jones over 9 years ago

Fix rendering of citations: 1) When a publication date is note available, don't add it in so we don't get a blank entry and double periods, 2) List the organization names when present, which particularly fixes the poorly formed citation when their is no individualName. refs #7084

Revision 15828
Added by Chris Jones over 9 years ago

Fix rendering of citations: 1) When a publication date is note available, don't add it in so we don't get a blank entry and double periods, 2) List the organization names when present, which particularly fixes the poorly formed citation when their is no individualName. refs #7084

Revision 15829
Added by Chris Jones over 9 years ago

Minor punctuation changes. refs #7084

Revision 15829
Added by Chris Jones over 9 years ago

Minor punctuation changes. refs #7084

Revision 15832
Added by Chris Jones over 9 years ago

Merge changes in from the trunk for rendering citations. refs #7084

Revision 15832
Added by Chris Jones over 9 years ago

Merge changes in from the trunk for rendering citations. refs #7084

Revision 15836
Added by Chris Jones over 9 years ago

When a creator/individualName has a sibling organizationName (i.e. the organization of the individual), we don't want to cite the organization. Modify the citation XSL to only list organizations when they are not preceded by an individualName element. refs #7084

Revision 15836
Added by Chris Jones over 9 years ago

When a creator/individualName has a sibling organizationName (i.e. the organization of the individual), we don't want to cite the organization. Modify the citation XSL to only list organizations when they are not preceded by an individualName element. refs #7084

Revision 15837
Added by Chris Jones over 9 years ago

Merge changes to the citation XSL from the trunk. refs #7084

Revision 15837
Added by Chris Jones over 9 years ago

Merge changes to the citation XSL from the trunk. refs #7084

History

#1 Updated by Chris Jones over 9 years ago

  • Category set to d1_mercury_ui
  • % Done changed from 0 to 30
  • Target version set to CCI-1.5.2
  • Assignee set to Chris Jones
  • Status changed from New to In Progress

After discussion with Matt, he suggested that we include organizations in the citation if they are listed as a (but not entries).

#2 Updated by Matthew Jones over 9 years ago

I agree orgs should be included, however, the algorithm above will cause issues with the order of authors, which should be maintained in the same order in which the Creator fields are listed. Order matters in author/owner lists. This is true of the FGDC originator field as well as in other standards as well.

#3 Updated by Skye Roseboom over 9 years ago

  • Tracker changed from Task to Story

Changing from task to story so this issue will appear in the cci 1.5.2 backlog view.

#4 Updated by Chris Jones over 9 years ago

  • % Done changed from 30 to 50
  • Status changed from In Progress to Testing

I've changed the XSLT to include organizationName - in fact, all creators.

#5 Updated by Chris Jones over 9 years ago

  • % Done changed from 50 to 100
  • Status changed from Testing to Closed

After a few fixes in sandbox, this is done.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)