Giter Site home page Giter Site logo

lsgs / redcap-event-navigation-tweaks Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 2.0 297 KB

REDCap external module with enhancements to event and arm navigation.

License: GNU General Public License v3.0

PHP 100.00%
redcap redcap-external-module mcri murdoch-childrens redcap-repo

redcap-event-navigation-tweaks's People

Contributors

alanisem123 avatar lsgs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

alanisem123

redcap-event-navigation-tweaks's Issues

Exception thrown when generating HTML content in PHP 8

The 'event_navigation_tweaks' module threw the following exception when calling the hook method 'redcap_data_entry_form_top':

TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/modules/event_navigation_tweaks_v1.0.0/EventNavigationTweaks.php:111
Stack trace:
#0 /var/www/html/modules/event_navigation_tweaks_v1.0.0/EventNavigationTweaks.php(111): array_key_exists('caregiver_burde...', NULL)
#1 /var/www/html/modules/event_navigation_tweaks_v1.0.0/EventNavigationTweaks.php(18): MCRI\EventNavigationTweaks\EventNavigationTweaks->makeEventNavPopoverContent('inquiry_form')
#2 /var/www/html/redcap_v13.4.0/ExternalModules/classes/ExternalModules.php(3133): MCRI\EventNavigationTweaks\EventNavigationTweaks->redcap_data_entry_form_top(...

Updates for better compatibility with PHP 8

PHP 8 added check for optional parameters before required parameters.

REDCap EM documentation has updated their function calls by declaring the type within the parameters.
The following function need to be updated to declare the type. Insert the type before each of the variables and the php error message goes away.

void redcap_data_entry_form_top ( int $project_id, string $record = NULL, string $instrument, int $event_id, int $group_id = NULL, int $repeat_instance = 1 )

void redcap_survey_page_top ( int $project_id, string $record = NULL, string $instrument, int $event_id, int $group_id = NULL, string $survey_hash, int $response_id = NULL, int $repeat_instance = 1 )

void redcap_save_record ( int $project_id, string $record = NULL, string $instrument, int $event_id, int $group_id = NULL, string $survey_hash = NULL, int $response_id = NULL, int $repeat_instance = 1 )

Event navigation menu button misplaced when using translated UI elements

Sent: Thursday, March 7, 2024 5:01 PM
Subject: [EXTERNAL]The Event Navigation Tweaks module issue
...
When viewing the English version, the navigation button appears correctly, but when viewing the Chinese version, the button moves to the top of the page instead of appearing on the left side of the "Record Status Dashboard" page.

image

REDCap 12.0.23LTS

I'm having trouble getting this module to work after upgrading to REDCap 12.0.23LTS. Specifically, the Data Entry Form event display is not appearing. The other two features seem to work as expected. Any advice?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.