Will by default set current user as author on new articles.
A plugin that handles IM.ID user byline implementation for traceability. Will by default set current user as author on new articles.
If there ias no match for IMID sub on any author concept a search for authors with the same email will be made.
When an author is selected from suggestion list, it will also set IM.ID sub on connected author concept.
requires
ConceptAuthorFirstname
,ConceptAuthorLastname
,ConceptAuthorEmail
andConceptImIdSubjectId
in open content.
The following config is used in the plugin config:
"supportEmail": "concept-admin@your-org.com"
Optional email to display when user does not match any existing author concept."optional": true
If the author selection should be optional or not, defaults to false
{
"id": "io.infomaker.userbyline",
"name": "im-userbyline",
"url": "https://plugins.writer.infomaker.io/v1/infomaker/im-userbyline/{PLUGIN_VERSION}/index.js",
"style": "https://plugins.writer.infomaker.io/v1/infomaker/im-userbyline/{PLUGIN_VERSION}/style.css",
"mandatory": false,
"enabled": true,
"data": {
"supportEmail": "concept-admin@your-org.com",
"optional": true
}
}
Property | Type | Required | Description |
---|---|---|---|
supportEmail | String | true |
The contact email that will be shown in the writer popup |
optional | String | true |
Specify if the user has to select an author -concept first time or if its optional |
Editorial Open content needs to be updated with a few new Indexfields and Properties. Those are described and specified in editorial/writer/writer-user-configuration.yml
in Open Content Configs repository
The following properties needs to be added to the ConceptService
part of the writer config:
"propertyMap": {
...
"ConceptAuthorFirstname": "ConceptAuthorFirstname",
"ConceptAuthorLastname": "ConceptAuthorLastname",
"ConceptAuthorEmail": "ConceptAuthorEmail",
"ConceptImIdSubjectId": "ConceptImIdSubjectId",
...
}
The plugin generates a link to the selected/connected author concept object in Open Content.
<newsItem>
<itemMeta>
<links xmlns="http://www.infomaker.se/newsml/1.0">
<link rel="author" title="Author name" type="x-im/author" uuid="942648f1-27a4-4aab-9980-d1225cb131d8">
</links>
</itemMeta>
</newsItem>