User byline

Will by default set current user as author on new articles.

Infomaker IM.ID user byline plugin

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.

Dependencies

requires ConceptAuthorFirstname, ConceptAuthorLastname, ConceptAuthorEmail and ConceptImIdSubjectId in open content.

Configuration

The following config is used in the plugin config:

{
  "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
  }
}

Options

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

Open Content

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

Writer config

The following properties needs to be added to the ConceptService part of the writer config:

"propertyMap": {
    ...
    "ConceptAuthorFirstname": "ConceptAuthorFirstname",
    "ConceptAuthorLastname": "ConceptAuthorLastname",
    "ConceptAuthorEmail": "ConceptAuthorEmail",
    "ConceptImIdSubjectId": "ConceptImIdSubjectId",
    ...
}

Output

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>