-
Notifications
You must be signed in to change notification settings - Fork 118
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
Upload form #754
Upload form #754
Conversation
Just testing this now. I checked out your branch,
I built this VM today, but in the Playbook's dev branch. That matter? |
@mjordan It's my branch that's out of date. I'll update it. |
Putting what I said in the meeting in writing for posterity: even if having this for media in general is complicated and needs more discussion, I'd love to see this happen for "children." It's just such a quality-of-life improvement for adding books, and there are already ways to add metadata after-the-fact if pages do have their own data. |
Note: After you check out this branch, you need to clear Drupal's cache (
|
OMFG @dannylamb this is awesome. 👍 💯 🤯 ❤️ 😂 🆒 😆 😭 🤕 Other should test this to make sure I am not hallucinating how mindblowingly incredible this feature is. |
🤕 |
For objects with multiple files, it would be awesome to have each file displayed on the node view using an EVA appropriate for each file. This is what I was getting at in Islandora/documentation#1242. |
I've tried this out locally (incidentally, this is the first time I have checked out a github branch the right way and tested a PR like this and I feel like a mix of hacker and wizard 😎). Works great! File size limits are definitely a thing, and the page order seems a little random, but as a way to quick get small batches of content in, with a little straightening up afterwards, this rocks. For big batches of ordered content, I think it reinforces the need for some kind batch-with-CSV process, to assign those page weights ahead of time. The drag & drop ordering is awesome for smaller books or correcting a page or two in a bigger one, but it won't hold up well for a 500 page book if the whole thing needs to be ordered. |
@dannylamb picking up on this - tests are failing. I can merge if we can get the build to complete. |
I think any time we can simplify things for users with forms, its a win. +1 to this. |
Dusting this thang off |
This is working now. Let's see what the actions say. @Islandora/8-x-committers It would be great if we could get this quality-of-life feature in before the release. |
lol @dannylamb is a first time contributor? |
i know, right? |
Ugh... Ima rebase this mess |
Hey @Islandora/8-x-committers, this has been tested and approved, and I've updated this so tests are passing. Can we push this through so it can be documented and tested and released? It's a serious UX improvement. |
do you want someone else to test it? |
I pulled this into a pretty vanilla d9 instance built with the playbook and tested per your instructions above. it did all work successfully. I was slightly confused by the duplicate buttons on the media tab - "Upload Media" vs "Add Media" and on the children tab "Upload Children" vs "Add Children". I understood what to do based on your testing instructions, but if this is going to roll out, I think it'd definitely require some added user documentation. |
The multifile media model is going to be something to document, for sure. I was also confused between "Add" and "Upload" and wonder if we could add the word "Batch" -- "Batch Upload Children" / "Batch Upload Media"? It sounds (to me) to have smaller expectations than "Bulk" (which I'd expect to be able to handle thousands). |
I totally agree that the language is awkward. "Batch" definitely sounds like the right word for what we're doing here. I can update that. About multifile media... in another incarnation (I think the second attempt at this form?) I actually had a drop down for the media type. If I make a media type dropdown that uses states to make the media use appear, just like we do with content type and model, then it should fully support multifile media. I'm more than happy to add that back in, pretty sure I can just scrape it out of history from one my other PRs. Like with content type and model, we'll check to see if the media has field_media_use before showing the checkboxes, since you won't have that using multifile media. |
Also, thank you for looking at this @rosiel and @elizoller |
Multifile should work beautifully with this - with the standard model bad things happen when you ingest two or more files tagged with Original File. With mutlifle, each Original File gets its own derivatives contained within the media; once the media is created Contexts do the rest. |
What I've pushed up should be good with multifile media. You can now select the media type, which is nice. I was guessing before based on mimetype and that was starting to get hacky. I was even forgetting PDFs 😟 If anyone wants to try, you'll need to clear your cache. I re-labeled the action links and that won't show if you don't |
Github Issue: Islandora/documentation#919
What does this Pull Request do?
Third attempt at a better upload form for media and children.
What's new?
New forms for uploading files and having all the appropriate entities created and wired up when the form is submitted. It respects the proposed changes we're putting forth in https://docs.google.com/document/d/14Dxzz-4U4L_ICqhZge99usp-LvhWJPFsvULp_32e7P4/edit (e.g. we support all the different use cases for multiple media, etc...) Plus some test cleanup.
How should this be tested?
Upload Media Form
Upload Children Form
field_model
, then another dropdown will appear to let you select that as well. Also pick a media use for the uploaded files (we'll do Original File here to trigger derivatives).Interested parties
@Islandora/8-x-committers