diff --git a/src/main/java/gov/nasa/pds/dsview/registry/Constants.java b/src/main/java/gov/nasa/pds/dsview/registry/Constants.java index b530e3317..92a65a846 100644 --- a/src/main/java/gov/nasa/pds/dsview/registry/Constants.java +++ b/src/main/java/gov/nasa/pds/dsview/registry/Constants.java @@ -14,8 +14,8 @@ package gov.nasa.pds.dsview.registry; -import java.util.Map; import java.util.LinkedHashMap; +import java.util.Map; /** * Class that holds constants used in ds-view. * @@ -202,6 +202,7 @@ public class Constants { bundlePds4ToSearch.put("TYPE", "bundle_type"); bundlePds4ToSearch.put("DESCRIPTION", "description"); bundlePds4ToSearch.put("SEARCH/ACCESS DATA", "resource_ref"); + bundlePds4ToSearch.put("ACCESS BY API", "api_ref"); } public static final Map bundleCitationPds4ToRegistry = @@ -254,6 +255,7 @@ public class Constants { collectionPds4ToSearch.put("TYPE", "collection_type"); collectionPds4ToSearch.put("DESCRIPTION", "description"); collectionPds4ToSearch.put("SEARCH/ACCESS DATA", "resource_ref"); + collectionPds4ToSearch.put("ACCESS BY API", "api_ref"); } public static final Map documentPds4ToSearch = new LinkedHashMap(); diff --git a/src/main/webapp/pds/viewBundle.jsp b/src/main/webapp/pds/viewBundle.jsp index 9376909de..4c5a6a4ea 100644 --- a/src/main/webapp/pds/viewBundle.jsp +++ b/src/main/webapp/pds/viewBundle.jsp @@ -139,6 +139,14 @@ } } // end if (resourceRefs != null) } + else if (tmpValue.equals("api_ref")) { + %> + View Bundle metadata
+ View Bundle's Collections metadata
+ View Bundle's Products metadata
+ API Documentation
+ <% + } else { //out.println("tmpValue = " + tmpValue + "
"); List values = pds4Search.getValues(doc, tmpValue); diff --git a/src/main/webapp/pds/viewCollection.jsp b/src/main/webapp/pds/viewCollection.jsp index e922dd270..164e27ff0 100644 --- a/src/main/webapp/pds/viewCollection.jsp +++ b/src/main/webapp/pds/viewCollection.jsp @@ -138,7 +138,13 @@ <% } } // end if (resourceRefs != null) - } else { + } else if (tmpValue.equals("api_ref")) { + %> + View Collection metadata
+ View Collection's Products metadata
+ API Documentation
+ <% + } else { //out.println("tmpValue = " + tmpValue + "
"); List values = pds4Search.getValues(doc, tmpValue); if (values!=null) {