Commit 82c6caf
The search result list and grid elements read the item description from
dc.description.abstract. LINDAT items carry their description in dc.description,
so both views rendered nothing where the description belongs.
Both templates now read dc.description in the guard and in the binding (4
substitutions across the two files). The trade-off is deliberate and was made in
#1291: an item that only has dc.description.abstract now shows no description in
these two views. The two new negative specs pin exactly that, so the trade-off
cannot be undone by accident.
- item-search-result-grid-element.component.html / .spec.ts: the @if guard and the
[innerHTML] binding switch key; mockItemWithAbstractOnly is added and passed as a
new 5th argument to getEntityGridElementTestComponent. That parameter is optional,
so the six entity-group grid specs that call the helper with four arguments
(journal, journal-issue, journal-volume, org-unit, person, project) keep compiling
unchanged.
- item-search-result-list-element.component.html / .spec.ts: same key switch plus a
mockItemWithAbstractOnly and a negative describe block.
v9 notes: the source hunks are *ngIf; both templates on this branch have already
been migrated to @if, so the guards were adapted in place - same condition, same
two metadata keys per file. The list spec uses `of` where the source uses
`observableOf`, and the new mocks follow this branch's trailing-comma style. The
custom theme's item-search-result-list-element reuses the base templateUrl, so no
theme override needed changing; the grid element has no theme override.
Card PB-05 (tranche T3).
Source: 3a95a85 (dtq-dev PR #1291)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 8e8fb9d commit 82c6caf
4 files changed
Lines changed: 77 additions & 12 deletions
File tree
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 44 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
84 | 103 | | |
85 | 104 | | |
86 | 105 | | |
| |||
116 | 135 | | |
117 | 136 | | |
118 | 137 | | |
119 | | - | |
| 138 | + | |
120 | 139 | | |
121 | 140 | | |
122 | 141 | | |
| |||
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
173 | | - | |
| 192 | + | |
174 | 193 | | |
175 | 194 | | |
176 | 195 | | |
| |||
204 | 223 | | |
205 | 224 | | |
206 | 225 | | |
207 | | - | |
| 226 | + | |
208 | 227 | | |
209 | 228 | | |
210 | 229 | | |
| |||
215 | 234 | | |
216 | 235 | | |
217 | 236 | | |
218 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
219 | 244 | | |
220 | 245 | | |
221 | 246 | | |
| |||
269 | 294 | | |
270 | 295 | | |
271 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
272 | 311 | | |
273 | 312 | | |
274 | 313 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
80 | 94 | | |
81 | 95 | | |
82 | 96 | | |
| |||
119 | 133 | | |
120 | 134 | | |
121 | 135 | | |
122 | | - | |
| 136 | + | |
123 | 137 | | |
124 | 138 | | |
125 | 139 | | |
| |||
173 | 187 | | |
174 | 188 | | |
175 | 189 | | |
176 | | - | |
| 190 | + | |
177 | 191 | | |
178 | 192 | | |
179 | 193 | | |
| |||
349 | 363 | | |
350 | 364 | | |
351 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
352 | 378 | | |
353 | 379 | | |
354 | 380 | | |
| |||
0 commit comments