Feature #4320

Box label report (CSV)

Added by David Juhasz almost 10 years ago. Updated over 9 years ago.

Status:VerifiedStart date:
Priority:HighDue date:
Assignee:José Raddaoui Marín% Done:

100%

Category:Physical storage
Target version:Release 1.4.0
Google Code Legacy ID:atom-2372 Tested version:
Sponsored:Yes Requires documentation:

Description

CSV download with following fields:
Reference code, Container name, Title, Creation Dates

[g] Legacy categories: Import/Export

box_label_report_1.png - Attached screenshot originally uploaded by Jesús García Crespo, 11/26/2012 04:27 pm, to a duplicate issue (deleted during project migration). (66.7 KB) Dan Gillean, 12/03/2012 10:58 AM


Related issues

Duplicated by Access to Memory (AtoM) - Feature #307: Add CSV export for labels Duplicate 01/18/2012

History

#1 Updated by David Juhasz almost 10 years ago

  • Subject set to Box label report (CSV)

#2 Updated by David Juhasz almost 10 years ago

For use in mail merges, etc.

#3 Updated by David Juhasz almost 10 years ago

[g] Labels added: Sponsored

#4 Updated by Peter Van Garderen almost 10 years ago

  • Priority changed from High to Critical

[g] Labels added: Priority-Critical
[g] Labels removed: Priority-High

#5 Updated by David Juhasz almost 10 years ago

  • Target version changed from Release 1.3 to Release 2.1.0

[g] Labels added: Milestone-Release-2.0
[g] Labels removed: Milestone-Release-1.3

#7 Updated by Jesús García Crespo over 9 years ago

  • Sponsored set to Yes

#8 Updated by Jesús García Crespo over 9 years ago

  • Assignee changed from David Juhasz to José Raddaoui Marín

#9 Updated by Jesús García Crespo over 9 years ago

  • Category set to 33

#10 Updated by Jesús García Crespo over 9 years ago

1) User clicks the report button (box_label_report_1.png)
2) User select "Box label CSV" from the report list (must be added)
3) User clicks "Continue"
4) AtoM generates a CSV report of all linked physical storage objects for current description and all descendants, containing the listed fields (Reference code, Container name, Title, Creation Dates)
5) AtoM displays a download link,
6) If it's not too hard, maybe an automatic javascript redirect to start the file download?

I don't think it's worth zipping the file, as it should be pretty small, and zipping adds yet another dependancy (zlib; ZZIPlib?) to the AtoM installation requirements.

#11 Updated by Jesús García Crespo over 9 years ago

Radda is implementing this feature over the 1.x branch. His changes will be merged into master (2.x) but for now this is the easiest way to go since 2.x is still not usable.

#12 Updated by Jesús García Crespo over 9 years ago

Radda, please make sure that your work is done on https://github.com/jraddaoui/atom/tree/issue-4320

#13 Updated by Jesús García Crespo over 9 years ago

  • Priority changed from Critical to High

#14 Updated by Jesús García Crespo over 9 years ago

  • Status changed from New to QA/Review
  • % Done changed from 0 to 100

Applied in changeset atom|commit:2e736b1e0d8a9e4598936334f09c2e743f70ffed.

#15 Updated by Jesús García Crespo over 9 years ago

  • Target version changed from Release 2.1.0 to Release 1.4.0

This new feature is now part of the 1.x branch.

#16 Updated by Jesús García Crespo over 9 years ago

  • Status changed from QA/Review to Feedback

Radda, there is a problem in the code. We should use fputcsv() to write the contents into the file in order to handle some characters issues. Dan found it during testing.

#17 Updated by Jesús García Crespo over 9 years ago

Radda, please use php://temp to write the contents. See the example:

// Use php://temp stream, max 2M
$csv = fopen('php://temp/maxmemory:'. (2*1024*1024), 'r+');

foreach ($objects as $row)
{
  // Add header
  if (!$headerDisplayed)
  {
    fputcsv($csv, ...);
    $headerDisplayed = true;
  }

  // Put the data into the stream
  fputcsv($csv, ...);
}

// Rewind the position of the pointer
rewind($csv);

#18 Updated by José Raddaoui Marín over 9 years ago

  • Status changed from Feedback to QA/Review

Applied in changeset atom|commit:75b8ae76dc2dc390d266b6396d98d3847f9c089f.

#19 Updated by Dan Gillean over 9 years ago

  • Status changed from QA/Review to Verified

Also available in: Atom PDF