-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ c5d43c9 🚀
- Loading branch information
1 parent
3ebdc53
commit 785ac1f
Showing
21 changed files
with
1,903 additions
and
113 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="generator" content="quarto-1.0.37"> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
|
||
|
||
<title>selector - how-to-get-questionnaire-json</title> | ||
<style> | ||
code{white-space: pre-wrap;} | ||
span.smallcaps{font-variant: small-caps;} | ||
span.underline{text-decoration: underline;} | ||
div.column{display: inline-block; vertical-align: top; width: 50%;} | ||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} | ||
ul.task-list{list-style: none;} | ||
</style> | ||
|
||
|
||
<script src="../site_libs/quarto-nav/quarto-nav.js"></script> | ||
<script src="../site_libs/quarto-nav/headroom.min.js"></script> | ||
<script src="../site_libs/clipboard/clipboard.min.js"></script> | ||
<script src="../site_libs/quarto-search/autocomplete.umd.js"></script> | ||
<script src="../site_libs/quarto-search/fuse.min.js"></script> | ||
<script src="../site_libs/quarto-search/quarto-search.js"></script> | ||
<meta name="quarto:offset" content="../"> | ||
<link href="../images/logo.png" rel="icon" type="image/png"> | ||
<script src="../site_libs/quarto-html/quarto.js"></script> | ||
<script src="../site_libs/quarto-html/popper.min.js"></script> | ||
<script src="../site_libs/quarto-html/tippy.umd.min.js"></script> | ||
<script src="../site_libs/quarto-html/anchor.min.js"></script> | ||
<link href="../site_libs/quarto-html/tippy.css" rel="stylesheet"> | ||
<link href="../site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles"> | ||
<script src="../site_libs/bootstrap/bootstrap.min.js"></script> | ||
<link href="../site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet"> | ||
<link href="../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light"> | ||
<script id="quarto-search-options" type="application/json">{ | ||
"location": "navbar", | ||
"copy-button": false, | ||
"collapse-after": 3, | ||
"panel-placement": "end", | ||
"type": "overlay", | ||
"limit": 20, | ||
"language": { | ||
"search-no-results-text": "No results", | ||
"search-matching-documents-text": "matching documents", | ||
"search-copy-link-title": "Copy link to search", | ||
"search-hide-matches-text": "Hide additional matches", | ||
"search-more-match-text": "more match in this document", | ||
"search-more-matches-text": "more matches in this document", | ||
"search-clear-button-title": "Clear", | ||
"search-detached-cancel-button-title": "Cancel", | ||
"search-submit-button-title": "Submit" | ||
} | ||
}</script> | ||
|
||
|
||
</head> | ||
|
||
<body class="nav-fixed"> | ||
|
||
<div id="quarto-search-results"></div> | ||
<header id="quarto-header" class="headroom fixed-top"> | ||
<nav class="navbar navbar-expand-lg navbar-dark "> | ||
<div class="navbar-container container-fluid"> | ||
<a class="navbar-brand" href="../index.html"> | ||
<img src="../images/logo.png" alt=""> | ||
<span class="navbar-title">selector</span> | ||
</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarCollapse"> | ||
<ul class="navbar-nav navbar-nav-scroll me-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="../reference/index.html">Reference</a> | ||
</li> | ||
<li class="nav-item dropdown "> | ||
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-articles" role="button" data-bs-toggle="dropdown" aria-expanded="false">Articles</a> | ||
<ul class="dropdown-menu" aria-labelledby="nav-menu-articles"> | ||
<li> | ||
<a class="dropdown-item" href="../articles/how-to-create-qnr-metadata-dta.html"> | ||
<span class="dropdown-text">how-to-create-qnr-metadata-dta</span></a> | ||
</li> | ||
<li> | ||
<a class="dropdown-item" href="../articles/how-to-get-questionnaire-json.html"> | ||
<span class="dropdown-text">how-to-get-questionnaire-json</span></a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<ul class="navbar-nav navbar-nav-scroll ms-auto"> | ||
<li class="nav-item compact"> | ||
<a class="nav-link" href="https://github.com/lsms-worldbank/selector"><i class="bi bi-github" role="img"> | ||
</i> | ||
</a> | ||
</li> | ||
</ul> | ||
<div id="quarto-search" class="" title="Search"></div> | ||
</div> <!-- /navcollapse --> | ||
</div> <!-- /container-fluid --> | ||
</nav> | ||
</header> | ||
<!-- content --> | ||
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar"> | ||
<!-- sidebar --> | ||
<!-- margin-sidebar --> | ||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar"> | ||
<nav id="TOC" role="doc-toc"> | ||
<h2 id="toc-title">On this page</h2> | ||
|
||
<ul> | ||
<li><a href="#how-to-get-the-questionnaire-json-file" id="toc-how-to-get-the-questionnaire-json-file" class="nav-link active" data-scroll-target="#how-to-get-the-questionnaire-json-file">How to get the questionnaire JSON file</a> | ||
<ul class="collapse"> | ||
<li><a href="#download-it-with-exported-data" id="toc-download-it-with-exported-data" class="nav-link" data-scroll-target="#download-it-with-exported-data">Download it with exported data</a></li> | ||
<li><a href="#download-it-with-the-api" id="toc-download-it-with-the-api" class="nav-link" data-scroll-target="#download-it-with-the-api">Download it with the API</a></li> | ||
</ul></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<!-- main --> | ||
<main class="content" id="quarto-document-content"> | ||
|
||
<header id="title-block-header" class="quarto-title-block default"> | ||
<div class="quarto-title"> | ||
<h1 class="title">how-to-get-questionnaire-json</h1> | ||
</div> | ||
|
||
|
||
|
||
<div class="quarto-title-meta"> | ||
|
||
|
||
|
||
</div> | ||
|
||
|
||
</header> | ||
|
||
<section id="how-to-get-the-questionnaire-json-file" class="level1"> | ||
<h1>How to get the questionnaire JSON file</h1> | ||
<p>There are two methods for getting the questionnaire JSON file:</p> | ||
<ol type="1"> | ||
<li><a href="#download-it-with-exported-data">Download it with exported data</a></li> | ||
<li><a href="#download-it-with-the-api">Download it with the API</a></li> | ||
</ol> | ||
<section id="download-it-with-exported-data" class="level2"> | ||
<h2 class="anchored" data-anchor-id="download-it-with-exported-data">Download it with exported data</h2> | ||
<p>When exporting data from Survey Solutions, select <code>Include meta information about questionnaire</code> under the <code>Questionnaire information</code> heading.</p> | ||
<p>Once data have been downloaded, unpack <code>content.zip</code> and find the <code>document.json</code> file. See more <a href="https://docs.mysurvey.solutions/headquarters/export/metadata-organization/">here</a> on how to find these files.</p> | ||
<p>This is the JSON file needed for the next step in the workflow.</p> | ||
</section> | ||
<section id="download-it-with-the-api" class="level2"> | ||
<h2 class="anchored" data-anchor-id="download-it-with-the-api">Download it with the API</h2> | ||
<p>Use some tool to fetch the JSON file from the Survey Solutions’ <code>GET /api/v1/questionnaires/{id}/{version}/document</code> endpoint.</p> | ||
<p>Consider using a function from an API client. <a href="https://arthur-shaw.github.io/susoapi/reference/get_questionnaire_document.html">Here</a> is one such function.</p> | ||
|
||
|
||
</section> | ||
</section> | ||
|
||
</main> <!-- /main --> | ||
<script id="quarto-html-after-body" type="application/javascript"> | ||
window.document.addEventListener("DOMContentLoaded", function (event) { | ||
const toggleBodyColorMode = (bsSheetEl) => { | ||
const mode = bsSheetEl.getAttribute("data-mode"); | ||
const bodyEl = window.document.querySelector("body"); | ||
if (mode === "dark") { | ||
bodyEl.classList.add("quarto-dark"); | ||
bodyEl.classList.remove("quarto-light"); | ||
} else { | ||
bodyEl.classList.add("quarto-light"); | ||
bodyEl.classList.remove("quarto-dark"); | ||
} | ||
} | ||
const toggleBodyColorPrimary = () => { | ||
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap"); | ||
if (bsSheetEl) { | ||
toggleBodyColorMode(bsSheetEl); | ||
} | ||
} | ||
toggleBodyColorPrimary(); | ||
const icon = ""; | ||
const anchorJS = new window.AnchorJS(); | ||
anchorJS.options = { | ||
placement: 'right', | ||
icon: icon | ||
}; | ||
anchorJS.add('.anchored'); | ||
const clipboard = new window.ClipboardJS('.code-copy-button', { | ||
target: function(trigger) { | ||
return trigger.previousElementSibling; | ||
} | ||
}); | ||
clipboard.on('success', function(e) { | ||
// button target | ||
const button = e.trigger; | ||
// don't keep focus | ||
button.blur(); | ||
// flash "checked" | ||
button.classList.add('code-copy-button-checked'); | ||
var currentTitle = button.getAttribute("title"); | ||
button.setAttribute("title", "Copied!"); | ||
setTimeout(function() { | ||
button.setAttribute("title", currentTitle); | ||
button.classList.remove('code-copy-button-checked'); | ||
}, 1000); | ||
// clear code selection | ||
e.clearSelection(); | ||
}); | ||
function tippyHover(el, contentFn) { | ||
const config = { | ||
allowHTML: true, | ||
content: contentFn, | ||
maxWidth: 500, | ||
delay: 100, | ||
arrow: false, | ||
appendTo: function(el) { | ||
return el.parentElement; | ||
}, | ||
interactive: true, | ||
interactiveBorder: 10, | ||
theme: 'quarto', | ||
placement: 'bottom-start' | ||
}; | ||
window.tippy(el, config); | ||
} | ||
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]'); | ||
for (var i=0; i<noterefs.length; i++) { | ||
const ref = noterefs[i]; | ||
tippyHover(ref, function() { | ||
let href = ref.getAttribute('href'); | ||
try { href = new URL(href).hash; } catch {} | ||
const id = href.replace(/^#\/?/, ""); | ||
const note = window.document.getElementById(id); | ||
return note.innerHTML; | ||
}); | ||
} | ||
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]'); | ||
for (var i=0; i<bibliorefs.length; i++) { | ||
const ref = bibliorefs[i]; | ||
const cites = ref.parentNode.getAttribute('data-cites').split(' '); | ||
tippyHover(ref, function() { | ||
var popup = window.document.createElement('div'); | ||
cites.forEach(function(cite) { | ||
var citeDiv = window.document.createElement('div'); | ||
citeDiv.classList.add('hanging-indent'); | ||
citeDiv.classList.add('csl-entry'); | ||
var biblioDiv = window.document.getElementById('ref-' + cite); | ||
if (biblioDiv) { | ||
citeDiv.innerHTML = biblioDiv.innerHTML; | ||
} | ||
popup.appendChild(citeDiv); | ||
}); | ||
return popup.innerHTML; | ||
}); | ||
} | ||
}); | ||
</script> | ||
</div> <!-- /content --> | ||
|
||
|
||
|
||
</body></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.