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

Popups and links for rs (refering string) type=artwork-m #20

Open
pboot opened this issue Jun 8, 2023 · 1 comment
Open

Popups and links for rs (refering string) type=artwork-m #20

pboot opened this issue Jun 8, 2023 · 1 comment

Comments

@pboot
Copy link
Collaborator

pboot commented Jun 8, 2023

In the letters, there occur references to artworks by Mondrian such as <rs ref="artwork.xml#a268864" type="artwork-m">Dying sunflower II</rs>.

In this issue, we describe the desired behaviour for these references.

The text to be displayed is the content of the rs element.

A mouseover on the link should lead to a popup containing information from the artwork element, as follows:

  • Locate the artwork in the artwork.xml file with xml:id attribute equal to the value after the hash.
  • Title of artwork: take from head element. Should be a link to RKD images (URL from artwork's corresp attrbute).
  • Thumbnail: use graphic element's url attribute
  • Artist name: follow ref attribute of relation element and fetch name from bio.xml (temporarily: use value after hash)
  • Year of creation: use content of date element
  • Technique: Content of the catRef element with scheme = '#DRAGER', followed by a comma and a space, and then, separated by comma's and a space, the content of the catRef element(s) with scheme = '#MATERTECHN'
  • Dimensions: Content of the catRef element with scheme = '#VORM', followed by a comma, followed by value of the quantity attribute of the measure element with commodity = 'size-ver', followed by ' x ', followed by the quantity attribute of the measure element with commodity = 'size-hor', followed by a space, followed by the value of the unit attribute of one of the measure elements.
  • Current location: content of note element with type='location'.
@dirkroorda
Copy link
Member

It is clear how to collect the info that goes into the popup.

To do:

  • collect this info in a handy form into the Text-Fabric dataset
  • export this info as new annotations, possibly in a new namespace

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

No branches or pull requests

2 participants