ANNIS
ANNIS copied to clipboard
feature request - support corpus license display for full item view
ANNIS 3.1 makes it possible to view full documents, either directly or as a function of the result list. Some corpora (e.g. newspaper based) have restrictions for this: You can see a text snippet in a search result without problems, but a license should be shown (and, depending on the corpus, accepted) before the user can access a complete document.
As having to confirm licenses repeatedly will annoy the users, there should be a mechanism to remember whether the user has already accepted the license. Depending on the corpus, the same mechanism could also be used to even show the license only once, even if no confirmation was needed.
This mechanism could be based on a cookie, remembered on one computer, the current browser session, remembered in the least persistent possible way (avoids browser warnings about cookies) or in some sort of user database. The latter would mean that ANNIS has to have write access to a database, which I would like to avoid.
Regarding the processing of user identities, please see also ticket #342 :-)
The whole license display mechanism should be selectable per corpus: No license / Display license once / Display license each time / Confirm license once / Confirm license once and display it each time / Confirm license each time / ... You may want to add other possible cases.
The license information could be its own optional file in ExtData/ or part of corpus.properties as a String value. There are files per user in user management, but this mechanism would not work so well for showing a license just once to a user who uses a demo instance with no login, so the cookies approach might be something to consider.