Skip to content

Comments

fix(odd): register ids#282

Draft
HelenaSabel wants to merge 2 commits intomainfrom
fix/odd-register-ids
Draft

fix(odd): register ids#282
HelenaSabel wants to merge 2 commits intomainfrom
fix/odd-register-ids

Conversation

@HelenaSabel
Copy link
Contributor

@HelenaSabel HelenaSabel commented Feb 24, 2026

In the TEI Publisher ODD, the IDs to get the pertinent registers were hardcoded. This PR adds them to odd-global.xqm.

(This became relevant in a project were registers were imported from Antom and had their own ID scheme)

@duncdrum
Copy link
Contributor

Body: <?xml version="1.0" ?><exception><path>/db/apps/e2etest/modules/lib/api.xql</path><message>err:XPDY0002 variable '$defaults' is not set. [at line 54, column 53, source: /db/apps/e2etest/modules/odd-global.xqm]</message></exception>

(:~
: The map with the register IDs
:)
declare variable $config:register-map as map(*) := $defaults?register-map; No newline at end of file
Copy link
Contributor

@DrRataplan DrRataplan Feb 24, 2026

Choose a reason for hiding this comment

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

Should be "[[ $defaults?register-map ]]"

Copy link
Contributor Author

@HelenaSabel HelenaSabel Feb 24, 2026

Choose a reason for hiding this comment

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

@DrRataplan: wouldn’t it be either: [% $defaults?register-map %] or "[[ $defaults?register-map ]]"

Copy link
Contributor

Choose a reason for hiding this comment

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

uhh yeah. sorry...

@HelenaSabel HelenaSabel marked this pull request as draft February 24, 2026 14:42
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