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

Feature request for HOB granule summary #11

Closed
stephanephanon opened this issue Sep 21, 2018 · 5 comments
Closed

Feature request for HOB granule summary #11

stephanephanon opened this issue Sep 21, 2018 · 5 comments
Assignees
Labels
Upcoming Items currently under development and will be available in our next release
Milestone

Comments

@stephanephanon
Copy link

stephanephanon commented Sep 21, 2018

It would be super helpful to have access to the bill number on the HOB granule summary page so that we can get the bill type and number from the summary instead of mods. Eg, "granuleClass": "HRES", "number': 595. This is the number in mods.xml at <extension><number>595</number></extension.

Example url: https://api.govinfo.gov/packages/HOB-2017/granules/HOB-2017-hres595/summary?api_key=<api_key>

@jonquandt jonquandt self-assigned this Sep 27, 2018
@jonquandt
Copy link
Member

@stephanephanon - good idea. I'll see if we can get this into our release.

@jonquandt
Copy link
Member

@stephanephanon, would adding something like this into the granule summary work?

bill:{
    "congress": 115,
    "type": "hres",
    "number": 595
}

@stephanephanon
Copy link
Author

@jonquandt, I think that would be great. thanks!

@jonquandt jonquandt added the Upcoming Items currently under development and will be available in our next release label Nov 2, 2018
@jonquandt jonquandt added this to the December 2018 milestone Nov 15, 2018
@jonquandt
Copy link
Member

jonquandt commented Nov 15, 2018

@stephanephanon

slight change for consistency with references at at the package level. It will look a bit more like:

example reference for https://beta.qa.govinfo.gov/app/details/HOB-2017/HOB-2017-hconres97

https://api.govinfo.gov/packages/HOB-2017/granules/HOB-2017-hconres97/summary would have:

"references": [{
		"collectionCode": "BILLS",
		"collectionName": "Congressional Bills",
		"contents": [{
				"congress": "115",
				"type": "HR",
				"number": "1"
			}
		]
	}
],

That will make it easier to expand out for other reference types.

@jonquandt
Copy link
Member

@stephanephanon - this should now be available:

https://api.govinfo.gov/packages/HOB-2017/granules/HOB-2017-hres595/summary :

{
	"title": "A resolution providing for consideration of the bill (H.R. 2936) to expedite under the National Environmental Policy Act of 1969 and improve forest management activities on National Forest System lands, on public lands under the jurisdiction of the Bureau of Land Management, and on Tribal lands to return resilience to overgrown, fire-prone forested lands, and for other purposes",
	"collectionCode": "HOB",
	"collectionName": "History of Bills",
	"category": "Proceedings of Congress and General Congressional Publications",
	"dateIssued": "2017-12-31",
	"detailsLink": "https://www.govinfo.gov/app/details/HOB-2017/HOB-2017-hres595",
	"granulesLink": "https://api.govinfo.gov/packages/HOB-2017/granules?offset=0&pageSize=100",
	"packageId": "HOB-2017",
	"packageLink": "https://api.govinfo.gov/packages/HOB-2017/summary",
	"granuleId": "HOB-2017-hres595",
	"download": {
		"txtLink": "https://api.govinfo.gov/packages/HOB-2017/granules/HOB-2017-hres595/htm",
		"modsLink": "https://api.govinfo.gov/packages/HOB-2017/granules/HOB-2017-hres595/mods",
		"premisLink": "https://api.govinfo.gov/packages/HOB-2017/premis",
		"zipLink": "https://api.govinfo.gov/packages/HOB-2017/zip"
	},
	"granuleClass": "HRES",
	"references": [{
			"collectionCode": "BILLS",
			"collectionName": "Congressional Bills",
			"contents": [{
					"congress": "115",
					"type": "HR",
					"number": "2936"
				}
			]
		}
	],
	"lastModified": "2018-06-07T07:53:49Z"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upcoming Items currently under development and will be available in our next release
Projects
None yet
Development

No branches or pull requests

2 participants