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

Function formatSourceLabel

deployments/desktop/static/app.js:868–879  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

866}
867
868function formatSourceLabel(value) {
869 const text = String(value || "").trim();
870 if (!text) return "";
871 const normalized = text.toLowerCase();
872 const labels = {
873 arxiv: "arXiv",
874 openreview: "OpenReview",
875 journal: "Journal",
876 local_pdf: "Local PDF",
877 };
878 return labels[normalized] || text;
879}
880
881function categoryBadgeClass(value) {
882 const normalized = String(value || "").trim().toLowerCase();

Callers 1

renderPushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected