Adjust default search behavior of externalIdentifierSearchJSON
vphill opened this issue · 0 comments
The default behavior of the extidentifier.json
api is to return entries for the value supplied in the ark
parameter. Currently, it returns all instances of that identifier, so if there are multiple versions in the database from changes being made to the object over time they are all returned.
extidentifier.json?ark=metapth1234567
This view is here in the code
coda/coda/coda_mdstore/views.py
Line 670 in d8c34b6
I would like to adjust this view to only show the most recently added item, based on bagging_date instead of default showing all of the items.
We can add a second parameter showAll
that has a default value of False
and if True
then it would replicate the current behavior of showing all versions of that identifier in the coda repository.