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

Enhance usability/accessibility of concepts #263

Closed
oellers opened this issue Apr 4, 2023 · 2 comments · Fixed by #279
Closed

Enhance usability/accessibility of concepts #263

oellers opened this issue Apr 4, 2023 · 2 comments · Fixed by #279
Assignees
Labels
enhancement New feature or request

Comments

@oellers
Copy link

oellers commented Apr 4, 2023

Situation

  • Currently the docker image skohub/skohub-vocabs-docker:latest provides language-based html files, no general "index.html" (as found in skohub-docker-vocabs#7)

Drawbacks

  • Dealing with concept ids looking like URIs might confuse users, if they are used to accessing them with the expectation of reaching meaningful content. Although the main purpose is unique identification, it might not be from a user's perspective

Non-working Example

Working Example

How to deal with the drawback

  • Maybe generation of index.html or htaccess rules redirecting to existing language files by default/existance?
@sroertgen
Copy link
Contributor

The main purpose of the current behavior seems to come from the need to identify a language, so Skohub Vocabs knows which language to select and render.
We can maybe bypass this using the browsers navigator.language (https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language).
This would also allow us to be independent of a specific web server (Apache), which I would really like.

@sroertgen sroertgen self-assigned this Aug 31, 2023
@sroertgen sroertgen added the enhancement New feature or request label Aug 31, 2023
@awagner-mainz
Copy link

I have manually modified the .htaccess file resulting from the build to

  • enable indexes and multiviews
  • add another filename to the "DirectoryIndex" type, reflecting the name of my conceptScheme ("scheme")
  • declare the languages used in my vocabulary
Options +FollowSymLinks +MultiViews +Indexes

DirectoryIndex index scheme

AddLanguage da .da
AddLanguage de .de
AddLanguage en .en
AddLanguage fr .fr
AddLanguage nl .nl
AddLanguage sv .sv

AddType text/index .index
AddType application/json .json
AddType application/ld+json .jsonld

(the AddType directives have been there before)

The second and third point are likely to vary from vocabulary to vocabulary, but during building we should have knowledge of these things. Maybe create an .htaccess file automatically. If the user runs nginx, caddy or something else, they at least have an indication of what they'd need to implement in their webserver's configuration.

@sroertgen sroertgen added this to SkoHub Oct 4, 2023
@sroertgen sroertgen moved this to Backlog in SkoHub Oct 4, 2023
@sroertgen sroertgen moved this from Backlog to Ready in SkoHub Oct 23, 2023
@sroertgen sroertgen moved this from Ready to Working in SkoHub Oct 27, 2023
@sroertgen sroertgen mentioned this issue Nov 7, 2023
2 tasks
@sroertgen sroertgen moved this from Working to Review in SkoHub Nov 7, 2023
@github-project-automation github-project-automation bot moved this from Review to Done in SkoHub Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants