Skip to content

Commit

Permalink
Fix dataset abstract not being shown on the search results (GeoNode#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Garcia Silva authored Jan 11, 2022
1 parent d5ae626 commit fd6e55a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Fix dataset abstract not being shown on the UI anymore
- Updated user guide
- Layer uploads also send SLD style
- Connection test uses auth credentials, if available

Expand Down
2 changes: 1 addition & 1 deletion src/qgis_geonode/apiclient/geonode_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def _get_common_model_properties(raw_dataset: typing.Dict) -> typing.Dict:
"uuid": uuid.UUID(raw_dataset["uuid"]),
"name": raw_dataset.get("alternate", raw_dataset.get("name", "")),
"title": raw_dataset.get("title", ""),
"abstract": raw_dataset.get("raw_abstract", ""),
"abstract": raw_dataset.get("raw_abstract", raw_dataset.get("abstract", "")),
"thumbnail_url": raw_dataset["thumbnail_url"],
"link": raw_dataset["link"],
"detail_url": raw_dataset["detail_url"],
Expand Down
1 change: 1 addition & 0 deletions src/qgis_geonode/gui/search_result_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def _initialize_ui_for_raster_dataset(self):
def _initialize_ui(self):
self.title_la.setText(f"<h3>{self.brief_dataset.title}</h3>")
self.resource_type_la.setText(self.brief_dataset.dataset_sub_type.value)
self.description_la.setText(self.brief_dataset.abstract)
if self.brief_dataset.detail_url:
self.browser_btn.setIcon(
QtGui.QIcon(":/plugins/qgis_geonode/mIconGeonode.svg")
Expand Down

0 comments on commit fd6e55a

Please sign in to comment.