[GeoNetwork-devel] Customize Search Results Page in TabSearch

Hi Guys,

I’m trying to customize how the actions links are displayed (and their onclick actions) in the search results list. I’ve figured out what attributes are returned (href, protocol, etc.) but I need to read the “function” attribute as well. Can someone point me to which class or function packs the response for the result list of TabSearch?

Thanks,

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

Hi Nazareno, Should be here:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/MetadataResultsView.js#L540

HTH

Francois

···

2013/6/21 Nazareno Chan <nazareno.chan@anonymised.com>

Hi Guys,

I’m trying to customize how the actions links are displayed (and their onclick actions) in the search results list. I’ve figured out what attributes are returned (href, protocol, etc.) but I need to read the “function” attribute as well. Can someone point me to which class or function packs the response for the result list of TabSearch?

Thanks,

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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,

Thanks for the reply. I am doing my UI changes here but I’m actually after the function that gathers the data that is passed to this function that you pointed out. I think the search is done through one of the catalogue’s services and this method is the callback. I’m just having problems tracing back to the search code that does the search and sends the reponse.

Naz Chan

···

On Fri, Jun 21, 2013 at 4:04 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Nazareno, Should be here:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/MetadataResultsView.js#L540

HTH

Francois

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

2013/6/21 Nazareno Chan <nazareno.chan@anonymised.com>

Hi Guys,

I’m trying to customize how the actions links are displayed (and their onclick actions) in the search results list. I’ve figured out what attributes are returned (href, protocol, etc.) but I need to read the “function” attribute as well. Can someone point me to which class or function packs the response for the result list of TabSearch?

Thanks,

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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,

Thanks for the reply. I am doing my UI changes here but I’m actually after the function that gathers the data that is passed to this function that you pointed out. I think the search is done through one of the catalogue’s services and this method is the callback. I’m just having problems tracing back to the search code that does the search and sends the reponse.

Naz Chan

Hi,

Maybe I didn’t understand you right, but this may help[1]? It’s where the results are converted to the view. You can change there the links that are shown on the results.

[1]https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/Templates.js

···

On Fri, Jun 21, 2013 at 4:04 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Nazareno, Should be here:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/MetadataResultsView.js#L540

HTH

Francois

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

2013/6/21 Nazareno Chan <nazareno.chan@anonymised.com>

Hi Guys,

I’m trying to customize how the actions links are displayed (and their onclick actions) in the search results list. I’ve figured out what attributes are returned (href, protocol, etc.) but I need to read the “function” attribute as well. Can someone point me to which class or function packs the response for the result list of TabSearch?

Thanks,

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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 Maria,

Thanks for the reply. I’m actually after the source code that processes the search request (like the one below).
-http://localhost:8080/geonetwork/apps/tabsearch/…/…/srv/eng/q?fast=index&from=1&to=20&hitsperpage=20

So that I can add an additional attribute to the data that it returns.

Thanks!

···

On Fri, Jun 21, 2013 at 4:16 PM, María Arias de Reyna <delawen@anonymised.com> wrote:

On Fri, Jun 21, 2013 at 8:10 AM, Nazareno Chan <nazareno.chan@anonymised.com> wrote:

Hi Francois,

Thanks for the reply. I am doing my UI changes here but I’m actually after the function that gathers the data that is passed to this function that you pointed out. I think the search is done through one of the catalogue’s services and this method is the callback. I’m just having problems tracing back to the search code that does the search and sends the reponse.

Naz Chan

Hi,

Maybe I didn’t understand you right, but this may help[1]? It’s where the results are converted to the view. You can change there the links that are shown on the results.

[1]https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/Templates.js


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

On Fri, Jun 21, 2013 at 4:04 PM, Francois Prunayre <fx.prunayre@anonymised.com1…> wrote:

Hi Nazareno, Should be here:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/MetadataResultsView.js#L540

HTH

Francois

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

2013/6/21 Nazareno Chan <nazareno.chan@anonymised.com>

Hi Guys,

I’m trying to customize how the actions links are displayed (and their onclick actions) in the search results list. I’ve figured out what attributes are returned (href, protocol, etc.) but I need to read the “function” attribute as well. Can someone point me to which class or function packs the response for the result list of TabSearch?

Thanks,

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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 Maria,

Thanks for the reply. I’m actually after the source code that processes the search request (like the one below).
-http://localhost:8080/geonetwork/apps/tabsearch/…/…/srv/eng/q?fast=index&from=1&to=20&hitsperpage=20

So that I can add an additional attribute to the data that it returns.

You mean on java or javascript part?

On Java I think you must search inside web-client on the package org.fao.geonet.kernel.search (UserQueryInput?).
On Javascript probably it is on GeoNetwork.util.SearchTools.doQuery…

···

On Fri, Jun 21, 2013 at 4:16 PM, María Arias de Reyna <delawen@anonymised.com> wrote:

On Fri, Jun 21, 2013 at 8:10 AM, Nazareno Chan <nazareno.chan@anonymised.com> wrote:

Hi Francois,

Thanks for the reply. I am doing my UI changes here but I’m actually after the function that gathers the data that is passed to this function that you pointed out. I think the search is done through one of the catalogue’s services and this method is the callback. I’m just having problems tracing back to the search code that does the search and sends the reponse.

Naz Chan

Hi,

Maybe I didn’t understand you right, but this may help[1]? It’s where the results are converted to the view. You can change there the links that are shown on the results.

[1]https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/Templates.js


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

On Fri, Jun 21, 2013 at 4:04 PM, Francois Prunayre <fx.prunayre@anonymised.com1…> wrote:

Hi Nazareno, Should be here:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/MetadataResultsView.js#L540

HTH

Francois

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

2013/6/21 Nazareno Chan <nazareno.chan@anonymised.com>

Hi Guys,

I’m trying to customize how the actions links are displayed (and their onclick actions) in the search results list. I’ve figured out what attributes are returned (href, protocol, etc.) but I need to read the “function” attribute as well. Can someone point me to which class or function packs the response for the result list of TabSearch?

Thanks,

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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

2013/6/21 María Arias de Reyna <delawen@anonymised.com>

On Fri, Jun 21, 2013 at 8:21 AM, Nazareno Chan <nazareno.chan@anonymised.com
> wrote:

Hi Maria,

Thanks for the reply. I'm actually after the source code that processes
the search request (like the one below).
-http://localhost:8080/geonetwork/apps/tabsearch/../../srv/eng/q?
fast=index&from=1&to=20&hitsperpage=20

So that I can add an additional attribute to the data that it returns.

You mean on java or javascript part?

On Java I think you must search inside web-client on the package
org.fao.geonet.kernel.search (UserQueryInput?).

See
http://geonetwork-opensource.org/manuals/trunk/eng/users/admin/advanced-configuration/index.html#add-a-search-field

Francois

On Javascript probably it is on GeoNetwork.util.SearchTools.doQuery....

Thanks!

On Fri, Jun 21, 2013 at 4:16 PM, María Arias de Reyna <delawen@anonymised.com.>wrote:

On Fri, Jun 21, 2013 at 8:10 AM, Nazareno Chan <
nazareno.chan@anonymised.com> wrote:

Hi Francois,

Thanks for the reply. I am doing my UI changes here but I'm actually
after the function that gathers the data that is passed to this function
that you pointed out. I think the search is done through one of the
catalogue's services and this method is the callback. I'm just having
problems tracing back to the search code that does the search and sends the
reponse.

Naz Chan

Hi,

Maybe I didn't understand you right, but this may help[1]? It's where
the results are converted to the view. You can change there the links that
are shown on the results.

[1]
https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/Templates.js

On Fri, Jun 21, 2013 at 4:04 PM, Francois Prunayre <
fx.prunayre@anonymised.com> wrote:

Hi Nazareno, Should be here:

https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/MetadataResultsView.js#L540
HTH

Francois

2013/6/21 Nazareno Chan <nazareno.chan@anonymised.com>

Hi Guys,

I'm trying to customize how the actions links are displayed (and
their onclick actions) in the search results list. I've figured out what
attributes are returned (href, protocol, etc.) but I need to read the
"function" attribute as well. Can someone point me to which class or
function packs the response for the result list of TabSearch?

Thanks,

--
Nazareno Chan
Software Engineer
______________________________________

Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

------------------------------
The contents of this email are confidential and may be subject to
legal or professional privilege and copyright. No representation is made
that this email is free of viruses or other defects. If you have received
this communication in error, you may not copy or distribute any part of it
or otherwise disclose its contents to anyone. Please advise the sender of
your incorrect receipt of this correspondence.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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

--
Nazareno Chan
Software Engineer
______________________________________

Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

------------------------------
The contents of this email are confidential and may be subject to legal
or professional privilege and copyright. No representation is made that
this email is free of viruses or other defects. If you have received this
communication in error, you may not copy or distribute any part of it or
otherwise disclose its contents to anyone. Please advise the sender of your
incorrect receipt of this correspondence.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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

--
Nazareno Chan
Software Engineer
______________________________________

Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

------------------------------
The contents of this email are confidential and may be subject to legal
or professional privilege and copyright. No representation is made that
this email is free of viruses or other defects. If you have received this
communication in error, you may not copy or distribute any part of it or
otherwise disclose its contents to anyone. Please advise the sender of your
incorrect receipt of this correspondence.

Thanks Maria, I’ll have a look at the classes in this package. :slight_smile:

···

On Fri, Jun 21, 2013 at 4:29 PM, María Arias de Reyna <delawen@anonymised.com> wrote:

On Fri, Jun 21, 2013 at 8:21 AM, Nazareno Chan <nazareno.chan@anonymised.com> wrote:

Hi Maria,

Thanks for the reply. I’m actually after the source code that processes the search request (like the one below).
-http://localhost:8080/geonetwork/apps/tabsearch/…/…/srv/eng/q?fast=index&from=1&to=20&hitsperpage=20

So that I can add an additional attribute to the data that it returns.

You mean on java or javascript part?

On Java I think you must search inside web-client on the package org.fao.geonet.kernel.search (UserQueryInput?).
On Javascript probably it is on GeoNetwork.util.SearchTools.doQuery…

Thanks!


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

On Fri, Jun 21, 2013 at 4:16 PM, María Arias de Reyna <delawen@anonymised.com> wrote:

On Fri, Jun 21, 2013 at 8:10 AM, Nazareno Chan <nazareno.chan@anonymised.com> wrote:

Hi Francois,

Thanks for the reply. I am doing my UI changes here but I’m actually after the function that gathers the data that is passed to this function that you pointed out. I think the search is done through one of the catalogue’s services and this method is the callback. I’m just having problems tracing back to the search code that does the search and sends the reponse.

Naz Chan

Hi,

Maybe I didn’t understand you right, but this may help[1]? It’s where the results are converted to the view. You can change there the links that are shown on the results.

[1]https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/Templates.js


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

On Fri, Jun 21, 2013 at 4:04 PM, Francois Prunayre <fx.prunayre@anonymised.com1…> wrote:

Hi Nazareno, Should be here:
https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/js/GeoNetwork/lib/GeoNetwork/widgets/MetadataResultsView.js#L540

HTH

Francois

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com

2013/6/21 Nazareno Chan <nazareno.chan@anonymised.com>

Hi Guys,

I’m trying to customize how the actions links are displayed (and their onclick actions) in the search results list. I’ve figured out what attributes are returned (href, protocol, etc.) but I need to read the “function” attribute as well. Can someone point me to which class or function packs the response for the result list of TabSearch?

Thanks,

Nazareno Chan
Software Engineer


Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd,
Pyrmont NSW 2009
P: 02 8570 5050 F: 02 8570 5099 W: www.lisasoft.com


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


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