Skip to content

xlsform-to-ddi: option to return the whole codebook #45

Description

@jstet

POST /api/convert/xlsform-to-ddi returns only the children of formtransform's <dataDscr>. ddixml.DataDscr cuts away everything formtransform writes on <stdyDscr>:

  • the title (titl/parTitl) and IDNo;
  • settings: cdl:setting, default_language;
  • language names and order: cdl:language;
  • note rows with no question after them: notes[@type='instruction'] with cdl:position;
  • metadata rows (start, deviceid, …): cdl:row, cdl:row_label, cdl:row_column.

So XLSForm → /api/convert/xlsform-to-ddi → /api/convert/ddi-to-xlsform does not give the form back, although formtransform's own round trip does.

Proposal

?codebook=1 returns formtransform's <codeBook> unchanged. The fragment stays the default, since clients rely on it.

Not urgent: no client needs a whole-form round trip through these two endpoints today. Do it when one does.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions