Comments (5)
The icons can all be served directly by Sipi, using a IIIF URL.
We just need to be sure that every icon that is used by Knora exists on the Sipi server. We could use a special prefix for that.
from dsp-api.
Strictly speaking, aren't ressource class icons something that the gui (Salsah) would need to take care of? Salsah can have a default mapping of ressource classes to icons, which then could be changed in the project specific settings.
from dsp-api.
I think this is a good way to do it! So then we would place the icon files in the salsah-app?
from dsp-api.
Yes, that's what I was thinking. For now we could create a folder under app/icons
and put all resource class icons inside it. Then somewhere in Salsah, we will need to define the mappings between the classes and the icons. Later on, these default icons could then be changed by adding custom project specific themes to Salsah, or something like this.
from dsp-api.
Now, I added a function that creates URLs for resource icons: e2a141b
It takes the Iri of a resource class and gets out the name of the ontology it was defined in. Then it is expected that the actual icon is in a folder with that name in Salsah's icon project folder: http://localhost:3335/project-icons/incunabula/page.gif
from dsp-api.
Related Issues (20)
- Run tests against a single running knora-stack HOT 2
- Remove incunabula dependency in AllTriplestoreSpec
- Can't start Sipi following instructions in README HOT 2
- Consider simplifying permissions so they can be calculated in SPARQL HOT 2
- Consider supporting SELECT in Gravsearch HOT 1
- typos in admin doc HOT 2
- ontology's last modification date HOT 4
- Incorrect IRIs in anything-data.ttl
- Failing github-ci JS lib HOT 1
- Resource Testding doesn't return a TextValueAsHtml HOT 26
- feat: Add a better groupBy HOT 1
- knora-api:resourceProperty should not be a resource property HOT 1
- refactor(gravsearch): Simplify filtering of incoming links
- outdated documentation of clientAPIRoute? HOT 2
- admin API: get all groups fails HOT 9
- Creating ontology ignores rdfs:comment field (small snafu....) HOT 7
- Allow to configure the attribute that works as "class" attribute in the xml mapping HOT 2
- docs: Bazel build tool is missing in Knora Getting Started for Developers HOT 1
- make stack-up: wait-for-... scripts run into timeout HOT 3
- documentation not available HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsp-api.