Created
April 18, 2017 00:55
-
-
Save marktriggs/d481e60ce50799fc532a6eaa8606aa05 to your computer and use it in GitHub Desktop.
Search by digital object ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ scripts/curl_as admin admin --globoff 'http://localhost:4567/repositories/2/search' \ | |
| -F 'filter={"query": {"jsonmodel_type": "field_query", "field": "digital_object_id", "value": "the digital object id"}}' \ | |
| -F 'page=1' | python -mjson.tool | |
| { | |
| "facets": { | |
| "facet_dates": {}, | |
| "facet_fields": {}, | |
| "facet_intervals": {}, | |
| "facet_queries": {}, | |
| "facet_ranges": {} | |
| }, | |
| "first_page": 1, | |
| "last_page": 1, | |
| "offset_first": 1, | |
| "offset_last": 1, | |
| "page_size": 10, | |
| "results": [ | |
| { | |
| "create_time": "2017-04-18T00:49:42Z", | |
| "created_by": "admin", | |
| "digital_object_id": "the digital object id", | |
| "id": "/repositories/2/digital_objects/97", | |
| "json": "{\"lock_version\":0,\"digital_object_id\":\"the digital object id\",\"title\":\"My digital object\",\"publish\":false,\"restrictions\":false,\"created_by\":\"admin\",\"last_modified_by\":\"admin\",\"create_time\":\"2017-04-18T00:49:42Z\",\"system_mtime\":\"2017-04-18T00:49:42Z\",\"user_mtime\":\"2017-04-18T00:49:42Z\",\"suppressed\":false,\"jsonmodel_type\":\"digital_object\",\"external_ids\":[],\"subjects\":[],\"linked_events\":[],\"extents\":[],\"dates\":[],\"external_documents\":[],\"rights_statements\":[],\"linked_agents\":[],\"file_versions\":[],\"notes\":[],\"linked_instances\":[],\"uri\":\"/repositories/2/digital_objects/97\",\"repository\":{\"ref\":\"/repositories/2\",\"_resolved\":{\"lock_version\":1,\"repo_code\":\"hello626\",\"name\":\"world\",\"created_by\":\"admin\",\"last_modified_by\":\"admin\",\"create_time\":\"2017-03-23T00:12:08Z\",\"system_mtime\":\"2017-03-23T23:06:49Z\",\"user_mtime\":\"2017-03-23T23:06:49Z\",\"publish\":true,\"jsonmodel_type\":\"repository\",\"uri\":\"/repositories/2\",\"display_string\":\"world (hello626)\",\"agent_representation\":{\"ref\":\"/agents/corporate_entities/1\"}}},\"tree\":{\"ref\":\"/repositories/2/digital_objects/97/tree\"}}", | |
| "jsonmodel_type": "digital_object", | |
| "last_modified_by": "admin", | |
| "notes": "", | |
| "primary_type": "digital_object", | |
| "publish": false, | |
| "repository": "/repositories/2", | |
| "restrictions": "false", | |
| "suppressed": false, | |
| "system_generated": false, | |
| "system_mtime": "2017-04-18T00:49:42Z", | |
| "title": "My digital object", | |
| "types": [ | |
| "digital_object" | |
| ], | |
| "uri": "/repositories/2/digital_objects/97", | |
| "user_mtime": "2017-04-18T00:49:42Z" | |
| } | |
| ], | |
| "this_page": 1, | |
| "total_hits": 1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment