Skip to content

Problem with conditionals #67

@tokee

Description

@tokee

OaiHarvestClientIntegrationTest in ds-datahandler uses the code

    oaiTarget.setUsername(conf.getString("integration.oaiTargets[1].user"));

against a config like

integration:
  oaiTargets:
    - name: pvica5.devel
      datasource: ds.radiotv
      url: <serverurl>
      user: <user>
      password: <password>
      metadataPrefix: XIP_full_schema
      description: Radio- of TV-udsendelser

    - name: pvica7.devel
      datasource: ds.radiotv
      url: <serverurl>
      user: <user>
      password: <password>
      metadataPrefix: xip
      description: Radio- of TV-udsendelser
      filter: preservica
      dateStampFormat: datetime
      dayOnly: true
      startDay: '2024-03-01'

It would be a lot cleaner to write

    oaiTarget.setUsername(conf.getString("integration.oaiTargets[name=pvica7.devel].user"));

but this does not work!?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions