[GeoNetwork-devel] Geonetwork 3 metadata view layer images

Hi there,
I am wishing to remove the first image for a layer, on the metadataview right hand column

I think i should be able to have only the first image appear by taking the first result for the grid but am unsure which file, files i need to alter.

Should i alter the function or the html template?

Any pointers would be greatly appreciated.

cheers

Hi

···

2015-09-04 5:37 GMT+02:00 Alginnon Games <upploadds@anonymised.com>:

Hi there,
I am wishing to remove the first image for a layer, on the metadataview right hand column

I think i should be able to have only the first image appear by taking the first result for the grid but am unsure which file, files i need to alter.

Should i alter the function or the html template?

Probably here
https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html#L405

Francois

Any pointers would be greatly appreciated.

cheers



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Francois,

I have made some adjustments in my local version of recordview.html that have had the desired result.
I replaced this code from line 405





overview



<img data-gn-img-modal=“md”
class=“gn-img-thumbnail img-thumbnail”
alt=“{{img.label}}”
data-ng-src=“{{img.url}}”/>



With this adjusted code

overview

**

Feel free to incorporate this as an enhancement to the current version, as I don’t have a github account.

I have attached a screenshot of the gui with the change, much nicer in my opinion with just the single overview image.

cheers and thanks again for your help

peter

(attachments)

GN_Overviews302.png

···

On Fri, Sep 4, 2015 at 5:05 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi

2015-09-04 5:37 GMT+02:00 Alginnon Games <upploadds@anonymised.com>:

Hi there,
I am wishing to remove the first image for a layer, on the metadataview right hand column

I think i should be able to have only the first image appear by taking the first result for the grid but am unsure which file, files i need to alter.

Should i alter the function or the html template?

Probably here
https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html#L405

Francois

Any pointers would be greatly appreciated.

cheers



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Francois,

I have made some adjustments in my local version of recordview.html that have had the desired result.

I replaced the code from line 405 with adjusted code as included in the screenshot.
I have also attached a screenshot of the gui with the change, much nicer in my opinion with just the single overview image.
I have also made sure to adjust so that modal popup is still functional etc.

cheers and thanks again for your help

Peter

(attachments)

GN_Overviews302.png
RecordView_html_ReplacedCode.png

···

On Fri, Sep 4, 2015 at 5:05 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi

2015-09-04 5:37 GMT+02:00 Alginnon Games <upploadds@anonymised.com>:

Hi there,
I am wishing to remove the first image for a layer, on the metadataview right hand column

I think i should be able to have only the first image appear by taking the first result for the grid but am unsure which file, files i need to alter.

Should i alter the function or the html template?

Probably here
https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/recordView.html#L405

Francois

Any pointers would be greatly appreciated.

cheers



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork