Skip to content

Commit

Permalink
Abstract and thumbnail of documents is not displayed correctly in a G…
Browse files Browse the repository at this point in the history
…eoStory (GeoNode#81)

* replace property key for abstract of geostory media resource to remove html tags

* restore abstract for maps

* fix metadata of media maps

* update client bundle
  • Loading branch information
allyoucanmap authored Feb 25, 2021
1 parent b08a8f3 commit 2b2325a
Show file tree
Hide file tree
Showing 186 changed files with 31 additions and 31 deletions.
12 changes: 6 additions & 6 deletions geonode_mapstore_client/client/js/observables/media/geonode.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ function parseMapConfig({ data, attributes, user, id }, resource) {
canCopy: true,
canDelete: true,
canEdit: true,
name: metadata.title,
description: metadata.abstract,
thumbnail: metadata.thumbnail || resource?.data?.thumbnail,
name: resource?.data?.title || metadata.title,
description: resource?.data?.description || metadata.abstract,
thumbnail: resource?.data?.thumbnail || metadata.thumbnail,
type: 'map'
};
}
Expand Down Expand Up @@ -96,7 +96,7 @@ const loadMediaList = {
thumbnail: resource.thumbnail_url,
src: resource.href,
title: resource.title,
description: resource.abstract,
description: resource.raw_abstract,
alt: resource.alternate,
credits: resource.attribution,
sourceId
Expand Down Expand Up @@ -146,7 +146,7 @@ const loadMediaList = {
thumbnail: resource.thumbnail_url,
src: resource.href,
title: resource.title,
description: resource.abstract,
description: resource.raw_abstract,
credits: resource.attribution,
sourceId
}
Expand Down Expand Up @@ -176,7 +176,7 @@ const loadMediaList = {
data: {
thumbnail: resource.thumbnail_url,
title: resource.title,
description: resource.abstract,
description: resource.raw_abstract,
id: resource.pk,
sourceId
}
Expand Down
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"author": "GeoSolutions",
"license": "BSD-2-Clause",
"devDependencies": {
"@mapstore/project": "1.0.3"
"@mapstore/project": "1.0.4"
},
"dependencies": {
"@fortawesome/fontawesome-free": "5.15.1",
Expand Down
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
geonode-mapstore-client-v2.0.9-264c7e38db33aea06e44197a418b4a1fe831b428
geonode-mapstore-client-v2.0.9-aff0852959f787ed20b6de27676aecb88db03d86

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 2b2325a

Please sign in to comment.