Background
Campus is retiring the old IAM API in favor of a new one, Rosetta. We're migrating this application over. As part of that, a new search component (rosetta-person-search) and a new RosettaModel now exist on the rosetta branch, meant to replace the old PersonModel-based lookups across the app.
Task
ucdlib-iam-page-patron-lookup.js currently has its own duplicated search form and results UI, built directly against PersonModel, rather than using the shared ucdlib-iam-search component. Update this page to use rosetta-person-search and RosettaModel instead.
Once that's in place, clean up anything in the page that's no longer needed as a result - e.g. properties, methods, docstrings, template functions. It should be a fair amount, so please be thorough.
Secrets
You can find the credentials for the API in Google Cloud. You will need to set the ROSETTA_API_CLIENT_ID and ROSETTA_API_CLIENT_SECRET env variables.
Branch
Work off rosetta (origin/rosetta) — that's where the new component and model live. They aren't on main yet.
Acceptance criteria
Background
Campus is retiring the old IAM API in favor of a new one, Rosetta. We're migrating this application over. As part of that, a new search component (
rosetta-person-search) and a newRosettaModelnow exist on therosettabranch, meant to replace the oldPersonModel-based lookups across the app.Task
ucdlib-iam-page-patron-lookup.jscurrently has its own duplicated search form and results UI, built directly againstPersonModel, rather than using the shareducdlib-iam-searchcomponent. Update this page to userosetta-person-searchandRosettaModelinstead.Once that's in place, clean up anything in the page that's no longer needed as a result - e.g. properties, methods, docstrings, template functions. It should be a fair amount, so please be thorough.
Secrets
You can find the credentials for the API in Google Cloud. You will need to set the
ROSETTA_API_CLIENT_IDandROSETTA_API_CLIENT_SECRETenv variables.Branch
Work off
rosetta(origin/rosetta) — that's where the new component and model live. They aren't onmainyet.Acceptance criteria
PersonModelin this file