-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #431 from NYPL/noref-nypl-core-objects-async
specRequest update and async update
- Loading branch information
Showing
7 changed files
with
525 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
152 changes: 152 additions & 0 deletions
152
test/fixtures/specRequestable/findingAid-es-response.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
module.exports = () => { | ||
return { | ||
_shards: { | ||
failed: 0, | ||
successful: 1, | ||
total: 1 | ||
}, | ||
took: 1, | ||
hits: { | ||
total: 1, | ||
max_score: 1.3862944, | ||
hits: [ | ||
{ | ||
_id: 'b10980129', | ||
_source: { | ||
supplementaryContent: [{ | ||
label: 'Finding aid', | ||
url: 'spaghetti.com' | ||
}], | ||
items: [ | ||
{ | ||
holdingLocation: [ | ||
{ | ||
label: 'OFFSITE - Request in Advance', | ||
id: 'loc:rc2ma' | ||
} | ||
], | ||
status_packed: [ | ||
'status:na||Not Available' | ||
], | ||
owner: [ | ||
{ | ||
id: 'orgs:1000', | ||
label: 'Stephen A. Schwarzman Building' | ||
} | ||
], | ||
deliveryLocation: [ | ||
{ | ||
id: 'loc:mala', | ||
label: 'SASB - Allen Scholar Room' | ||
} | ||
], | ||
deliveryLocation_packed: [ | ||
'loc:mala||SASB - Allen Scholar Room' | ||
], | ||
uri: 'i10283664', | ||
accessMessage_packed: [ | ||
'accessMessage:2||ADV REQUEST' | ||
], | ||
accessMessage: [ | ||
{ | ||
id: 'accessMessage:2', | ||
label: 'ADV REQUEST' | ||
} | ||
], | ||
status: [ | ||
{ | ||
id: 'status:na', | ||
label: 'Not available' | ||
} | ||
], | ||
owner_packed: [ | ||
'orgs:1000||Stephen A. Schwarzman Building' | ||
], | ||
requestable: [ | ||
false | ||
], | ||
identifier: [ | ||
'urn:barcode:1000546836' | ||
], | ||
holdingLocation_packed: [ | ||
'loc:rc2ma||OFFSITE - Request in Advance' | ||
], | ||
shelfMark: [ | ||
'*OFC 90-2649' | ||
], | ||
suppressed: [ | ||
false | ||
] | ||
}, | ||
{ | ||
holdingLocation: [ | ||
{ | ||
label: 'OFFSITE - Request in Advance', | ||
id: 'loc:rc2ma' | ||
} | ||
], | ||
status_packed: [ | ||
'status:a||Available' | ||
], | ||
owner: [ | ||
{ | ||
id: 'orgs:1000', | ||
label: 'Stephen A. Schwarzman Building' | ||
} | ||
], | ||
deliveryLocation: [ | ||
{ | ||
id: 'loc:mala', | ||
label: 'SASB - Allen Scholar Room' | ||
} | ||
], | ||
deliveryLocation_packed: [ | ||
'loc:mala||SASB - Allen Scholar Room' | ||
], | ||
uri: 'i102836649', | ||
accessMessage_packed: [ | ||
'accessMessage:2||ADV REQUEST' | ||
], | ||
accessMessage: [ | ||
{ | ||
id: 'accessMessage:2', | ||
label: 'ADV REQUEST' | ||
} | ||
], | ||
status: [ | ||
{ | ||
id: 'status:a', | ||
label: 'Available' | ||
} | ||
], | ||
owner_packed: [ | ||
'orgs:1000||Stephen A. Schwarzman Building' | ||
], | ||
requestable: [ | ||
false | ||
], | ||
identifier: [ | ||
'urn:barcode:10005468369' | ||
], | ||
holdingLocation_packed: [ | ||
'loc:rc2ma||OFFSITE - Request in Advance' | ||
], | ||
shelfMark: [ | ||
'*OFC 90-2649 2' | ||
], | ||
suppressed: [ | ||
false | ||
] | ||
} | ||
] | ||
|
||
}, | ||
_type: 'resource', | ||
_index: 'resources-2017-06-13', | ||
_score: 154.93451 | ||
} | ||
] | ||
}, | ||
timed_out: false | ||
} | ||
} |
Oops, something went wrong.