Skip to content

Comp matching#203

Closed
nvolk wants to merge 8 commits intonextfrom
comp_matching
Closed

Comp matching#203
nvolk wants to merge 8 commits intonextfrom
comp_matching

Conversation

@nvolk
Copy link
Contributor

@nvolk nvolk commented Mar 4, 2026

  • Jotain osakohteiden tunnisteiden vertailuja (773$x ja $z, ei vielä $o, kun en osannut siitä päättää, että miten suhtautua eri arvoihin, sillä $o:issa lienee enempi huojuntaa)
  • julkaisuvuosikoodin laajentamista (008/07-10 -> 008/06-15) ja parempaa tukea puuttuville arvoille

@nvolk nvolk requested a review from ammsalme March 4, 2026 10:13
@nvolk nvolk requested a review from a team as a code owner March 4, 2026 10:13

function getSruSearchType() {
if (relevantSubfieldCode === ISBN) {
return 'index.bath.isbn';
Copy link
Contributor

Choose a reason for hiding this comment

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

'bath.isbn'

return 'index.bath.isbn';
}
if (relevantSubfieldCode === ISSN) {
return 'index.bath.issn';
Copy link
Contributor

Choose a reason for hiding this comment

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

'bath.issn'

if (relevantSubfieldCode === ISSN) {
return 'index.bath.issn';
}
return 'whatever.whatever'; // 773$o not really supported
Copy link
Contributor

Choose a reason for hiding this comment

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

Could work with dc.identifier, maybe

reject(err);
}
})
.on('record', record => {
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if we get several records as response?
(sourceids shouldn't hit several records, ISBNs and ISSNs propably will)

@nvolk nvolk deleted the branch next March 4, 2026 16:08
@nvolk nvolk closed this Mar 4, 2026
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