Skip to content

Implementation of new documents catalog plugin. #2227

@anup39

Description

@anup39

Description

A new plugin to allow user to import documents as a vector layer.

How it works:

  1. A Button in Navbar allows to open Documents Catalog.
  2. Allows filtering documents by title , abstract, document extension type (png, jpg ..) , categories , keyword.
  3. After search result is completed , user can add search results as a layer in the map.
  4. Each marker represent a document and when click on the marker , in identify panel , the document should be visible as embed content.

Mockup:

Image

Other useful information :

Here the approach is to follow how DatasetsCatalog plugin currently works. Each document will have location property to be used as a geometry. We need to make a appropriate vector layer and save in layers in mapconfig.
The vector layer sample will be something similar like shown below

{
    "type": "vector",
    "id": "test_vector",
    "title": "Documents",
    "features": [{
        "type": "Feature",
        "properties": {
            "title": "My Image",
            "embedUrl": "https://development.demo.geonode.org/documents/3357/embed"
        },
        "geometry": {
            "type": "Point",
            "coordinates": [0, 0]
        }
    }],
    "featureInfo": {
        "format": "TEMPLATE",
        "template": "<p><iframe src=\"${properties['embedUrl']}\" /></p>"
    }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions