Skip to content

MIR-1556 migrate solr response#1319

Merged
yagee-de merged 2 commits intomainfrom
issues/MIR-1556-migrate-solr-response
Mar 25, 2026
Merged

MIR-1556 migrate solr response#1319
yagee-de merged 2 commits intomainfrom
issues/MIR-1556-migrate-solr-response

Conversation

@yagee-de
Copy link
Copy Markdown
Member

@yagee-de yagee-de commented Mar 20, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec24681146

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +23 to +24
<xsl:value-of select="concat('&amp;_xed_session=', $xedSession)" />
<xsl:value-of select="concat('&amp;@xlink:href=', $objectID)" />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge URL-encode subselect query parameters

The new subselect link concatenates _xed_session and @xlink:href directly into the query string without encoding, so values containing reserved characters (for example when the source edit URL has additional query params after id=) will be split by &/+ and produce a malformed XEditor URL or a truncated object id. The previous implementation encoded both values before appending; this should be preserved to keep the takeover action reliable across mapped editor URLs.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Neither $xedSession ({int}-{int}) nor an $objectID(foo_bar_{int}) will ever contain special characters. Adding an encoding step acts like a NOOP here.

Copy link
Copy Markdown
Member

@rsteph-de rsteph-de left a comment

Choose a reason for hiding this comment

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

some "technical" issues ...
This should be reviewed by a real MIR user (not me ;-) ).

Still, I suggest to merge ASAP and fix possible remaining issues later.

Comment thread mir-module/src/main/resources/xslt/badges/mir-badges-date.xsl
Comment thread mir-module/src/main/resources/xslt/badges/mir-badges-oa.xsl
Comment thread mir-module/src/main/resources/xslt/badges/mir-badges-orcid.xsl
Comment thread mir-module/src/main/resources/xslt/badges/mir-badges-orcid.xsl
@yagee-de yagee-de force-pushed the issues/MIR-1556-migrate-solr-response branch from ec24681 to 5b20604 Compare March 20, 2026 19:45
Copy link
Copy Markdown
Contributor

@kkrebs kkrebs left a comment

Choose a reason for hiding this comment

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

looks good for me, but please take a look at the chatgpt suggestion

@yagee-de yagee-de force-pushed the issues/MIR-1556-migrate-solr-response branch from 5b20604 to 082b575 Compare March 24, 2026 20:26
@yagee-de yagee-de merged commit b094aad into main Mar 25, 2026
2 of 4 checks passed
@yagee-de yagee-de deleted the issues/MIR-1556-migrate-solr-response branch March 25, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants