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

Get values of different types in one time. #1632

Merged
merged 1 commit into from Sep 15, 2020

Conversation

Daniel-KM
Copy link
Contributor

It will be useful to get value of different types with resource->value(), for example to get all resources and all uris at the same time. The main issue here are the types resource, resource:item, resource:itemset and resource:media. If I need all linked items, I should get all resource, filter them, then get all resource:item. This pr avoids two calls, but not the filter.

In fact, the type resource should not be used in the database, only resource:item. It is only a shortcut to use in the resource template. So when a link resource is saved, it should be saved with the type of the resource. I added an automatic conversion in the BulkEdit module, but it should be done during the migration to Omeka S 3. I can pr the small js change and the migration file if you think it's a good thing.

@zerocrates zerocrates merged commit 42727a5 into omeka:develop Sep 15, 2020
@Daniel-KM Daniel-KM deleted the feature/value_types branch September 16, 2020 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants