MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / loadSourceOptions

Function loadSourceOptions

deployments/desktop/static/app.js:554–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552}
553
554async function loadSourceOptions() {
555 if (state.sourceOptionsLoaded) return;
556 const data = await api("/api/source-options");
557 renderChoiceList("arxivCategories", data.arxiv_categories || [], "arxiv");
558 renderChoiceList("conferenceSources", data.conferences || [], "conference");
559 renderChoiceList("journalSources", data.journals || [], "journal");
560 state.sourceOptionsLoaded = true;
561}
562
563function renderChoiceList(targetId, items, groupName) {
564 const target = $(targetId);

Callers 2

runDailyFunction · 0.70
bootFunction · 0.70

Calls 2

apiFunction · 0.70
renderChoiceListFunction · 0.70

Tested by

no test coverage detected