Skip to content

Scc 5291/is research#93

Merged
charmingduchess merged 10 commits into
mainfrom
SCC-5291/is-research
Apr 23, 2026
Merged

Scc 5291/is research#93
charmingduchess merged 10 commits into
mainfrom
SCC-5291/is-research

Conversation

@charmingduchess
Copy link
Copy Markdown
Contributor

  • add isResearch check to bib id-identified urls.
  • update logic around collection=circ query param in recordReg handler - I think this is what the desired behavior is, but could use an extra confirmation there.
  • light refactor of tests to stub more cleanly
  • new unit tests for new queryIsResearch method

@charmingduchess charmingduchess requested a review from nonword April 21, 2026 19:55
Copy link
Copy Markdown
Member

@nonword nonword left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the much nicer separation

Comment thread handlers/webpac-handler.js Outdated
if (Array.isArray(collection) && collection.includes('circ')) {
return `${process.env.VEGA_HOST}/search/card?recordId=${bnum.replace(/\D/g, '')}`
const circCollection = Array.isArray(collection) && collection.includes('circ')
const { isResearch } = await requests.queryIsResearch(num, 'id')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we skip doing the queryIsResearch when circCollection === true?

@charmingduchess charmingduchess merged commit 573fbd0 into main Apr 23, 2026
6 checks passed
@charmingduchess charmingduchess requested a review from nonword April 23, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants