Skip to content

Sru with transformers - #1788

Merged
kaipoykio merged 11 commits into
developfrom
sru-with-transformers
Aug 18, 2026
Merged

Sru with transformers#1788
kaipoykio merged 11 commits into
developfrom
sru-with-transformers

Conversation

@kaipoykio

Copy link
Copy Markdown
Contributor

The sru transformer is a bit clumsy and requires maybe a rework.

@jannistsiroyannis jannistsiroyannis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The indentation got a little weird, is it a tabs/spaces thing?
There's a few commented out code blocks that could be removed, and the run-local script should perhaps not be checked in, it assumes a certain directory which wont be the case for everyone.
Otherwise, LGTM (after handling the merge conflicts)!

@kaipoykio

Copy link
Copy Markdown
Contributor Author

Thx, I'll fix ;)

@kaipoykio
kaipoykio requested review from andersju and kwahlin July 23, 2026 09:18

@andersju andersju left a comment

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.

See comment about recordSchema. There have been a lot of changes to sru since this was branched off so it needs some careful rebasing to fix conflicts/not break some newer stuff: https://github.com/libris/librisxl/commits/develop/sru/src/main/java/whelk/sru/servlet

Otherwise LGTM!

try {
String CqlQueryString = getParameter(parameters, "query");
String CqlQueryString = parameters.get("query")[0];
format = parameters.get("recordSchema")[0];

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.

recordSchema is afaik not a required parameter so this would NPE

@kaipoykio
kaipoykio merged commit 594f1bc into develop Aug 18, 2026
1 check passed
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.

3 participants