Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

How to add an indicator to search results if they are restricted #294

Open ericgibson opened 6 years ago

ericgibson commented 6 years ago

If you search as an authorized (logged-in) user you will get additional records that are restricted to groups you are a member of. I want to add a icon (or something) that indicates the records in the search result that you are seeing because you have elevated permissions. On the catalog/search/results.jsp page, there is an h:outputText with value #{record.title} that will return the title, or you can replace with #{record.uuid}, or record.getEnvelope() or record.getContentType(), etc... but there is no property for the field acl. If I could get record.acl for each returned record then I could use h:outputText render if record.acl is not null or the like.

Does anybody know a way to add an indicator to search results to highlight the records that are restricted?

ideas?