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

Feature request: handle visibility of source images with respect to legal information #7

Open
nikobeer opened this issue Nov 8, 2022 · 7 comments
Assignees
Labels

Comments

@nikobeer
Copy link
Member

nikobeer commented Nov 8, 2022

Use case: Often digital facsimila are provided by institutions/private owners with special restrictions concerning (research) usage and/or (online) publication. So when source images are used to compile an (Edirom) edition theses images can be used 'internally' but cannot be published together with the final edition. To prevent projects to manipulate the final data set (deleting all references to the source in question) it would be helpful to encode legal status of these images within the MEI file and to enable Edirom-Online to be able deal with this information.

@nikobeer
Copy link
Member Author

nikobeer commented Nov 8, 2022

Maybe that's also interesting for other projects…? (@bwbohl & @riedde)

@nikobeer
Copy link
Member Author

nikobeer commented Nov 8, 2022

So how we do it:

  1. Encode legal status in MEI file:
<pubStmt>
    <availability type="facsimile">
        <accessRestrict>granted</accessRestrict>
        <useRestrict>notPublic</useRestrict>
    </availability>
</pubStmt>
  1. Provide a cache file where this information is gathered on (rwa) data set installation:
<mei xmlns="http://www.music-encoding.org/ns/mei" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="sources-notPublic" meiversion="4.0.1">
    <meiHead>
        <fileDesc>
            <titleStmt>
                <title>RWA Online Cache File sources-notPublic</title>
            </titleStmt>
            <pubStmt>
                <respStmt/>
            </pubStmt>
            <sourceDesc>
                <source corresp="source_ID_A"/>
                <source corresp="source_ID_B"/>
                <source corresp="source_ID_…"/>
            </sourceDesc>
        </fileDesc>
    </meiHead>
    <music/>
</mei>
  1. Make it work in Edirom-Online…

@nikobeer
Copy link
Member Author

nikobeer commented Nov 8, 2022

Side idea: If legal status of source images changes in future, we want to be able to show these images without changing the whole data set.

@nikobeer
Copy link
Member Author

nikobeer commented Nov 8, 2022

So in the Annotations View we want to replace the actual source preview image with a generic image to signal to the user/viewer that images of the source in question are currently(!) not available because of legal reasons.

@nikobeer
Copy link
Member Author

nikobeer commented Nov 8, 2022

Yeah! Already done:

Bildschirmfoto 2022-11-08 um 18 21 23

What we do:
Find out where we are ($env). If we are "internal" ('dev' or 'stage') show everything. Else if our cache file is present and the currently processed sourceID is not referenced there, show image(s). If neither is true reroute image URL to our generic SourceImageIsRestricted.jpg file.

@nikobeer
Copy link
Member Author

nikobeer commented Nov 8, 2022

And done for Annotation Tool Tips…

Bildschirmfoto 2022-11-08 um 19 25 22

@riedde
Copy link
Collaborator

riedde commented Nov 14, 2022

Thank you @nikobeer! This might be a nice feature to have also at the upstream repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants