Institutes: Public pages
Add the publicly accessible routes for browsing Institutes and displaying Institute details.
Use the code for Accession browsing as template.
Main menu
Add link to /wiews/
to application header menu.
Routes
-
/wiews/
showsui/pages/institutes/BrowsePage
-
/wiews/{wiewsCode}
showsui/pages/institutes/DisplayPage
Pages
Pages use the <PageLayout
.
-
ui/pages/institutes/BrowsePage
displays list of FaoInstitute cards with<PagedLoader
and the filters -
ui/pages/institutes/DisplayPage
displays institute details page, but just the very basic data (see https://www.genesys-pgr.org/wiews/BRA001)
Components
ui/genesys/institute/Card
-
ui/pages/institutes/c/Filters
<-- base it onaccessions/c/Filters
Reducer and actions
This is a top-level component and requires its own reducer named institutes
. The state should contain data necessary to reliably render the browse and display page: filterCode
, filter
, paged
(results of filtering) and current institute
(for display).
Initial list of actions in actions/subsets
: applyFilters
, resetFilters
, displayInstitute
call the API and update the state.