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

Editor / Associated resources / Set default value to action #3981

Conversation

fxprunayre
Copy link
Member

Example configuration to make a button to add thumbnail and to add an
aggregation to a source/mission type:

          <action type="associatedResource"
                  name="add-thumbnail"
                  process="onlinesrc">
            <directiveAttributes>addThumbnail</directiveAttributes>
          </action>

          <action type="associatedResource"
                  name="add-ref-to-source-mission"
                  process="sibling">
            <directiveAttributes>{"associationType": "source", "initiativeType": "mission"}</directiveAttributes>
          </action>

Allows to create custom button pointing directly to a specific type of online resource or aggregation:

image

image

Example configuration to make a button to add thumbnail and to add an
aggregation to a source/missiong type:

```xml
          <action type="associatedResource"
                  name="add-thumbnail"
                  process="onlinesrc">
            <directiveAttributes>addThumbnail</directiveAttributes>
          </action>

          <action type="associatedResource"
                  name="add-ref-to-source-mission"
                  process="sibling">
            <directiveAttributes>{"associationType": "source", "initiativeType": "mission"}</directiveAttributes>
          </action>
```
@fxprunayre fxprunayre added this to the 3.8.1 milestone Aug 23, 2019
@fxprunayre fxprunayre requested a review from josegar74 August 23, 2019 14:47
@fxprunayre fxprunayre merged commit 037ed23 into geonetwork:master Aug 30, 2019
fxprunayre added a commit that referenced this pull request Aug 30, 2019
Example configuration to make a button to add thumbnail and to add an
aggregation to a source/missiong type:

```xml
          <action type="associatedResource"
                  name="add-thumbnail"
                  process="onlinesrc">
            <directiveAttributes>addThumbnail</directiveAttributes>
          </action>

          <action type="associatedResource"
                  name="add-ref-to-source-mission"
                  process="sibling">
            <directiveAttributes>{"associationType": "source", "initiativeType": "mission"}</directiveAttributes>
          </action>
```
julsbreakdown pushed a commit to julsbreakdown/core-geonetwork that referenced this pull request Feb 7, 2020
…rk#3981)

Example configuration to make a button to add thumbnail and to add an
aggregation to a source/missiong type:

```xml
          <action type="associatedResource"
                  name="add-thumbnail"
                  process="onlinesrc">
            <directiveAttributes>addThumbnail</directiveAttributes>
          </action>

          <action type="associatedResource"
                  name="add-ref-to-source-mission"
                  process="sibling">
            <directiveAttributes>{"associationType": "source", "initiativeType": "mission"}</directiveAttributes>
          </action>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant