Skip to content

Commit

Permalink
Merge PSR into Research Services with DSS
Browse files Browse the repository at this point in the history
  • Loading branch information
doprdele committed Sep 19, 2024
1 parent de13bc3 commit d06f22d
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 104 deletions.
8 changes: 4 additions & 4 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
image: assets/images/bo.jpg
description: |
Business Operations provides IQSS programs and teams with administrative and financial support, as well as general services to the IQSS community.
- name: Data Science Services
link: data-science-services.html
- name: Research Services
link: research-services.html
icon: table
image: assets/images/dss.jpg
description: Data Science Services (DSS) assists researchers in the Harvard community in overcoming obstacles at every stage of the research and publication process.
image: assets/images/research-services.jpg
description: IQSS Research Services provide high-touch technical solutions for researchers in the Harvard community.
- name: Dataverse
link: dataverse.html
icon: database
Expand Down
File renamed without changes
12 changes: 6 additions & 6 deletions assets/js/dss_plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https: https://github.com/alexandersimoes/d3plus/wiki/Visualizations

// Run after DOM is loaded
let path = "assets/data/dss/";
let dssPath = "assets/data/dss/";
let fontFamily = "Montserrat";
const financialYearColorsCache = { FY24: 1, FY23: 4, FY22: 6, FY21: 8 };
var financialYearColorsIdx = 0;
Expand All @@ -27,7 +27,7 @@ function colorMemo(financial_year) {
}

function dssOverview() {
d3.tsv(path + "overview.tsv", function (error, data) {
d3.tsv(dssPath + "overview.tsv", function (error, data) {
for (d of data) {
dssAddMetric(d, "dssOverview", "col-sm-6 col-xs-12 col-md-6 col-lg-4 col-xl-3")
}
Expand Down Expand Up @@ -55,7 +55,7 @@ function dssAddMetric(d, div_id, class_override) {
}
// Quarter
function year_quarter() {
d3.csv(path + "metrics_by_quarter.csv", function (error, data) {
d3.csv(dssPath + "metrics_by_quarter.csv", function (error, data) {

if (error) return console.error(error);

Expand Down Expand Up @@ -88,7 +88,7 @@ function year_quarter() {

// patron_community,fyear_quarter,unique_tickets,cumulative_tickets
function timeSeriesCommunity() {
d3.csv(path + "metrics_by_department_cumulative.csv", function (error, data) {
d3.csv(dssPath + "metrics_by_department_cumulative.csv", function (error, data) {
if (error) return console.error(error);

// color: get unique values for affiliation:
Expand Down Expand Up @@ -129,7 +129,7 @@ function timeSeriesCommunity() {
// Patron Community (3)
function patron_community() {
// affiliation_types.csv
d3.csv(path + "metrics_by_department.csv", function (error, data) {
d3.csv(dssPath + "metrics_by_department.csv", function (error, data) {
if (error) return console.error(error);

const myNumData = data.map(d => ({
Expand Down Expand Up @@ -174,7 +174,7 @@ function patron_community() {

// Request Type (4)
function request_type() {
d3.csv(path + "metrics_by_request_type.csv", function (error, data) {
d3.csv(dssPath + "metrics_by_request_type.csv", function (error, data) {
if (error) return console.error(error);

const myNumData = data.map(d => ({
Expand Down
20 changes: 0 additions & 20 deletions data-science-services.html

This file was deleted.

100 changes: 100 additions & 0 deletions research-services.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
layout: default
title: Research Services
---
{% include templates.html %}

<h2 id="dss">Data Science Services</h2>
<p>
<span class="font-weight-bold">Data Science Services (DSS)</span> assists researchers in the Harvard community in overcoming obstacles at every stage of the research and publication process.
</p>

<!-- FIXME: FY24 should be parameterized eventually based on the latest year of data availableK -->
<h3>Overview FY24</h3>
<div id="dssOverview" class="row"></div>

<h3 id="consulting_services">Help requests</h3>
<div class="row">
{% include card-d3.html grid_class = "col-md-6" title = "Total number of Help requests" div = "totalNumHelpRequests" %}
{% include card-d3.html grid_class = "col-md-6" title = "Help Requests by Department (FY21 - FY24)" div = "helpRequestsByDepartment" %}
{% include card-d3.html grid_class = "col-md-6" title = "Help Requests by Top 8 Departments Cumulatively" div = "helpRequestsByDepartmentCm" %}
{% include card-d3.html grid_class = "col-md-6" title = "Help Requests by Type of Request (FY21 - FY24)" div = "helpRequestsByType" %}
</div>

<!-- Program on Survey Research -->

<h2 id="psr">Program on Survey Research</h2>
<p>The <span class="font-weight-bold">Program on Survey Research</span> encourages and facilitates research and
instruction
in the theory and practice of survey research, with a mission of enhancing the quality of teaching and research at
Harvard.</p>

<h3>Advisees by School</h3>

<div class="row">
<div class="col-md-6">

<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
PSR Advisees by School <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-school" class="viz"></canvas>
</div>
</div>
</div>

<div class="col-md-6">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
Distribution of PSR Advisees by School <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-school-distribution" class="viz"></canvas>
</div>
</div>
</div>
</div>

<h3>Advisees by Primary Role</h3>

<div class="row">
<div class="col-md-6">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
PSR Advisees by Primary Role <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-role" class="viz"></canvas>
</div>
</div>
</div>

<div class="col-md-6">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
Distribution of PSR Primary Role <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-role-distribution" class="viz"></canvas>
</div>
</div>
</div>

</div>

<script>
path = "{{site.baseurl}}assets/data/"
resize();
</script>
<script src="{{site.baseurl}}assets/js/plot.js"></script>
<script src="{{site.baseurl}}assets/js/dss_plots.js"></script>
<script src="{{site.baseurl}}assets/js/psr_plots.js"></script>
75 changes: 1 addition & 74 deletions scientific-programs.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,78 +145,6 @@ <h3>PPR Overview</h3>
<h3>PPR Authors</h3>
<div class="row" id="pprAuthors"></div>


<!-- Program on Survey Research -->

<h2 id="psr">Program on Survey Research</h2>
<p>The <span class="font-weight-bold">Program on Survey Research</span> encourages and facilitates research and
instruction
in the theory and practice of survey research, with a mission of enhancing the quality of teaching and research at
Harvard.</p>

<h3>Advisees by School</h3>

<div class="row">
<div class="col-md-6">

<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
PSR Advisees by School <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-school" class="viz"></canvas>
</div>
</div>
</div>

<div class="col-md-6">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
Distribution of PSR Advisees by School <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-school-distribution" class="viz"></canvas>
</div>
</div>
</div>
</div>

<h3>Advisees by Primary Role</h3>

<div class="row">
<div class="col-md-6">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
PSR Advisees by Primary Role <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-role" class="viz"></canvas>
</div>
</div>
</div>

<div class="col-md-6">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title">
Distribution of PSR Primary Role <span class="psr-period"></span>
</h3>
</div>
<div class="card-body">
<canvas id="psr-role-distribution" class="viz"></canvas>
</div>
</div>
</div>

</div>


<script>
resize();
d3.tsv("{{site.baseurl}}assets/data/cga_contact.tsv", function (data) {
Expand Down Expand Up @@ -365,5 +293,4 @@ <h3 class="card-title">
path = "{{site.baseurl}}assets/data/"
</script>

<script src="{{site.baseurl}}assets/js/ppr_plots.js"></script>
<script src="{{site.baseurl}}assets/js/psr_plots.js"></script>
<script src="{{site.baseurl}}assets/js/ppr_plots.js"></script>

0 comments on commit d06f22d

Please sign in to comment.