jhu-idc / idc-isle-dc

Islandora Digital Collections (IDC) development environment
MIT License
2 stars 6 forks source link

Fixes issue where Media name was changed on re-ingest #294

Closed bseeger closed 2 years ago

bseeger commented 2 years ago

When you change the source file on a Media (as a re-ingest does), the system will replace the Media's name with the filename. I was able to see this in the system even w/o a re-ingest. All you had to do was edit a Media - remove the file and add a new one. Then when you saved the Media, its name would be replaced with the filename. Turns out there is a configuration switch for that, so I just turned it off for Name. Now when you re-ingest a media, the name of the media should stay the same, though other fields will get updated appropriately with the file's information (height/width/filesize/whatnot).

To test this - simply do a Media ingest. Then run the same one again and verify that the Media's name did not change.

This resolves https://github.com/jhu-idc/idc-isle-dc/issues/271

github-actions[bot] commented 2 years ago

This PR has no dependency differences with the base branch

github-actions[bot] commented 2 years ago

This PR has no dependency differences with the base branch