Skip to content

Commit

Permalink
Merge pull request #24 from NASA-PDS/versions
Browse files Browse the repository at this point in the history
Added alternate_ids field
  • Loading branch information
jordanpadams authored Jun 30, 2022
2 parents 8d843d7 + a08168e commit bf447a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ public Metadata extract(File file, Document doc) throws Exception
// LIDVID
md.lidvid = md.lid + "::" + md.strVid;

// Alternate IDs
md.fields.addValue(Metadata.FLD_ALTERNATE_IDS, md.lidvid);
md.fields.addValue(Metadata.FLD_ALTERNATE_IDS, md.lid);

// Title
md.title = StringUtils.normalizeSpace(XPathUtils.getStringValue(doc, xTitle));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
public class Metadata
{
public static final String FLD_ALTERNATE_IDS = "alternate_ids";
public static final String FLD_NODE_NAME = "ops:Harvest_Info/ops:node_name";
public static final String FLD_HARVEST_DATE_TIME = "ops:Harvest_Info/ops:harvest_date_time";
public static final String FLD_ARCHIVE_STATUS = "ops:Tracking_Meta/ops:archive_status";
Expand Down

0 comments on commit bf447a5

Please sign in to comment.