Skip to content

Commit

Permalink
Update staging docs for data package title hyperlinking
Browse files Browse the repository at this point in the history
Modify staging instructions to hyperlink data package titles to their
corresponding staging environment URLs, as DOIs are not available in the
staging environment.
  • Loading branch information
clnsmth committed Oct 3, 2024
1 parent 4cbdb69 commit 541d0aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ Researchers and organizations publishing data in the [EDI Repository](https://po
- `/harvester/pasta_harvester.mjs`
- `/public/pasta.js`

Additionally, in `/public/pasta.js` replace the line `var uri = baseUri + pid;` with `var uri = baseUri + pid + "?env=staging";`
Additionally, in `/public/pasta.js` replace the line `var uri = baseUri + pid;` with `var uri = baseUri + pid + "?env=staging";`.



Finally, in `/public/pasta.js` replace the line `var link = (citation["doi"]) ? citation["doi"].slice(0, -1) : "https://portal.edirepository.org/nis/mapbrowse?packageid=" + citation["pid"];`, with the line `var link = "https://portal-s.edirepository.org/nis/mapbrowse?packageid=" + citation["pid"];`

To see an example of how to embed the catalog in a web page `<iframe>`, view the page source code of the [Jornada Basin LTER Data Catalog](https://lter.jornada.nmsu.edu/data-catalog/) or experiment using the W3Schools [HTML Tryit editor](https://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro).

Expand Down

0 comments on commit 541d0aa

Please sign in to comment.