Skip to content

Commit

Permalink
Update dataset JSPs to support legacy data sets
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams committed Nov 25, 2024
1 parent 1273568 commit e569eeb
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/main/webapp/pds/viewDataset.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,29 @@ else {
<li><a href="<%=reslink%>" target="_new"><%=resname%></a><br>
<%
} // end for
} // end if
} else {
List<String> rvalues = pds3Search.getValues(doc, "resource_ref");
String refLid = "";
if (rvalues !=null) {
for (int i=0; i < rvalues.size(); i++) {
refLid = rvalues.get(i);
if (refLid!=null) {
if (refLid.indexOf("::") != -1) {
refLid = refLid.substring(0, refLid.indexOf("::"));
}
SolrDocument refDoc = pds3Search.getResource(refLid);
if (refDoc!=null) {
resname = pds3Search.getValues(refDoc, "resource_name").get(0);
reslink = pds3Search.getValues(refDoc, "resource_url").get(0);
%>
<li><a href="<%=reslink%>" target="_new"><%=resname%></a><br>
<%
} // end if
} // end if
} // end for
} // end if
} // end if
%>
</td>
</tr>
Expand Down

0 comments on commit e569eeb

Please sign in to comment.