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

display media asset file name as uploaded #412

Closed
TanyaStere42 opened this issue Mar 18, 2024 · 3 comments · Fixed by #555
Closed

display media asset file name as uploaded #412

TanyaStere42 opened this issue Mar 18, 2024 · 3 comments · Fixed by #555
Labels
bug something's broken!
Milestone

Comments

@TanyaStere42
Copy link
Member

Context
Wildbook currently does filename processing to remove characters from bulk import file names

To allow for easy reconciliation between files in system and external to the system, we need to display the filename as it was originally uploaded, regardless of what preprocessing we do. This means that the original filename should be stored as a string and used for display.
(update to parameters json for MediaAsset)

Current Behavior
file Caitlánn*Survey_10293.jpg displays as Caitl_nn_Survey_10293.jpg

Expected Behavior
file CaitlánnSurvey_10293.jpg displays as CaitlánnSurvey_10293.jpg

Technical Notes
Design/architecture patterns should be the same between #372 and this ticket

Acceptance Criteria
Display is updated on the following pages to show the original file name:

  • /src/main/webapp/obrowse.jsp (parameters display)
  • /src/main/webapp/iaResults.jsp (display on both target and query)
  • /src/main/webapp/encounters/encounterMediaGallery.jsp (encounter, gallery, click image for overlay)
  • /src/main/webapp/encounters/encounter.jsp (adding image to encounter)
  • /src/main/webapp/encounters/thumbnailSearchResults.jsp (individual, view all images, click image for overlay)
  • /src/main/webapp/import/reviewDirectory.jsp (list shows preprocessing)
  • /src/main/java/org/ecocean/servlet/importer/StandardImport.java (displays in verification table)
  • /src/main/java/org/ecocean/servlet/export/EncounterSearchExportMetadataExcel.java (encounter standard export)

Community link
https://community.wildme.org/t/underscores-dashes-no-longer-displaying-or-exporting-correctly/2721

@TanyaStere42 TanyaStere42 added the bug something's broken! label Mar 18, 2024
@TanyaStere42 TanyaStere42 added this to the 10.2.0 milestone Mar 18, 2024
@naknomum
Copy link
Member

for the single submit/form flavor, likely place to fix: makeMediaAssetsFromJavaFileItemObject()

@Paul-Kalil

This comment was marked as off-topic.

@TanyaStere42
Copy link
Member Author

10.2.0: Must include our first unit test and then we'll turn on codecov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something's broken!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants