Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add md5 for HOB to the details link #41

Closed
relarson1 opened this issue May 20, 2019 · 2 comments
Closed

Add md5 for HOB to the details link #41

relarson1 opened this issue May 20, 2019 · 2 comments
Assignees

Comments

@relarson1
Copy link

  1. So the MD5 for each granule is in the list view for lists of hob granules
    https://api.govinfo.gov/packages/HOB-2019/granules?offset=0&pageSize=100&api_key=xxxxxx

but not in the detail view:
https://api.govinfo.gov/packages/HOB-2019/granules/HOB-2019-s1/summary?api_key=DEMO_KEY

Is it possible to have it added to the detail view?

  1. also is it possible to have it added to the mods.xml file as well?

  2. could it be searchable similar to the docClass searching as well? congress + md5 ?

@jonquandt jonquandt self-assigned this May 20, 2019
@jonquandt
Copy link
Member

@relarson1 - need to discuss with team, but some parts may be doable in the short-term, while others might be better served by the Search Service (#1), which I would like to prioritize in a fall release, based on current priorities.

@jonquandt jonquandt added Upcoming Items currently under development and will be available in our next release and removed Investigating labels Jun 7, 2019
@jonquandt jonquandt added this to the June/July 2019 milestone Jun 7, 2019
@jonquandt
Copy link
Member

@relarson1 - we have added this to the granule summaries for CRI and HOB. There is also functionality available in the granules service to allow filtering/searching by md5 value.

e.g.
https://api.govinfo.gov/packages/CRI-2017/granules?offset=0&pageSize=100&md5=DC5C1B65290BC73B141543156435C850&api_key=DEMO_KEY will return only a single matching granule.

This should be available for CRI and HOB files whenever they are updated. At some point, we can go back and do older years, but it appears that the CRI and HOB for 2019 all have values appearing within the granules summaries.

You can also filter for a specific md5 on the granule service like so:

https://api.govinfo.gov/packages/CRI-2019/granules?offset=0&pageSize=100
find an existing granule, e.g.: CRI-2019-ABC-INC, which has a md5 value of F656CC8A448D64682743EBC103BBC04C

If you add the &md5={{granule md5 value}} to the granule service, it will return only the granules that match that md5 (if they exist --if no results are returned, you could presume that the associated granule was updated)

https://api.govinfo.gov/packages/CRI-2019/granules?offset=0&pageSize=100&md5=F656CC8A448D64682743EBC103BBC04C

{
    "count": 1,
    "offset": 0,
    "pageSize": 100,
    "nextPage": null,
    "previousPage": null,
    "granules": [{
        "title": "ABC, INC.",
        "granuleId": "CRI-2019-ABC-INC",
        "granuleLink": "https://api.govinfo.gov/packages/CRI-2019/granules/CRI-2019-ABC-INC/summary",
        "md5": "F656CC8A448D64682743EBC103BBC04C"
    }]
}

@jonquandt jonquandt removed the Upcoming Items currently under development and will be available in our next release label Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants