Commit 9430f362 by Cecilia Vela Gurovic Committed by Gerrit Code Review

Merge "Bug 1735252: Index and display the actualy country name rather than ISO code"

parents 8baa642a 947131d7
......@@ -214,6 +214,10 @@ class ElasticsearchType_artefact extends ElasticsearchType {
$terms = explode ( "|", $map [$record->artefacttype] );
$record->mainfacetterm = $terms [2];
$record->secfacetterm = $terms [1];
if ($record->artefacttype == 'country') {
// We need to index the actual name and not the iso code
$record->title = get_string("country.{$record->title}");
}
require_once( get_config ( 'docroot' ) . 'artefact/resume/lib.php' );
if (PluginArtefactResume::is_active ()) {
......@@ -278,6 +282,10 @@ class ElasticsearchType_artefact extends ElasticsearchType {
"\n",
"\r"
), ' ', strip_tags ( $record->title ) );
if ($record->artefacttype == 'country') {
// We need to display the actual name and not the iso code
$record->title = get_string("country.{$record->title}");
}
$record->description = str_replace ( array (
"\r\n",
"\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment