Commit c44a66c
Add service associated resource. Fix add link from service distribution section. (geonetwork#8958)
* Add service associated resource. Fix add link from service distribution section.
The online resource added to the dataset contained the text 'undefined' instead of the service online resource name
* Editor / Add service / When selecting layers, button was inactive
The link added to the dataset should contains the list of layers selected. Exception was swallowed
```
TypeError: Cannot read properties of undefined (reading 'addLayerNamesMode')
at setLayersParams (OnlineSrcService.js:141:35)
at setParams (OnlineSrcService.js:112:16)
at Object.linkToService (OnlineSrcService.js:551:25)
at scope.linkTo (OnlineSrcDirective.js:2083:40)
at fn (eval at compile (angular.js?v=293b1dbf3aae48af97080e26810e1eee152c7821:16548:15), <anonymous>:4:256)
at callback (UtilityDirective.js:1831:24)
at HTMLButtonElement.<anonymous> (UtilityDirective.js:1838:17)
at HTMLButtonElement.dispatch (jquery-3.7.1.js?v=293b1dbf3aae48af97080e26810e1eee152c7821:5149:35)
at elemData.handle (jquery-3.7.1.js?v=293b1dbf3aae48af97080e26810e1eee152c7821:4953:35)
```
Related to geonetwork@3072280
* Update check to add service metadata layers as online resource
---------
Co-authored-by: François Prunayre <fx.prunayre@gmail.com>1 parent 860b0ed commit c44a66c
2 files changed
Lines changed: 13 additions & 8 deletions
File tree
- web-ui/src/main/resources/catalog/components/edit/onlinesrc
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
| 2033 | + | |
2033 | 2034 | | |
2034 | 2035 | | |
2035 | 2036 | | |
| |||
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
180 | 185 | | |
181 | | - | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
0 commit comments