Skip to content

Commit

Permalink
fix for refine search
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Eichar committed Jun 20, 2012
1 parent 35d5bd1 commit 531deb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions updateFromProd.sh
Expand Up @@ -6,12 +6,12 @@ DUMP_FILE="dump-`date '+%y%m%d-%H%M'`.sql.gz"

copy () {
ssh -A ssh0.bgdi.admin.ch "scp -r deploy@ec2-46-137-6-225.eu-west-1.compute.amazonaws.com:/srv/tomcat/geocat/work/geonetwork/$1 ."
ssh -A ssh0.bgdi.admin.ch "scp -r $1 ec2-46-137-20-48.eu-west-1.compute.amazonaws.com:/var/www/tc-geocat/private/geocat.ch.deploy/hooks/geocat/data"
ssh -A ssh0.bgdi.admin.ch "scp -r $1 ec2-46-137-20-48.eu-west-1.compute.amazonaws.com:/var/www/vhosts/tc-geocat/private/geocat.ch.deploy/hooks/geocat/data"
ssh -A ssh0.bgdi.admin.ch "rm -rf $1"
}
ssh -A ssh0.bgdi.admin.ch "ssh admin@db0.bgdi.admin.ch pg_dump -U www-data -E UTF-8 -Z 9 geocat2 > $DUMP_FILE"
ssh -A ssh0.bgdi.admin.ch "scp admin@db0.bgdi.admin.ch:$DUMP_FILE ."
ssh -A ssh0.bgdi.admin.ch "scp $DUMP_FILE ec2-46-137-20-48.eu-west-1.compute.amazonaws.com:/var/www/tc-geocat/private/geocat.ch.deploy/hooks/geocat/initialDump.sql.gz"
ssh -A ssh0.bgdi.admin.ch "scp $DUMP_FILE ec2-46-137-20-48.eu-west-1.compute.amazonaws.com:/var/www/vhosts/tc-geocat/private/geocat.ch.deploy/hooks/geocat/initialDump.sql.gz"
ssh -A ssh0.bgdi.admin.ch "rm $DUMP_FILE"

copy logos
Expand Down
Expand Up @@ -1235,7 +1235,8 @@ private static Element addSortedSummaryKeys(Element elSummary, String langCode,

Element childElem = new Element(name);
childElem.setAttribute("count", Integer.toString(keyCount));
childElem.setAttribute("name", translator.translate(keyword));
childElem.setAttribute("title", translator.translate(keyword));
childElem.setAttribute("name", keyword);
childElem.setAttribute("indexKey", indexKey);

rootElem.addContent(childElem);
Expand Down
6 changes: 3 additions & 3 deletions web/src/main/webapp/scripts/mapfishIntegration/geocat.js
Expand Up @@ -2339,9 +2339,9 @@ var geocat = {
' </xsl:template>';
},

basicLabelFormat: '<xsl:value-of select="@name" /> (<xsl:value-of select="@count" />)',
denominatorLabelFormat: '1/<xsl:value-of select="@name" /> (<xsl:value-of select="@count" />)',
dateLabelFormat: '<xsl:value-of select="@name" /> (<xsl:value-of select="@count" />)',
basicLabelFormat: '<xsl:value-of select="@title" /> (<xsl:value-of select="@count" />)',
denominatorLabelFormat: '1/<xsl:value-of select="@title" /> (<xsl:value-of select="@count" />)',
dateLabelFormat: '<xsl:value-of select="@title" /> (<xsl:value-of select="@count" />)',
sortArryAsc: function(array) {
var end = array.slice(1).sort(function(a,b){
var al = a[0].toLowerCase()+a[1].toLowerCase();
Expand Down

0 comments on commit 531deb0

Please sign in to comment.