A customizable data catalog for users of the EDI Data Repository
ezCatalog is based on the PASTA-JavaScript-Search-Client developed by Tim Whiteaker for the Long-Term Ecological Research Network (LTER).
Researchers and organizations publishing data in the EDI Repository may wish to create a searchable data catalog on their website. This project includes code supporting such functionality.
/root
of the main branch.'&fq=keyword:"Carey Lab"'
returns all their data.'&q=id:edi.23+id:edi.101+id:edi.845'
returns the newest versions of data packages: edi.23
, edi.101
, and edi.845
.'&fq=scope:knb-lter-cap'
returns all data of the Central Arizona-Phoenix LTER.config.txt
and commit the changes.build_catalog
workflow.```
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 or experiment using the W3Schools HTML Tryit editor.
Note: If you decide to rename your fork of ezCatalog, you will need to update both the iframe code snippet and live demo hyperlink with the new repository name.
Autocomplete is currently supported for the creator and taxonomy input fields. Try typing a couple of characters into the creator box of the demo page and see what happens.
Autocomplete requires creating a list of possible choices, which is automatically generated each time the GitHub Actions workflow build_catalog
runs.
ezCatalog allows you to limit the number of results returned per page. If you do not wish to use pagination, set the limit
parameter in config.txt
to a number higher than the number of datasets available for your group.
The success of search queries depends upon the metadata provided when submitting data to the EDI Data Repository.
Please contact support@edirepository.org for help setting up your catalog or resolving issues.
ezCatalog is a basic data catalog. If interested in developing a more feature rich catalog, we recommend checking out the video on Using the PASTA+ Search API to Create a Local Data Catalog.
CSV export uses uselesscode’s JS CSV serializer (MIT Licensed): http://www.uselesscode.org/javascript/csv/
We use Pixabay’s autocomplete plugin. Thanks Pixabay!