Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEI Publisher Integration #21

Open
fechan opened this issue Dec 31, 2020 · 2 comments
Open

TEI Publisher Integration #21

fechan opened this issue Dec 31, 2020 · 2 comments
Labels
enhancement New feature or request tei-integration

Comments

@fechan
Copy link
Member

fechan commented Dec 31, 2020

This issue is for tracking important information about the ongoing TEI Publisher integration feature branch.

It is possible to access content from another TEI document in the same exist-db instance with a xquery like the following, meaning it is possible to access additional info from something like a TEI site index.

doc("/db/apps/tei-publisher/data/playground/locations.txt.tei")//settlement//text()

Of course, if the location of the external document changes within the exist-db instance, this will break.

Basically, wherever you need to display additional info, you put a similar xquery in the corresponding ODD element spec. In the following screenshot, the alternate behavior opens a popover on hover of a persName element, with its contents dictated by the parameter named alternate.
image

@fechan
Copy link
Member Author

fechan commented Dec 31, 2020

Not a web app thing, but the TEI Publisher server will refuse to accept plaintext documents, meaning you have to convert any plain text documents you want to serve to a TEI file anyway.

@fechan fechan added the enhancement New feature or request label Dec 31, 2020
@fechan
Copy link
Member Author

fechan commented Dec 31, 2020

Other possibly useful xquery statements:

  • string-join((@ref, "Hello"), " ") takes the @ref attribute value of the current node and joins it with the string "Hello"
  • root()//placeName//text() takes the text of any placeName anywhere in the root of the entire TEI document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tei-integration
Projects
None yet
Development

No branches or pull requests

1 participant