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

Create new zip exporter for handling multiple individuals. #459

Open
kaladay opened this issue Jan 23, 2025 · 0 comments
Open

Create new zip exporter for handling multiple individuals. #459

kaladay opened this issue Jan 23, 2025 · 0 comments

Comments

@kaladay
Copy link

kaladay commented Jan 23, 2025

The is part of issue TAMULib/scholars-angular#337 .

Using the existing exporters and selecting zip, such as the example code below, results in an error about this not being supported.

      String testQ = "(id:n0016a660 OR id:n54c59a01)^=1.0 AND class:\"Person\"";
      QueryArg query = QueryArg.of(Optional.of(testQ), empty(), empty(), empty(), empty(), empty());
      List<FilterArg> filters = new ArrayList<>();
      List<BoostArg> boosts = new ArrayList<>();
      List<ExportArg> export = new ArrayList<>();

      Exporter exporter = exporterRegistry.getExporter("zip");
      return ResponseEntity.ok()
          .header(CONTENT_DISPOSITION, exporter.contentDisposition(normalizeExportFilename("example")))
          .header(CONTENT_TYPE, exporter.contentType())
          .body(exporter.streamIndividuals(repo.export(query, filters, boosts, Sort.unsorted()), export));

The ability to use

Implementing exporters other than zip might be a good idea but should be considered out of scope of this issue.
Only if it is convenient and simple should the others be implemented.

The csv appears to support this, but it may or may not need more work.

This issue is only about implementing the zip exporter for multiple individuals and is not about any other task.

@kaladay kaladay moved this to 📋 Backlog in Scholars@TAMU Jan 23, 2025
@kaladay kaladay moved this from 📋 Backlog to 🏃 On Sprint in Scholars@TAMU Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏃 On Sprint
Development

No branches or pull requests

1 participant