Page History
Warning |
---|
The configurations detailed on this page is only for nodes |
...
participating in the ACT Production network and after upgrading to SHRINE 3.0 |
OVERVIEW
By following these steps you are adding Test Covid19 network please add a link to a web page tracking status of covid19 data available on ACT Test by following this procedure:
Replace shrine's existing tomcat/webapps/shrine-api/shrine-webclient/index.html with this modified index.html. Most shrine nodes have this file installed at /opt/shrine/tomcat/webapps/shrine-api/shrine-webclient/index.html , but yours may have a different path from root to tomcat.
For most systems these shell commands will make the change: Google Sheet in each of the web clients available in SHRINE 3.0:
- Legacy Web Client: Change the default "Network Help" link in the upper right of the web client to read "Site Data Details"
- New Web Client: Adding a "Site Data Details" link to the user profile menu, which links to the same Google Sheet.
The destination for these links is: https://docs.google.com/spreadsheets/d/16Z23xRbeyvcnM_BEtecgMQDFCL0BOTUDZiZLfkdmV-0/edit#gid=0
New Web Client: Adding "Site Data Details" to User Profile Menu
DEFAULT CONDITIONS
The User Profile menu seen below comes with two default links "Application Help" and "Network Help".
PROCEDURE
In the webclient section of shrine.conf, add a helpLinks section with a "site name" : "site url" name value pair. In the example below, a link with the title "Site Data Details" will be added as a help link and it will open the google sheet link provided when clicked.
Code Block | ||||
---|---|---|---|---|
| ||||
cd /opt/shrine/tomcat/webapps/shrine-api/shrine-webclient/
wget https://open.catalyst.harvard.edu/wiki/download/attachments/77040288/index.html?api=v2 | ||||
webclient {
domain = "shrine-webclient-dev-node01.catalyst.harvard.edu"
name = "SHRINE"
nextStepsUrl = "https://www.actnetwork.us/national"
urlCellPM = "http://shrine-webclient-dev-node01-i2b2.catalyst.harvard.edu:9090/i2b2/services/PMService/"
siteAdminEmail = "isha_test@goo.com"
usernameLabel = "isha_test"
passwordLabel = "isha_test"
queryFlaggingInstructions = "isha_test"
flaggingIconInstructions = "isha's test flagging"
flaggingPlaceholderText = "isha's sample message"
helpLinks = {
"Site Data Details": "https://docs.google.com/spreadsheets/d/16Z23xRbeyvcnM_BEtecgMQDFCL0BOTUDZiZLfkdmV-0/edit#gid=0"
}
} |
VALIDATION
After restarting tomcat, the new "Site Data Details" link will be displayed in the User Profile menu:
Legacy Web Client: Changing "Network Help" to "Site Data Details"
DEFAULT CONDITIONS
The Legacy web client has a Network Help link in the upper right by default. We will change that text and link destination..
PROCEDURE
Click this link: index.html to download a new index.html with the updated Site Data Details link.
Use it to replace the existing index.html file located atValidate the change by logging into the shrine application and observing the yellow COVID-19 Network Info link in the upper right. Click that link to open a GoogleDocs spreadsheet of information about the state of nodes providing covid19 data on ACT Test.
If something goes wrong you can restore the original shrine-api client by stopping tomcat, deleting : /opt/shrine/tomcat/webapps/shrine-api , and starting tomcat. Tomcat will unpack the shrine-ap.war restoring the original index.html ./shrine-webclient-legacy/index.html
In the legacy web client, you should see the Site Data Details link in the upper right.