-
Notifications
You must be signed in to change notification settings - Fork 0
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
Harmonise Marketplace Entities #3
Comments
A Solution Offer is the Expert's Product or Service advertised in the Marketplace. Question: @fgeyer16 @patrickkaletaIs it possible to show two different Entity Types in the same GeoFieldMap (Twin & Showcase)? Changes to Solution Offer Entity Type:
Changes to Showcase Entity Type
Some properties needed for filtering and views are duplicated in Solution Offer and Showcase, e.g. Hazard, Element at Risk, etc. Questions: @fgeyer16 @patrickkaleta
Furthermore, there are two entry points to a Showcase: Either via the Marketplace through Solution Offer -> Showcases or via the CSIS TwinsMap -> Showcase. In the later case, we would need some kind of back reference from Showcase -> Solution Offer, so that the user is able to view the related Solution Offer or Expert Profile when coming from the Twins Map as entry point. Question: @fgeyer16 @patrickkaletaIs it possible to obtain such a back reference via the <Paragraph> Relation or do we have to an an additional property to the Showcase Entity Type? |
Since you need views to create maps with multiple markers (or something else) mixing up Entity Types (node, group, group content,...) in one map is not possible. you can only show one entity type in a view. But what will work is showing multiple bundles (node type A, node type B, ...) in one map. For this the desired bundles have to use the same Geofield (field_location, or what ever).
Inheritance is difficult because you somehow need to make a relation to on not yet existing content. Prefilling is possible by the module Prepopulate. Since a link to create a new Show case would be made out of a Solution, we can add values of the solution to the query string of the link.
Why the Paragraph relation? The solution offer is a group. So the Show case can be a Group content. In this case you can at least make a backreference with views by using this relation. I think we do not need a paragraph here. Since we use Groups we really have to think what we put into content level and what into group content level. The group content makes the link between group and content and can contain own fields. E.g. Solutions are group content hazard twins are only content (as far as I understand) So the geofield for the showing in maps should be on the content level for Solution offer. Otherwise we will not be able to show them together in one map (as I said at the beginning). Also everything what needs more than one Form display should be on content level since form modes do not work with Group content and Groups very well. |
ATM EntityType So it's up @patrickkaleta to decide if he can work with Bundles in one map. On the other hand, there a different Twins Types (property
I don't know. Initial design of Solution Offers data model performed by @patrickkaleta and @DenoBeno |
OK I think we have some confusion in our wording. I will try to explain what I meant with Entity Type and Bundle with some examples In general: Specific: the study Adaptation Scenarios for Metropolitan Resilience Planning is an instance of the So the bundle you linked to is not the bundle I meant. Unfortunately in Drupal things can have multiple names and word mean different things in different context. Showcase and Twin are both bundles of the entity type Node ( or in short they are both content types) so they can be shown together in one Map. We just need to replace the field_location in the showcase by the field_geolocation of the twins (in this way we only have to "relocate" one showcase instead of many twins)
Filtering can be easily done by every field (property) twin and showcase have (this includes the filtering by showcase or twin). So there is no need to copy a show case into a twin. |
Idea here was to give the Solution owner (= Expert) the opportunity to describe, why/how that selected showcase corresponds to the Solution offer. In reality it will probably be unlikely that a Solution offer matches a Showcase 1:1 (e.g. that showcase only implemented parts of what the Solution offer provides or the Showcase combined multiple Solution offers). So, the paragraph (called Solution offer reference) stores one Showcase and one description field. If we decide that such a description is not necessary, then we won't need this paragraph type at all. |
OK, I see. Then we should keep the paragraph. In Showcase I'll add an explicit reference to Solution Offers. |
Yes, they both need to use the same field, so that we can display them on the same map. This is currently already the case now and both content types are displayed as expected.
Your second example "filter by EU-GL step = HC-LE" could be done as a pre-filtering step. The view would, depending on the current step (HC, HC-LE,...), only provide those Twins/Showcases, which are intended for this particular step (user therefore cannot directly influence this via the filter options). Filtering by hazards, elements at risk, Twin type, etc. could then be performed on all provided results by the user himself. |
done |
Harmonise Solution Offers + Twins Data Models and link with Adaptation Options and Expert Profiles Entity Types.
Data model before harmonisation:
The text was updated successfully, but these errors were encountered: