-
Notifications
You must be signed in to change notification settings - Fork 71
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
Move NormalizerAlterReaction and JsonldTypeAlterReaction to jsonld module #1297
Comments
Clarification: we could add the necessary context config to make corporate_bodies work by placing it in |
I looked through what would be necessary to do this again today. Most of it could move over cleanly. The blocker is NormalizerAlterReaction's use of IslandoraUtils' getRestUrl which we use to get a consistent URL. We could move this helper function to the JSONLD module; but the helper function is used more broadly (i.e. in the EventGenerator and LinkHeaderSubscriber) for more formats than just jsonld, which feels disingenuous. The upshot: either;
I think using controlled_access_terms_jsonld_alter_normalized_array is probably the simplest solution that limits dependencies. |
I find option 2 the least objectionable, FWIW. |
Ok, @dannylamb. I'll go with that if nobody objects; but I'll give the other @Islandora/8-x-committers a chance to weigh in before I move forward. |
Because the I'd like present another option of having controlled_access_terms implement its own abstract class and a context setup for the json-ld hook, which could be completely separate from Islandora's? Then things written for controlled_access_terms would be isolated from those written for islandora (and vice-versa) and both of these don't affect people using the json-ld module to just serialize their data (and not muck around in it). As I did the original work in Islandora and I have the most virulent desire to keep jsonld pure, I'm happy to do the work in controlled_access_terms. |
In a hypothetical world where someone uses the jsonld module without islandora they may want to leverage the JsonldTypeAlterReaction.
E.g. controlled access terms' corporate body type should use this reaction but currently doesn't because it creates a dependency on the islandora module.
The text was updated successfully, but these errors were encountered: