Skip to content

Commit

Permalink
export missing lines
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmegill committed Dec 10, 2024
1 parent b58d2b9 commit 1066c15
Showing 1 changed file with 71 additions and 4 deletions.
75 changes: 71 additions & 4 deletions client-report/src/components/RawDataExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const RawDataExport = ({ conversation, report_id }) => {
{`The following data exports are anonymized. Participants are identifed by an integer representing the order in which they first voted. For a full description of files and columns, please see: `}
<a href="https://compdemocracy.org/export/"> https://compdemocracy.org/export/ </a>
</p>
{/* Rest of the export links and curl commands */}
<p style={{ fontFamily: "monospace" }}>
{`--------Summary: `}
<a
Expand All @@ -47,7 +46,49 @@ const RawDataExport = ({ conversation, report_id }) => {
{getDownloadFilename("summary", conversation)}
</a>
</p>
{/* Add the rest of the export links here... */}
<p style={{ fontFamily: "monospace" }}>
{`-------Comments: `}
<a
download={getDownloadFilename("comments", conversation)}
href={`//${window.location.hostname}/api/v3/reportExport/${report_id}/comments.csv`}
type="text/csv"
>
{getDownloadFilename("comments", conversation)}
</a>
{` (may take up to several minutes)`}
</p>
<p style={{ fontFamily: "monospace" }}>
{`--Votes history: `}
<a
download={getDownloadFilename("votes", conversation)}
href={`//${window.location.hostname}/api/v3/reportExport/${report_id}/votes.csv`}
type="text/csv"
>
{getDownloadFilename("votes", conversation)}
</a>
{` (as event log)`}
</p>
<p style={{ fontFamily: "monospace" }}>
{`---Votes matrix: `}
<a
download={getDownloadFilename("participant-votes", conversation)}
href={`//${window.location.hostname}/api/v3/reportExport/${report_id}/participant-votes.csv`}
type="text/csv"
>
{getDownloadFilename("participant-votes", conversation)}
</a>
{` (as comments x participants matrix)`}
</p>
<p style={{ fontFamily: "monospace" }}>
{`Comment groups: `}
<a
download={getDownloadFilename("comment-groups", conversation)}
href={`//${window.location.hostname}/api/v3/reportExport/${report_id}/comment-groups.csv`}
type="text/csv"
>
{getDownloadFilename("comment-groups", conversation)}
</a>
</p>

<div style={{ marginTop: "3em" }}>
<p style={{ fontFamily: "monospace" }}>
Expand All @@ -56,15 +97,41 @@ const RawDataExport = ({ conversation, report_id }) => {
<p style={{ fontFamily: "monospace" }}>
{`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/summary.csv`}
</p>
{/* Add the rest of the curl commands here... */}
<p style={{ fontFamily: "monospace" }}>
{`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/comments.csv`}
</p>
<p style={{ fontFamily: "monospace" }}>
{`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/votes.csv`}
</p>
<p style={{ fontFamily: "monospace" }}>
{`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/participant-votes.csv`}
</p>
<p style={{ fontFamily: "monospace" }}>
{`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/comment-groups.csv`}
</p>
</div>

{doShowDataLicenseTerms && (
<div style={{ marginTop: "3em" }}>
<p style={{ fontFamily: "monospace" }}>
<strong>Attribution of Polis Data</strong>
</p>
{/* Add the rest of the license terms here... */}
<p style={{ fontFamily: "monospace" }}>
All Polis data is licensed under a Creative Commons Attribution 4.0 International
license: https://creativecommons.org/licenses/by/4.0/
</p>
<p style={{ fontFamily: "monospace" }}>--------------- BEGIN STATEMENT ---------------</p>
<p style={{ fontFamily: "monospace" }}>
{`Data was gathered using the Polis software (see: compdemocracy.org/polis and github.com/compdemocracy/polis) and is sub-licensed
under CC BY 4.0 with Attribution to The Computational Democracy Project. The data and more
information about how the data was collected can be found at the following link: ${window.location.href}`}
</p>
<p style={{ fontFamily: "monospace" }}>--------------- END STATEMENT---------------</p>
<p style={{ fontFamily: "monospace" }}>
For further information on best practices for Attribution of CC 4.0 licensed content
Please see:
https://wiki.creativecommons.org/wiki/Best_practices_for_attribution#Title.2C_Author.2C_Source.2C_License
</p>
</div>
)}
</div>
Expand Down

0 comments on commit 1066c15

Please sign in to comment.