This is a static HTML site used to demonstrate the capabilities of the PSU Researcher Metadata Database application's faculty profile API. A copy of it is currently hosted here. On this demo site, you can load a profile for a faculty member (assuming that they are in the database) by appending their Penn State WebAccess ID (pjh18
, for example) to the end of the URL like so: https://profile-demo.libraries.psu.edu/index.html#pjh18 and refreshing the page.
If you're running the Penn State Researcher Metadata Database app locally and want to use that as the data source for this site in development, you can locally change the profile_api_url
in profile_files/profile.js
in this project to use the hostname for your local application server. If you do this, be careful not to accidentally commit and deploy this change. Othewise, you can just leave the URL as-is and use the deployed RMD app as the data source.
If you have Ruby and WEBrick installed, you can serve this site locally by going into the root of this project and running ruby -run -e httpd . -p 9090
. The site will then be available locally at http://localhost:9090/index.html.
There is currently no automated deployment for this site. To deploy:
- Connect to the Penn State VPN
- SSH as the deploy user to the server:
ssh -p 1855 [email protected]
- Go to the document root for the site:
cd /var/www/sites/rmd_profile_demo
- Fetch changes from GitHub:
git fetch
- Merge any new changes - for example, if the master branch is currently checked out:
git merge origin/master
This project was developed by the The Pennsylvania State University Libraries Digital Scholarship and Repository Development team in collaboration with West Arete.