Skip to content

Commit 403c975

Browse files
committed
Add support for provider seeAlso
1 parent 94d57f4 commit 403c975

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

src/components/ViewInfo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ export default {
281281
{{ $store.localize(provider.label) }}
282282
</p>
283283
<ul
284-
v-if="provider.homepage?.length"
284+
v-if="provider.homepage?.length || provider.seeAlso?.length"
285285
class="tify-list"
286286
>
287287
<li
288-
v-for="homepage in provider.homepage"
288+
v-for="homepage in [...provider.homepage || [], ...provider.seeAlso || []]"
289289
:key="homepage.id"
290290
>
291291
<a :href="homepage.id">
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
describe('IIIF Cookbook 0234: Provider', () => {
2+
it('displays all provider information', () => {
3+
cy.visit(
4+
`/?manifest=${Cypress.env('iiifApiUrl')}/iiif-cookbook/0234-provider/manifest.json`
5+
+ '&tify={"view":"info"}',
6+
);
7+
8+
cy.contains(
9+
'.tify-info-section.-provider p',
10+
'UCLA Library',
11+
);
12+
cy.contains(
13+
'.tify-info-section.-provider a',
14+
'UCLA Library Digital Collections',
15+
);
16+
cy.contains(
17+
'.tify-info-section.-provider a[href$="n79055331.madsxml.xml"]',
18+
'US Library of Congress data about the UCLA Library',
19+
);
20+
});
21+
});

0 commit comments

Comments
 (0)