Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with conditionals #67

Open
tokee opened this issue Apr 15, 2024 · 0 comments
Open

Problem with conditionals #67

tokee opened this issue Apr 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tokee
Copy link
Member

tokee commented Apr 15, 2024

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!?

@tokee tokee added the bug Something isn't working label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant