From: <jos...@us...> - 2010-08-19 16:45:21
|
Revision: 6421 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=6421&view=rev Author: josegar74 Date: 2010-08-19 16:45:14 +0000 (Thu, 19 Aug 2010) Log Message: ----------- #291: Fix for point d) "Print selection" option didn't work for templates Modified Paths: -------------- trunk/web/src/main/webapp/scripts/gn_search.js Modified: trunk/web/src/main/webapp/scripts/gn_search.js =================================================================== --- trunk/web/src/main/webapp/scripts/gn_search.js 2010-08-19 16:29:42 UTC (rev 6420) +++ trunk/web/src/main/webapp/scripts/gn_search.js 2010-08-19 16:45:14 UTC (rev 6421) @@ -38,7 +38,12 @@ function runPdfSearch(onSelection) { if (onSelection) { - location.replace (getGNServiceURL('pdf.selection.search')); + var serviceUrl = getGNServiceURL('pdf.selection.search'); + if ($("advanced_search_pnl").visible()) { + serviceUrl = serviceUrl + "?" + fetchParam('template'); + } + + location.replace (serviceUrl); metadataselect(0, 'remove-all'); } else { if (document.cookie.indexOf("search=advanced")!=-1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |