Difference between revisions of "Widget:UseCaseList"
From LINKS Community Center
(9 intermediate revisions by the same user not shown) | |||
Line 234: | Line 234: | ||
#usecase-tabulator.tabulator .tabulator-row .tabulator-responsive-collapse td>strong { | #usecase-tabulator.tabulator .tabulator-row .tabulator-responsive-collapse td>strong { | ||
font-weight: 300; | font-weight: 300; | ||
+ | } | ||
+ | |||
+ | #usecase-tabulator.tabulator .usecase-title { | ||
+ | white-space: normal !important; | ||
} | } | ||
Line 239: | Line 243: | ||
#usecase-tabulator.tabulator .tabulator-responsive-collapse table a { | #usecase-tabulator.tabulator .tabulator-responsive-collapse table a { | ||
color: var(--links-cyan); | color: var(--links-cyan); | ||
+ | } | ||
+ | |||
+ | .uc-summary { | ||
+ | font-size: smaller; | ||
+ | padding-bottom: 1em; | ||
} | } | ||
</style> | </style> | ||
Line 270: | Line 279: | ||
const EVENT_PROP = 'Event type'; | const EVENT_PROP = 'Event type'; | ||
const SUMMARY_PROP = 'Description'; | const SUMMARY_PROP = 'Description'; | ||
+ | const IMAGES_PROP = 'Other images'; | ||
+ | const PUB_PROP = 'Publishing Organisation'; | ||
+ | const INVOLVED_PROP = 'Involved Organisations'; | ||
const useCaseQuery = '[[Category:Use Cases]]' | const useCaseQuery = '[[Category:Use Cases]]' | ||
Line 279: | Line 291: | ||
+ '|?' + CAT_PROP | + '|?' + CAT_PROP | ||
+ '|?' + SUMMARY_PROP | + '|?' + SUMMARY_PROP | ||
+ | + '|?' + IMAGES_PROP | ||
+ | + '|?' + PUB_PROP | ||
+ | + '|?' + INVOLVED_PROP | ||
+ '|?' + YEAR_PROP; | + '|?' + YEAR_PROP; | ||
Line 299: | Line 314: | ||
useCase[SCALE_PROP] = useCaseResult.printouts[SCALE_PROP].map(value => value.fulltext); | useCase[SCALE_PROP] = useCaseResult.printouts[SCALE_PROP].map(value => value.fulltext); | ||
useCase[EVENT_PROP] = useCaseResult.printouts[EVENT_PROP].map(value => value.fulltext); | useCase[EVENT_PROP] = useCaseResult.printouts[EVENT_PROP].map(value => value.fulltext); | ||
+ | useCase[PUB_PROP] = useCaseResult.printouts[PUB_PROP].map(value => value.fulltext); | ||
+ | useCase[INVOLVED_PROP] = useCaseResult.printouts[INVOLVED_PROP].map(value => value.fulltext); | ||
useCase[SUMMARY_PROP] = useCaseResult.printouts[SUMMARY_PROP][0]; | useCase[SUMMARY_PROP] = useCaseResult.printouts[SUMMARY_PROP][0]; | ||
useCase[YEAR_PROP] = useCaseResult.printouts[YEAR_PROP][0] && useCaseResult.printouts[YEAR_PROP][0].raw.slice(-4); | useCase[YEAR_PROP] = useCaseResult.printouts[YEAR_PROP][0] && useCaseResult.printouts[YEAR_PROP][0].raw.slice(-4); | ||
Line 485: | Line 502: | ||
return out; | return out; | ||
}, | }, | ||
− | + | maxWidth: '850px' | |
}, | }, | ||
{ | { | ||
Line 491: | Line 508: | ||
field: YEAR_PROP, | field: YEAR_PROP, | ||
minWidth: '200px' | minWidth: '200px' | ||
+ | }, | ||
+ | { | ||
+ | title: 'Publisher', | ||
+ | field: PUB_PROP, | ||
+ | formatter: cell => cell.getValue().join(', ') | ||
}, | }, | ||
{ | { | ||
Line 527: | Line 549: | ||
title: 'Disaster Management Phase', | title: 'Disaster Management Phase', | ||
field: PHASE_PROP, | field: PHASE_PROP, | ||
+ | formatter: cell => cell.getValue().join(', ') | ||
+ | }, | ||
+ | { | ||
+ | title: 'Involved Organisations', | ||
+ | field: INVOLVED_PROP, | ||
formatter: cell => cell.getValue().join(', ') | formatter: cell => cell.getValue().join(', ') | ||
} | } |
Latest revision as of 12:29, 13 October 2023
Current version of the List of Use Cases.
Currently in use – do not modify!