From d13dbdc32d37440bc5f7f5c3412d16dd834ea7e4 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Fri, 31 Mar 2023 11:07:34 -0700 Subject: [PATCH] minor patches and one bug fix around project_id --- ExternalModule.php | 3 +-- config.json | 3 --- documentation.php | 21 ++++++++------------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/ExternalModule.php b/ExternalModule.php index 9b31175..b1917de 100644 --- a/ExternalModule.php +++ b/ExternalModule.php @@ -7,7 +7,6 @@ namespace ImageMap\ExternalModule; use ExternalModules\AbstractExternalModule; -use ExternalModules\ExternalModules; use Form; @@ -66,7 +65,7 @@ private function injectImageMaps() { if (empty($row)) { // The specified imagemap is not defined \REDCap::logEvent("Missing ImageMap", "$imagemap_name is defined for field $field_name but does not exist.", - "", "", "", $project_id); + "", "", "", $this->getProjectId()); continue; } diff --git a/config.json b/config.json index f185738..7634c94 100644 --- a/config.json +++ b/config.json @@ -2,9 +2,6 @@ "name": "Image Map", "namespace": "ImageMap\\ExternalModule", "description": "This module replaces an input, radio, or checkbox field with an interactive image where users can click on image regions to select one or more field options. Find the complete documentation and an example instrument at https://github.com/ctsit/imagemap.", - "permissions": [ - "redcap_every_page_top" - ], "framework-version": 9, "authors": [ { diff --git a/documentation.php b/documentation.php index 932e975..698ad50 100644 --- a/documentation.php +++ b/documentation.php @@ -38,7 +38,7 @@ } table.detail textarea { width: 100%; - resize: auto; + resize: unset; } span.copy {float:right;margin-right: -10px;} @@ -81,7 +81,7 @@ ?> - '/> + ' alt=""/> @@ -125,24 +125,19 @@

How can I make my own images?

- You must have a png image file AND create a html file containing area tags. An example area file is below: + You must have a png image file AND create a html file containing area tags. An example area file is below:

getModulePath() .'maps/smile_scale.html', false, null, 0, 200)) ?>
-The value for the data-key attribute will be the value stored in REDCap - either as radio/checkbox keys or in a text box. Currently you must submit these files to our git repo - in the future we may add the ability to insert those files into the External Module as parameters. +

The value for the data-key attribute will be the value stored in REDCap - either as radio/checkbox keys or in a text box. Currently, you must submit these files to our git repo - in the future we may add the ability to insert those files into the External Module as parameters.