Skip to content

NatLibFi/Skosmos-widget-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parameterized Plugin

Parameters for this widget are passed in the config.ttl for each vocabulary - the example shows an instance of this widget with local name :messageWidgetconfigured for a vocabulary with local name :vocab:


@prefix schema:  .
@prefix skosmos:  .
@prefix : <#> .

:vocab skosmos:useParamPlugin :messageWidget .

:messageWidget  a skosmos:ParameterizedPlugin ;
                skosmos:usePlugin "message";
                skosmos:parameters [
                  a schema:PropertyValue ;
                  schema:propertyID "msg";
                  schema:value "Tämä on testiviesti."@fi , "Det här är ett testmeddelande."@sv, "This is a default test message without a language code." ;
                ] .

The message strings are identified as schema:value literals for a schema:PropertyValue with schema:propertyID "msg". The widget matches the message language with Skosmos UI language, or uses the default message with no language tag for UI languages with don't have their own designated message. The requirement for plugin is to be installed under SKOSMOS_HOME/plugins/message/ . General documentation for Skosmos plugins can be found in https://github.com/NatLibFi/Skosmos/wiki/Plugins .

About

General-purpose notification widget for Skosmos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published