Coder Social home page Coder Social logo

Comments (5)

tobiasschweizer avatar tobiasschweizer commented on June 18, 2024

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.

subotic avatar subotic commented on June 18, 2024

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.

tobiasschweizer avatar tobiasschweizer commented on June 18, 2024

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.

subotic avatar subotic commented on June 18, 2024

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.

tobiasschweizer avatar tobiasschweizer commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.