Skip to content

Commit b9e2ec1

Browse files
committed
Merge remote-tracking branch 'dspace/main' into accessibility-settings-main
# Conflicts: # config/config.example.yml # src/config/app-config.interface.ts # src/config/default-app-config.ts # src/environments/environment.test.ts
2 parents 93fff41 + f95596b commit b9e2ec1

420 files changed

Lines changed: 175129 additions & 27807 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,84 @@ jobs:
190190
# Get homepage and verify that the <meta name="title"> tag includes "DSpace".
191191
# If it does, then SSR is working, as this tag is created by our MetadataService.
192192
# This step also prints entire HTML of homepage for easier debugging if grep fails.
193-
- name: Verify SSR (server-side rendering)
193+
- name: Verify SSR (server-side rendering) on Homepage
194194
run: |
195195
result=$(wget -O- -q http://127.0.0.1:4000/home)
196196
echo "$result"
197197
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep DSpace
198198
199+
# Get a specific community in our test data and verify that the "<h1>" tag includes "Publications" (the community name).
200+
# If it does, then SSR is working.
201+
- name: Verify SSR on a Community page
202+
run: |
203+
result=$(wget -O- -q http://127.0.0.1:4000/communities/0958c910-2037-42a9-81c7-dca80e3892b4)
204+
echo "$result"
205+
echo "$result" | grep -oE "<h1 [^>]*>[^><]*</h1>" | grep Publications
206+
207+
# Get a specific collection in our test data and verify that the "<h1>" tag includes "Articles" (the collection name).
208+
# If it does, then SSR is working.
209+
- name: Verify SSR on a Collection page
210+
run: |
211+
result=$(wget -O- -q http://127.0.0.1:4000/collections/282164f5-d325-4740-8dd1-fa4d6d3e7200)
212+
echo "$result"
213+
echo "$result" | grep -oE "<h1 [^>]*>[^><]*</h1>" | grep Articles
214+
215+
# Get a specific publication in our test data and verify that the <meta name="title"> tag includes
216+
# the title of this publication. If it does, then SSR is working.
217+
- name: Verify SSR on a Publication page
218+
run: |
219+
result=$(wget -O- -q http://127.0.0.1:4000/entities/publication/6160810f-1e53-40db-81ef-f6621a727398)
220+
echo "$result"
221+
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "An Economic Model of Mortality Salience"
222+
223+
# Get a specific person in our test data and verify that the <meta name="title"> tag includes
224+
# the name of the person. If it does, then SSR is working.
225+
- name: Verify SSR on a Person page
226+
run: |
227+
result=$(wget -O- -q http://127.0.0.1:4000/entities/person/b1b2c768-bda1-448a-a073-fc541e8b24d9)
228+
echo "$result"
229+
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Simmons, Cameron"
230+
231+
# Get a specific project in our test data and verify that the <meta name="title"> tag includes
232+
# the name of the project. If it does, then SSR is working.
233+
- name: Verify SSR on a Project page
234+
run: |
235+
result=$(wget -O- -q http://127.0.0.1:4000/entities/project/46ccb608-a74c-4bf6-bc7a-e29cc7defea9)
236+
echo "$result"
237+
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "University Research Fellowship"
238+
239+
# Get a specific orgunit in our test data and verify that the <meta name="title"> tag includes
240+
# the name of the orgunit. If it does, then SSR is working.
241+
- name: Verify SSR on an OrgUnit page
242+
run: |
243+
result=$(wget -O- -q http://127.0.0.1:4000/entities/orgunit/9851674d-bd9a-467b-8d84-068deb568ccf)
244+
echo "$result"
245+
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Law and Development"
246+
247+
# Get a specific journal in our test data and verify that the <meta name="title"> tag includes
248+
# the name of the journal. If it does, then SSR is working.
249+
- name: Verify SSR on a Journal page
250+
run: |
251+
result=$(wget -O- -q http://127.0.0.1:4000/entities/journal/d4af6c3e-53d0-4757-81eb-566f3b45d63a)
252+
echo "$result"
253+
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Environmental &amp; Architectural Phenomenology"
254+
255+
# Get a specific journal volume in our test data and verify that the <meta name="title"> tag includes
256+
# the name of the volume. If it does, then SSR is working.
257+
- name: Verify SSR on a Journal Volume page
258+
run: |
259+
result=$(wget -O- -q http://127.0.0.1:4000/entities/journalvolume/07c6249f-4bf7-494d-9ce3-6ffdb2aed538)
260+
echo "$result"
261+
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Environmental &amp; Architectural Phenomenology Volume 28 (2017)"
262+
263+
# Get a specific journal issue in our test data and verify that the <meta name="title"> tag includes
264+
# the name of the issue. If it does, then SSR is working.
265+
- name: Verify SSR on a Journal Issue page
266+
run: |
267+
result=$(wget -O- -q http://127.0.0.1:4000/entities/journalissue/44c29473-5de2-48fa-b005-e5029aa1a50b)
268+
echo "$result"
269+
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Environmental &amp; Architectural Phenomenology Vol. 28, No. 1"
270+
199271
- name: Stop running app
200272
run: kill -9 $(lsof -t -i:4000)
201273

angular.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
"input": "src/themes/dspace/styles/theme.scss",
5959
"inject": false,
6060
"bundleName": "dspace-theme"
61-
}
61+
},
62+
"node_modules/leaflet/dist/leaflet.css",
63+
"node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css",
64+
"node_modules/leaflet.markercluster/dist/MarkerCluster.css"
6265
],
6366
"scripts": [],
6467
"baseHref": "/"

config/config.example.yml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,25 @@ item:
350350
# Rounded to the nearest size in the list of selectable sizes on the
351351
# settings menu. See pageSizeOptions in 'pagination-component-options.model.ts'.
352352
pageSize: 5
353+
# Show the bitstream access status label on the item page
354+
showAccessStatuses: false
353355

354356
# Community Page Config
355357
community:
358+
# Default tab to be shown when browsing a Community. Valid values are: comcols, search, or browse_<field>
359+
# <field> must be any of the configured "browse by" fields, e.g., dateissued, author, title, or subject
360+
# When the default tab is not the 'search' tab, the search tab is moved to the last position
361+
defaultBrowseTab: search
356362
# Search tab config
357363
searchSection:
358364
showSidebar: true
359365

360366
# Collection Page Config
361367
collection:
368+
# Default tab to be shown when browsing a Collection. Valid values are: search, or browse_<field>
369+
# <field> must be any of the configured "browse by" fields, e.g., dateissued, author, title, or subject
370+
# When the default tab is not the 'search' tab, the search tab is moved to the last position
371+
defaultBrowseTab: search
362372
# Search tab config
363373
searchSection:
364374
showSidebar: true
@@ -536,7 +546,6 @@ notifyMetrics:
536546
config: 'NOTIFY.outgoing.delivered'
537547
description: 'admin-notify-dashboard.NOTIFY.outgoing.delivered.description'
538548

539-
540549
# Live Region configuration
541550
# Live Region as defined by w3c, https://www.w3.org/TR/wai-aria-1.1/#terms:
542551
# Live regions are perceivable regions of a web page that are typically updated as a
@@ -551,6 +560,40 @@ liveRegion:
551560
# The visibility of the live region. Setting this to true is only useful for debugging purposes.
552561
isVisible: false
553562

563+
# Geospatial Map display options
564+
geospatialMapViewer:
565+
# Which fields to use for parsing as geospatial points in search maps
566+
# (note, the item page field component allows any field(s) to be used
567+
# and is set as an input when declaring the component)
568+
spatialMetadataFields:
569+
- 'dcterms.spatial'
570+
# Which discovery configuration to use for 'geospatial search', used
571+
# in the browse map
572+
spatialFacetDiscoveryConfiguration: 'geospatial'
573+
# Which filter / facet name to use for faceted geospatial search
574+
# used in the browse map
575+
spatialPointFilterName: 'point'
576+
# Whether item page geospatial metadata should be displayed
577+
# (assumes they are wrapped in a test for this config in the template as
578+
# per the default templates supplied with DSpace for untyped-item and publication)
579+
enableItemPageFields: false
580+
# Whether the browse map should be enabled and included in the browse menu
581+
enableBrowseMap: false
582+
# Whether a 'map view' mode should be included alongside list and grid views
583+
# in search result pages
584+
enableSearchViewMode: false
585+
# The tile provider(s) to use for the map tiles drawn in the leaflet maps.
586+
# (see https://leaflet-extras.github.io/leaflet-providers/preview/) for a full list
587+
tileProviders:
588+
- 'OpenStreetMap.Mapnik'
589+
# Starting centre point for the map, as lat and lng coordinates. This is useful
590+
# to set the centre of the map when the map is first loaded and if there are no
591+
# points, shapes or markers to display.
592+
# Defaults to the centre of Istanbul
593+
defaultCentrePoint:
594+
lat: 41.015137
595+
lng: 28.979530
596+
554597
# Configuration for storing accessibility settings, used by the AccessibilitySettingsService
555598
accessibility:
556599
# The duration in days after which the accessibility settings cookie expires

cypress/e2e/item-statistics.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('Item Statistics Page', () => {
77
it('should load if you click on "Statistics" from an Item/Entity page', () => {
88
cy.visit('/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION')));
99
cy.get('ds-navbar ds-link-menu-item a[data-test="link-menu-item.menu.section.statistics"]').click();
10-
cy.location('pathname').should('eq', ITEMSTATISTICSPAGE);
10+
cy.location('pathname').should('eq', '/statistics/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION')));
1111
});
1212

1313
it('should contain element ds-item-statistics-page when navigating to an item statistics page', () => {

0 commit comments

Comments
 (0)