-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get manifestation data by best representation for parallel reservations
Use our new query to retrieve data from the best representation of the owner work of one of the faust ids in our parallel reservation. In general our parallel reservation data structure only contain a single faust id (from the first reservation in the group). This may seem liked a problem but based on the assumption that any faust id in the group should return the same owner work which should return the same best representation this should actually be OK. Since parallel reservations may appear in different locations throughout the app handling is added to the fetchMaterial() higher order component. We can the utilize the fact that both hooks for retrieving material data use the same fragment. Expand the reservation list Cypress test to show that data fetching for parallel reservations works.
- Loading branch information
Showing
4 changed files
with
164 additions
and
12 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
cypress/fixtures/reservation-list/work-bestrepresentation.json
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,50 @@ | ||
{ | ||
"data": { | ||
"manifestation": { | ||
"ownerWork": { | ||
"manifestations": { | ||
"bestRepresentation": { | ||
"pid": "870970-basis:22629344", | ||
"titles": { | ||
"full": [ | ||
"Best representation of dummy title" | ||
] | ||
}, | ||
"abstract": [ | ||
"Dummy Some abstract ..." | ||
], | ||
"edition": { | ||
"summary": "3. udgave, 1. oplag (2019)", | ||
"publicationYear": { | ||
"display": "2006" | ||
} | ||
}, | ||
"materialTypes": [ | ||
{ | ||
"specific": "Dummy bog" | ||
} | ||
], | ||
"series": [ | ||
{ | ||
"numberInSeries": { | ||
"number": [ | ||
1 | ||
] | ||
}, | ||
"title": "Detektivbureau Nr. 2" | ||
} | ||
], | ||
"creators": [ | ||
{ | ||
"display": "Dummy Jens Jensen" | ||
}, | ||
{ | ||
"display": "Dummy Some Corporation" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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