Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24434

Configure document type main publish rendition

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3
    • Component/s: Web UI
    • Release Notes Summary:
      Allows default rendition to be configured as a contribution
    • Tags:
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      Default rendition computation script must now be defined per reason.

      For instance:

      <defaultRendition reason="download">
            <script language="JavaScript">
              function run() {
                return 'mainBlob'
              }
            </script>
      </defaultRendition>
      

      or

      <defaultRendition reason="publish">
            <script language="JavaScript">
              function run() {
                return 'pdf'
              }
            </script>
      </defaultRendition>
      
      Show
      Default rendition computation script must now be defined per reason. For instance: <defaultRendition reason= "download" > <script language= "JavaScript" > function run() { return 'mainBlob' } </script> </defaultRendition> or <defaultRendition reason= "publish" > <script language= "JavaScript" > function run() { return 'pdf' } </script> </defaultRendition>
    • Sprint:
      nxGang Sprint 10.3.6, nxGang Sprint 10.3.7
    • Story Points:
      0

      Description

      As a developer/configuration
      I want to set the publishing rendition for any document type
      So that when a user can have a default rendition to publish

      Functional description

      To this end, "defaultRendition" extension point on Rendition service should be used to configure the default rendition for publishing.

      https://github.com/nuxeo/nuxeo/blob/481358e159e6046e69ff79475439af937f724a47/nuxeo-features/nuxeo-platform-rendition/nuxeo-platform-rendition-core/src/main/resources/OSGI-INF/rendition-download-contrib.xml#L29

      For document publish, the "Reason" should be "publish".

      Default publish rendition should be:

      • if schema file:file existes
        • if file is office then 'pdf' rendition
        • else mainBlob
      • else similar to "download" Reason

      Acceptance Criteria

      1. Given I've created a default rendition for publishing when I Publish a document affect with that contribution then the correct rendition is performed
      2. Given I've created a default rendition for publishing when I Publish a set of documents affected by that contribution then the correct rendition is performed for each document
      3. When I publish a set of documents with default rendition then all the publication are of the correct rendition regarding the description of the "default publish rendition" on this ticket.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.