-
Notifications
You must be signed in to change notification settings - Fork 23
Visual selector #11
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
base: master
Are you sure you want to change the base?
Visual selector #11
Conversation
Author: Gero Zahn <[email protected]> Author: Michael Slone <[email protected]> (cosmetic changes only)
Use LookupController as the backend for paginated item searching. Rewrite the JavaScript client to avoid the need for a variable that holds all item titles.
Sorry for the late reply, I just got back from my vacation. That's awesome, thanks – I'll look into it ASAP. ... I still have a student assistant looking at the exact same thing, but having been away on vacation, I don't know yet where we stand with that. |
I'm sorry, I seem to be too stupid to figure this out by myself: Is there a way to download your whole modified plugin version as given in your 7th commit 6dff903? Thanks a lot in advance! UPDATE: Got it – |
I love it. … I have a few i18n issues to remark, like "All", "Most recently updated", and "Alphabetically", and I certainly went back to my original extended (German language) i18n. In addition to that, for my use scenario I had to merge this with my (closed) pull request #10 (re- Relation comments) – but except from a little tinkering, it all fell into place just fine. My other modifications are of purely cosmetic nature:
All that went in with just a snap. |
…JAX object search
I was avoiding the To keep the program i18n-friendly, should I just replace bare text with I wonder if adding a config setting for whether relations appear inline or in the sidebar would be too crufty. For the site I'm using that needs this plugin, there are actually so many item properties that using the sidebar actually highlights rather than hides the relations. |
Yeah, Transifex ... My Nemesis. ;-) I've been using a local version, I still didn't find the time to look into Transifex. But no problem. But fact is that a lot of text portions in the original code are not i18n-ized. ... Yes, strings that are used inside the __("...") function will be translated automatically once the configured language contains a translation string in its .mo file. A configuration setting is actually rather easy - I did exactly that in my #10 pull request. I could rather easily supply that if I find a couple of minutes. ... Do you care for my modified version of your rendition supporting relation comments? In that case I'd patch in the setting re- sidebar vs. content block and send you the whole thing back to you ... Not sure if I can commit something on top of your pull request, I had a hard enough time to get a full ZIP version of your pull request. |
Oh-kay. You could look at my commit GerZah/wesa_omeka@fd28d9c which now implements a configuration button to switch the relation display from the side bar to the main content. Mind you, I had already implemented that on top of your #11 pull request, so the latest commit modifies that back to be flexible based on a configuration switch. But you'll get the gist (don't mind the relation_comment stuff if you don't care about that):
I am convinced that this should work nicely on top of your implementation as well. |
@GerZah, I'll take a look at these issues. |
…oins (and relation comments) editable
Is my understanding correct that this is effectively incorporated into #9? |
Hi, thanks for looking into this. Sorry, all that has been quite a while ago now, so I am having a hard time thinking back to when this pull request was crated. ItemRelations is one of our core plugin, and it has undergone so many enhancements over the time. I totally agree that I should have submitted smaller pull requests, but not really hearing from you led me to the assumption that everything we did here was not really of interest. So I kept on adding enhancements, together with a couple of guys who actually pulled my fork – and, respectively, sent me pull requests to incorporate their latest changes. All I can tell you is that my/our ItemRelations has since move so much further forward that it is probably hard to see much of the original code today. You might want to have a closer look at my latest commit 7a98b78, which is actually merely 3 days old. I have no idea how this could, if desired, be married with the original ItemRelations code. |
My specific question is more about the "visual selector" that was the initial title of this PR. Part of my hesitance with these was that we received two distinct versions of the same feature in different requests. In the original version of #9, it used a selector which fetched all the records at once, which was a problem keeping it from getting merged. There's clearly been a significant amount of changes between now and then, though, and it seemed to me that at least to some extent the paginated selector from this branch had been included in #9. If that's the case, then the sensible course to me would seem to be closing this PR and focusing only on #9. |
Oh, absolutely! Some other contributor provided an AJAX view that paginated the display instead of the fetchAll(). This has been enhanced very much along the way, one of the latest improvement included a timer that prevents from firing the AJAX request too often, but waiting to update the display until a certain amount of (milliseconds of) time has passed without additional entries. Yes. By all means, the original merge request should definitely me cancelled. Gero Zahn, [email protected], http://www.gerozahn.de/
|
This is my attempt at satisfying #2 . I started with @GerZah's lity-based selector but added a controller to handle autocompletion and avoid the need to fetch all item records. There's still a
fetchAll()
on item types. I can remove or alter item type filtering if this is a problem.