Requirements

Plugins

The following plugins are needed in order to run the plugin

Content Agent

  • An action will be called to get content-handler instance to handle requests and fetching content

OC configuration

In order to work with this plugin you'll also need to have the Template content type configuration in OC as well as the Naviga ID access configuration.

indexfields:
    - name: TemplateType
      type: STRING
      multivalued: false
      sortable: true
      readonly: false
      description: "Template type"

    - name: TemplateCreator
      type: STRING
      multivalued: false
      sortable: false
      readonly: false
      description: "Sub for user who created"

    - name: TemplateIsShared
      type: BOOLEAN
      multivalued: false
      readonly: false
      suggest: false
      description: "DO NOT DELETE OR CHANGE... A flag to determine if a template is shared or personal"

contenttypes:
    - Template:
        - name: TemplateType
          type: STRING
          multivalued: false
          searchable: true
          readonly: false
          description: "Template type"
          indexfields:
            - TemplateType

        - name: Name
          type: STRING
          multivalued: false
          searchable: true
          readonly: false
          description: "For overview in xlibris"
          indexfields:
            - Name

        - name: TemplateCreator
          type: STRING
          multivalued: false
          searchable: true
          readonly: false
          description: "Sub for user who created"
          indexfields:
            - TemplateCreator

        - name: TemplateIsShared
          type: BOOLEAN
          multivalued: false
          searchable: false
          readonly: false
          description: "DO NOT DELETE OR CHANGE... A flag to determine if a template is shared or personal"
          indexfields:
            - TemplateIsShared
      
        - name: Headline
          type: STRING
          multivalued: false
          searchable: true
          readonly: false
          description: DO NOT DELETE OR CHANGE... For overview in xlibris
          indexfields:
            - Headline

xpathextractors:
#Type
    - id: 43c56a3b-0ab6-4b69-87dc-cf9fea67925a
      property: TemplateType
      contenttype: Template
      mimetype: application/vnd.iptc.g2.newsitem+xml.article.template
      xpath: /*:newsItem/*:itemMeta/*:itemMetaExtProperty[@type='imext:type']/@value

    - id: f89e5147-2945-4bcc-89cc-3bad8d4a1cf9
      property: TemplateType
      contenttype: Template
      mimetype: application/vnd.iptc.g2.conceptitem+xml.event.template
      xpath: /*:conceptItem/*:itemMeta/*:itemMetaExtProperty[@type='imext:type']/@value
      ignoreroot: false

    - id: bec0d5e9-666d-4d1b-b506-9d658dcc2677
      property: TemplateType
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.assignment.template
      xpath: /*:planning/*:planningExtProperty[@type='imext:type']/@value
      ignoreroot: false

    - id: 91155f2c-4327-4684-8363-b50112fa6781
      property: TemplateType
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.template
      xpath: /*:planningItem/*:itemMeta/*:itemMetaExtProperty[@type='imext:type']/@value
      ignoreroot: false

#Name
    - id: aa6635b1-fed8-4bb4-bb72-8b46d98537fd
      property: Name
      contenttype: Template
      mimetype: application/vnd.iptc.g2.newsitem+xml.article.template
      xpath: /*:newsItem/*:itemMeta/*:title/text()

    - id: cb5577d6-9e4c-4c23-83a5-f3d09caebc1a
      property: Name
      contenttype: Template
      mimetype: application/vnd.iptc.g2.conceptitem+xml.event.template
      xpath: //*:links/*:link[@rel="template-info"]/@title
      ignoreroot: false

    - id: 1133944d-1b81-401b-a38f-cdb23fbe0408
      property: Name
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.assignment.template
      xpath: //*:links/*:link[@rel="template-info"]/@title
      ignoreroot: false

    - id: 3ac4c35e-4d12-4dd0-9e15-f25f7487ce60
      property: Name
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.template
      xpath: //*:links/*:link[@rel="template-info"]/@title
      ignoreroot: false

#Creator
    - id: 02e533c3-f044-46f2-a6ea-40016f4cd100
      property: TemplateCreator
      contenttype: Template
      mimetype: application/vnd.iptc.g2.newsitem+xml.article.template
      xpath: /*:newsItem/*:itemMeta/*:links/*:link[@rel = 'creator']/substring-after(@uri, 'imid://user/sub/')

    - id: 296da437-a3d7-464c-912e-0a5d1d268876
      property: TemplateCreator
      contenttype: Template
      mimetype: application/vnd.iptc.g2.conceptitem+xml.event.template
      xpath: /*:conceptItem/*:itemMeta/*:links/*:link[@rel='creator']/substring-after(@uri, 'imid://user/sub/')
      ignoreroot: false

    - id: 21d75501-4dad-4aed-a680-77e4f05cc961
      property: TemplateCreator
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.assignment.template
      xpath: /*:planning/*:links/*:link[@rel='creator']/substring-after(@uri, 'imid://user/sub/')
      ignoreroot: false

    - id: 1ec4af79-d094-47f2-a08c-9a3f502a9502
      property: TemplateCreator
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.template
      xpath: /*:planningItem/*:itemMeta/*:links/*:link[@rel='creator']/substring-after(@uri, 'imid://user/sub/')
      ignoreroot: false

#IsShared
    - id: 28bfef1d-c01f-4797-9133-170dacbbd192
      property: TemplateIsShared
      contenttype: Template
      mimetype: application/vnd.iptc.g2.newsitem+xml.article.template
      xpath: /*:newsItem/*:itemMeta/*:links/*:link[@rel="template-info"]/@uri eq 'im://template/shared'
      ignoreroot: false

    - id: 04e14cd5-ec17-44e8-b79b-5aced9f08cd4
      property: TemplateIsShared
      contenttype: Template
      mimetype: application/vnd.iptc.g2.conceptitem+xml.event.template
      xpath: //*:links/*:link[@rel="template-info"]/@uri eq 'im://template/shared'
      ignoreroot: false

    - id: 0d1465b1-225d-4816-bfc6-869b0dae8e08
      property: TemplateIsShared
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.assignment.template
      xpath: //*:links/*:link[@rel="template-info"]/@uri eq 'im://template/shared'
      ignoreroot: false

    - id: e32a666a-26d0-4352-88a8-3d71adee0bdb
      property: TemplateIsShared
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.template
      xpath: //*:links/*:link[@rel="template-info"]/@uri eq 'im://template/shared'
      ignoreroot: false

#Headline
    - id: 55644308-6fe5-4865-a155-9eafe9f48011
      property: Headline
      contenttype: Template
      mimetype: application/vnd.iptc.g2.conceptitem+xml.event.template
      xpath: //*:links/*:link[@rel="template-info"]/@title
      ignoreroot: false

    - id: 7541b4b0-5c67-4b18-9276-ba48ba7ad5ee
      property: Headline
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.assignment.template
      xpath: //*:links/*:link[@rel="template-info"]/@title
      ignoreroot: false

    - id: 4f5d94fe-b870-4b1d-93b5-6b5dc42b319b
      property: Headline
      contenttype: Template
      mimetype: application/vnd.iptc.g2.planningitem+xml.template
      xpath: //*:links/*:link[@rel="template-info"]/@title
      ignoreroot: false

importcontenttyperules:
    - id: 2abdb19b-b5a7-4567-bccc-c5c823ee162d
      contenttype: Template
      metadatamimetypes:
          - application/vnd.iptc.g2.conceptitem+xml.event.template
          - application/vnd.iptc.g2.planningitem+xml.template
          - application/vnd.iptc.g2.planningitem+xml.assignment.template

versioning:
    contenttypes:
        - name: Template
          maxversions: 0

Last updated