diff --git a/Multilingual.php b/Multilingual.php index 33b5142..7c5783b 100644 --- a/Multilingual.php +++ b/Multilingual.php @@ -4,6 +4,7 @@ use ExternalModules\AbstractExternalModule; use ExternalModules\ExternalModules; use \Piping as Piping; +use REDCap; class Multilingual extends AbstractExternalModule { @@ -28,6 +29,9 @@ function redcap_data_entry_form($project_id, $record, $instrument){ function redcap_every_page_top($project_id){ $api_endpoint = $this->getProjectSetting('use-api-endpoint', $project_id); + //$user_rights = REDCap::getUserRights(); + //echo json_encode($user_rights); + if(strpos($_SERVER['REQUEST_URI'], 'online_designer.php') !== false && isset($_GET['page'])){ echo ''; echo ''; diff --git a/config.json b/config.json index b1edfc6..e905da8 100644 --- a/config.json +++ b/config.json @@ -41,7 +41,7 @@ "links": { "project": [ { - "name": "Data Dictionary Support", + "name": "Multilingual Data Dictionary Support", "icon": "gear", "url": "dataDictionaryHelper.php" } diff --git a/js/multilingual_survey.js b/js/multilingual_survey.js index 58c5163..7b3fa56 100644 --- a/js/multilingual_survey.js +++ b/js/multilingual_survey.js @@ -745,7 +745,7 @@ data['project_id'] = pid; data['record_id'] = $('[name="' + table_pk + '"]').val(); data['event_id'] = event_id; - data['page'] = $('#surveytitle').html().replace(/ /g,'_').toLowerCase(); + //data['page'] = $('#surveytitle').html().replace(/ /g,'_').toLowerCase(); var t; for(t in languages){ if(languages[t] == lang){