Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
siteConfig :
    siteDescriptionText : "Welcome to the XNAT 1.7 sandbox server!\n\nPlease enjoy your stay :)"
    siteDescriptionType : Text
    enableCsrfToken : false
pipelines : 
    DicomToNifti :
        "pipe:pipelineDetails.path" : "/data/xnatdev/pipeline/catalog/mricron/DicomToNifti.xml"
anon :
    file : sample_anon.das
dataTypes :
    sessions : [DX, MG, NM, OPT, OT, US, XA]
    YGTSS :
        singularName : 'Yale Global Tic Severity Scale Assessment'
        code : 'YGTSS'
        xsiType : 'xnat_a:ygtssData'
    YBOCS :
        singularName : 'Yale-Brown Obsessive-Compulsive Scale Assessment'
        code : 'YBOCS'
        xsiType : 'xnat_a:ybocsData'

...

  1. It prepares URL-encoded body with "eventSubmit_doAdd" = "Add" and sets "pipe:pipelineDetails.path" equal various path values in the body to the value of "pipeline_path" found 'path' in the pipeline YAML. These are the two parameters necessary to set up the pipeline.
  2. It checks the key-value pairs under the pipeline in the setup YAML (shown above) other than 'path', and adds them to the body, overwriting "pipe:pipelineDetails.path" if necessary.
  3. It POSTs the body to $server/app/action/ManagePipelines. This currently requires CSRF tokens to be disabled (hence enableCsrf : false, in the YAML).

...