//version compatibility: 2.0.0-SNAPSHOT print("here"); function dropDB(){ print("\n\n Drop DB\n\n") db.dropDatabase() } function createCollections(){ print("\n\n Create Collections \n\n") db.createCollection("community") db.createCollection("layout") db.createCollection("divHelpContent") db.createCollection("divId") db.createCollection("entity") db.createCollection("page") db.createCollection("pageHelpContent") db.createCollection("statistics") db.createCollection("communitySubscribers") db.createCollection("htmlPageContent") db.createCollection("notifications") db.createCollection("subscriber") db.createCollection("curator") } function initializeEntitiesPages(){ print("\n\n Initialize entities and pages\n\n") db.entity.save({"pid" : "publication", "name" : "Publication"}) db.entity.save({"pid" : "dataset", "name" : "Research Data"}) db.entity.save({"pid" : "software", "name" : "Software"}) db.entity.save({"pid" : "orp", "name" : "Other Research Products"}); db.entity.save({"pid" : "project", "name" : "Project"}) db.entity.save({"pid" : "organization", "name" : "Organization"}) db.entity.save({"pid" : "datasource", "name" : "Content Provider"}) publicationId = db.entity.find( { pid: "publication" }).map( function(entity) { return entity._id.str; } ).toString() datasetId = db.entity.find( { pid: "dataset" }).map( function(entity) { return entity._id.str; } ).toString() softwareId = db.entity.find( { pid: "software" }).map( function(entity) { return entity._id.str; } ).toString() orpId = db.entity.find( { pid: "orp" }).map( function(entity) { return entity._id.str; } ).toString(); projectId = db.entity.find( { pid: "project" }).map( function(entity) { return entity._id.str; } ).toString() organizationId = db.entity.find( { pid: "organization" }).map( function(entity) { return entity._id.str; } ).toString() datasourceId = db.entity.find( { pid: "datasource" }).map( function(entity) { return entity._id.str; } ).toString() // Other Pages db.page.save({"name" : "Home", "route" : "/", "type" : "other", "connect":true,"communities":false,"openaire":true,"entities" : [], "top":true,"bottom":true,"right":true,"left":true}); // Other Pages for Connect db.page.save({"name" : "About - Learn How", "route" : "/about/learn-how", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "About - Learn in depth", "route" : "/about/learn-in-depth", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "About - FAQs", "route" : "/about/faq", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Contact us", "route" : "/contact-us", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":false,"bottom":false,"right":true,"left":false}); db.page.save({"name" : "Content Policy", "route" : "/content", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Curators", "route" : "/curators", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Organizations", "route" : "/organizations", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Invite", "route" : "/invite", "type" : "other", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":true,"right":false,"left":false}); db.page.save({"name" : "My Communities", "route": "/myCommunities", "type": "other", "connect": true, "communities": false, "openaire": false, "entities": [], "top": false, "bottom": false, "right": false, "left": false }); // Testing Page for help contents (Connect) db.page.save({"name" : "Helper Test", "route" : "/helper-test", "type" : "other", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); // Other Pages for Explore db.page.save({"name" : "Mail Preferences", "route" : "/mail-preferences", "type" : "other", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":false,"bottom":false,"right":false,"left":false}); // Landing Pages db.page.save({"name" : "Publication Landing", "route" : "/search/publication", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [publicationId],"top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Research Data Landing", "route" : "/search/dataset", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [datasetId],"top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Software Landing", "route" : "/search/software", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [softwareId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Other Research Products Landing", "route" : "/search/other", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [orpId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Project Landing", "route" : "/search/project", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Organization Landing", "route" : "/search/organization", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [organizationId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Content Provider Landing", "route" : "/search/dataprovider", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Project Report", "route" : "/project-report", "type" : "landing", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false}); // Search Pages db.page.save({"name" : "Search Find", "route" : "/search/find", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":false,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Communities", "route" : "/search/find/communities", "type" : "search", "connect":true,"communities":false,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Research Outcomes", "route" : "/search/find/research-outcomes", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [publicationId, datasetId, softwareId, orpId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Projects", "route" : "/search/find/projects", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Organizations", "route" : "/search/find/organizations", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [organizationId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Content Providers", "route" : "/search/find/dataproviders", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false}); // Advanced Search Pages db.page.save({"name" : "Advanced Search Research Outcomes", "route" : "/search/advanced/research-outcomes", "type" : "search", "connect":false,"communities":true,"openaire":true,"entities" : [publicationId, datasetId, softwareId, orpId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Advanced Search Projects", "route" : "/search/advanced/projects", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [projectId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Advanced Search Organizations", "route" : "/search/advanced/organizations", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [organizationId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Advanced Search Content Providers", "route" : "/search/advanced/dataproviders", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false}); // Search Content Providers Pages db.page.save({"name" : "Search Journals", "route" : "/search/journals", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Entity Registries", "route" : "/search/entity-registries", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Compatible Content Providers", "route" : "/search/content-providers", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Journals - Table view", "route" : "/search/journals-table", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":false,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Entity Registries - Table view", "route" : "/search/entity-registries-table", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":false,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Search Compatible Content Providers -Table view", "route" : "/search/content-providers-table", "type" : "search", "connect":false,"communities":false,"openaire":true,"entities" : [datasourceId], "top":false,"bottom":false,"right":false,"left":false}); // Deposit Pages for Connect db.page.save({"name" : "Share in Zenodo", "route" : "/participate/deposit/zenodo", "type" : "share", "connect":false,"communities":true,"openaire":false,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); db.page.save({"name" : "Deposit your research - Learn How", "route" : "/participate/deposit/learn-how", "type" : "share", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":false,"bottom":true,"right":false,"left":false}); db.page.save({"name" : "Deposit Browse & Search repositories", "route" : "/participate/deposit/search", "type" : "share", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":true,"bottom":false,"right":false,"left":false}); // Linking Pages db.page.save({"name" : "Link", "route" : "/participate/claim", "type" : "link", "connect":false,"communities":true,"openaire":true,"entities" : [projectId], "top":false,"bottom":true,"right":false,"left":false}); db.page.save({"name" : "Direct Link", "route" : "/participate/direct-claim", "type" : "link", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":false,"bottom":true,"right":false,"left":false}); db.page.save({"name" : "My claims", "route" : "/myclaims", "type" : "link", "connect":false,"communities":true,"openaire":true,"entities" : [], "top":true,"bottom":true,"right":true,"left":false}); db.page.save({"name" : "Administrator claims", "route" : "/claims", "type" : "link", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":true,"bottom":true,"right":true,"left":false}); db.page.save({"name" : "Claims Project Manager", "route" : "/claims-project-manager", "type" : "link", "connect":false,"communities":false,"openaire":true,"entities" : [], "top":false,"bottom":false,"right":false,"left":false}); link = db.page.find( { route: "/participate/claim" }).map( function(page) { return page._id.str; } ).toString() directLink = db.page.find( { route: "/participate/direct-claim" }).map( function(page) { return page._id.str; } ).toString() } function addHelpTextsInHomePage_connect() { communityID = db.community.find( { pid: "connect" }).map( function(community) { return community._id.str; } ).toString(); home_page = db.page.find( { route: "/" }).map( function(page) { return page._id.str; } ).toString(); bottom_1_content = "
Home news section
"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "bottom", "order" : 1, "content" : bottom_1_content, "isActive" : false, "isPriorTo" : false }); bottom_2_content = "
\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
Let us help you develop a collaborative Open Science Gateway for your community. It is fast. It is reliable.
\n" + "
\n" + "\n" + "
Get in touch with our team to find out how.
\n" + "\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "bottom", "order" : 2, "content" : bottom_2_content, "isActive" : true, "isPriorTo" : false }); left_content = "
\n" + "
\n" + "
 
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
Build an Open Research Gateway for your Community
\n" + "\n" + "

Turn Open Science into practice

\n" + "\n" + "
Share and link your research results.
\n" + "Across organizations, across borders.
\n" + "Customized to your needs.
\n" + "
\n" + "\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "left", "order" : 1, "content" : left_content, "isActive" : true, "isPriorTo" : false }); top_1_content = "
\n" + "
\n" + "
Open and FAIR science is our mission
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
A Virtual Research Environment
\n" + "\n" + "
An overlay platform making it easy to share, link, disseminate and monitor all your publications, data, software, methods. In one place.
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
Features
\n" + "\n" + "
    \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tAccess to OpenAIRE resources
  • \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tModerated, front-end linking
  • \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tCross-platform search
  • \n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
Open Science in action
\n" + "\n" + "
A time-saving bundle of services for researchers to effortlessly practice open science. An integral part of the European Open Science Cloud.
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
Features
\n" + "\n" + "
    \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tUse of OpenAIRE Guidelines
  • \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tDOIs via Zenodo
  • \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tEOSC Single Sign-On
  • \n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
Customized to your needs
\n" + "\n" + "
A Science Gateway with your own brand, rules for aggregation, text & data mining, and presentation. Run by you via a simple, yet powerful backend administration tool.
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
Features
\n" + "\n" + "
    \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tAccess control
  • \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tAnalytics: rich set of indicators
  • \n" + "\t
  • \n" + "\t

    \n" + "\t
    \n" + "\tLook & feel to match your brand
  • \n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "top", "order" : 1, "content" : top_1_content, "isActive" : true, "isPriorTo" : false }); top_2_content = "
\n" + "
\n" + "
\n" + "
\n" + "
    \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Find a repository to deposit your research outcome
    \n" + "\n" + "\t
    This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.
    \n" + "\n" + "\t\n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Link your research output with your community, funding, and other research products
    \n" + "\n" + "\t
    This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.
    \n" + "\n" + "\t\n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    View community's overview at a glance
    \n" + "\n" + "\t
    This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.
    \n" + "\n" + "\t\n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Search & browse your community's research products.
    \n" + "\n" + "\t
    This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.
    \n" + "\n" + "\t\n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    View statistics for your community's research products.
    \n" + "\n" + "\t
    This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box.
    \n" + "\n" + "\t\n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "
\n" + "\n" + "
    \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "top", "order" : 2, "content" : top_2_content, "isActive" : true, "isPriorTo" : false }); } function addHelpTextsInHomePage_explore() { communityID = db.community.find( { pid: "openaire" }).map( function(community) { return community._id.str; } ).toString(); home_page = db.page.find( { route: "/" }).map( function(page) { return page._id.str; } ).toString(); bottom_1_content = "
\n" + "
\n" + "
\n" + "
\n" + "
Contribute to improve the
\n" + "OpenAIRE Research Graph
\n" + "\n" + "

The graph is currently under pre-release consultation process which will last two months. Help us making the graph ready for its 1st production release by providing your feedback!

\n" + "\n" + "

You can provide feedback via Trello or via opening a ticket in the OpenAIRE Helpdesk under the category OpenAIRE Services with the subject "OpenAIRE Research Graph: ”. The graph can be explore and tested via this portal or via data dumps made available in Zenodo.org.

\n" + "\n" + "

Find information about the OpenAIRE Research Graph, how to test it and contribute to improving it on our blog. You can also write to Paolo Manghi, the OpenAIRE Technical Director, for additional details.

\n" + "\n" + "\n" + "
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "bottom", "order" : 1, "content" : bottom_1_content, "isActive" : true, "isPriorTo" : false }); bottom_2_content = "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\"Share\"\n" + "
Deposit your research
\n" + "\n" + "
\n" + "
Deposit in a repository of your choice.
\n" + "Select an OpenAIRE compatible
\n" + "repository (2.0 +) so that your research is linked to your funding information. Use Zenodo, a catch-all repository hosted by CERN to deposit all your research results (publications, data, software, etc.)
\n" + "
\n" + " Deposit
\n" + "
\n" + "\n" + "
\n" + "
\"Link\"\n" + "
Link your work
\n" + "\n" + "
\n" + "
Connect all your research.
\n" + "If you can't find your research results in OpenAIRE, don't worry! Use our Link Out service , that reaches out to many
\n" + "external sources via APIs, to connect
\n" + "your research results and claim them to your project.
\n" + "
\n" + " Link
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "bottom", "order" : 2, "content" : bottom_2_content, "isActive" : true, "isPriorTo" : false }); left_content = "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\"\"\n" + "

Have more questions?

\n" + "
\n" + "
\n" + "\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "left", "order" : 1, "content" : left_content, "isActive" : true, "isPriorTo" : false }); right_content = "
Extracted Metadata Combined.
\n" + "\n" + "

The OpenAIRE Research Graph is one of the largest open scholarly record collections worldwide, key in fostering Open Science and establishing its practices in the daily research activities. Conceived as a public and transparent good, populated out of data sources trusted by scientists, the Graph aims at bringing discovery, monitoring, and assessment of science back in the hands of the scientific community.
\n" + "
\n" + "Imagine a vast collection of research products all linked together, contextualised and openly available. For the past ten years OpenAIRE has been working to gather this valuable record. OpenAIRE is pleased to announce the beta release of its Research Graph, a massive collection of metadata and links between scientific products such as articles, datasets, software, and other research products, entities like organisations, funders, funding streams, projects, communities, and data sources.
\n" + "
\n" + "As of today, the OpenAIRE Research Graph aggregates around 450Mi metadata records with links collecting from 10,000 data sources trusted by scientists! After cleaning, deduplication, and fine-grained classification processes, they narrow down to ~100Mi publications, ~8Mi datasets, ~200K software research products, 8Mi other products linked together with semantic relations.
\n" + "
\n" + "More than 10Mi full-texts of Open Access publications are mined by algorithms to enrich metadata records with additional properties and links among research products, funders, projects, communities, and organizations. Thanks to the mining algorithm, the graph is completed with 480Mi semantic relations.

\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "right", "order" : 1, "content" : right_content, "isActive" : true, "isPriorTo" : false }); top_content = "
Give us feedback
\n"; db.pageHelpContent.save({ "page" : home_page, "community" : communityID, "placement" : "top", "order" : 1, "content" : top_content, "isActive" : true, "isPriorTo" : false }); } function addHelpTextsInAboutLearnHowPage() { communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString(); about_page = db.page.find( { route: "/about/learn-how" }).map( function(page) { return page._id.str; } ).toString() top_1_content = "
\n" + "
\n" + "
\n" + "

Learn the process

\n" + "\n" + "
Build a Gateway to your community's open and linked research outcomes. Customized to your needs.
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
1. Understanding your needs
\n" + "\n" + "
First, we learn about your requirements and challenges. We help you understand Open Science practices within EOSC and together we’ll talk about how OpenAIRE RCD fits as a solution.
\n" + "
\n" + "\n" + "
\n" + "
4. Roll out the service
\n" + "\n" + "
We jointly roll out your new Community Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.
\n" + "
\n" + "\n" + "
\n" + "
2. Develop a pilot
\n" + "\n" + "
How do you work today, and how would you like to work tomorrow? We translate your needs into rules and processes and we configure operational OpenAIRE services. By the end of this phase, we’ll have defined the basic configuration of your Community Gateway.
\n" + "
\n" + "
\n" + "\n" + "
\n" + "\n" + "
\n" + "
\n" + "
2. Develop a pilot
\n" + "\n" + "
How do you work today, and how would you like to work tomorrow? We translate your needs into rules and processes and we configure operational OpenAIRE services. By the end of this phase, we’ll have defined the basic configuration of your Community Gateway.
\n" + "
\n" + "\n" + "
\n" + "
4. Roll out the service
\n" + "\n" + "
We jointly roll out your new Community Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.
\n" + "
\n" + "\n" + "
\n" + "
3. Test and Validate
\n" + "\n" + "
You validate and test your new Community Gateway (portal) with your experts and community to ensure all workflows are in place and quality of data meets your standards. If needed, we work together in another iteration to further refine and adapt to your needs.
\n" + "
\n" + "\n" + "
\n" + "
4. Roll out the service
\n" + "\n" + "
We jointly roll out your new Community Gateway. You take over the business operations and start engaging your researchers, we take care of the smooth operation of the e-service.
\n" + "
\n" + "
\n" + "
\n" + "\n" + "\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page": about_page, "community": communityID, "placement": "top", "order": 1, "content": top_1_content, "isActive": true, "isPriorTo": false }); top_2_content = "
\n" + "
\n" + "
\n" + "
\n" + "
    \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Profile
    \n" + "\n" + "\t
    Edit community information, change logo url, add community managers or organizations related to community.
    \n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Content
    \n" + "\n" + "\t
    Manage projects, content providers, subjects and zenodo communities that are related to the research community.
    \n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Statistics & Charts
    \n" + "\n" + "\t
    Manage statistical numbers & charts that will be displayed in the community overview and graph analysis views.
    \n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Links
    \n" + "\n" + "\t
    Manage user claims related to the research community.
    \n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Help texts
    \n" + "\n" + "\t
    Add or edit help text in research community pages.
    \n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "\t
  • \n" + "\t
    \n" + "\t
    \n" + "\n" + "\t
    \n" + "\t
    \n" + "\t
    Users
    \n" + "\n" + "\t
    Invite more users to subscribe, manage community subscribers, your personal info and notification settings.
    \n" + "\t
    \n" + "\t
    \n" + "\t
    \n" + "\t
  • \n" + "
\n" + "\n" + "
    \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "\t
  •  
  • \n" + "
\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page": about_page, "community": communityID, "placement": "top", "order": 2, "content": top_2_content, "isActive": true, "isPriorTo": false }); top_3_content = "
\n" + "
\n" + "
\n" + "
\n" + "
We look forward to working together and helping you unlock the full potential of your research community through open science.
\n" + "\n" + "
Get in touch with our team to find out how.
\n" + "\n" + "\n" + "
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page": about_page, "community": communityID, "placement": "top", "order": 3, "content": top_3_content, "isActive": true, "isPriorTo": false }); top_4_content = "
\n" + "
Frequently Asked Questions
\n" + "\n" + "\n" + "
\n"; db.pageHelpContent.save({ "page": about_page, "community": communityID, "placement": "top", "order": 4, "content": top_4_content, "isActive": true, "isPriorTo": false }); } function addHelpTextsInAboutLearnInDepthPage() { communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString(); aboutLearnInDepth_page = db.page.find({route: "/about/learn-in-depth"}).map(function (page) { return page._id.str; }).toString(); top_1_content = "
\n" + "
\n" + "
\n" + "
\n" + "

Let’s set up a Gateway for your Community Together

\n" + "\n" + "
\n" + "
You don’t have to go alone.
\n" + "\n" + "
We work with you in 4 collaborative steps to identify your needs, putting in practice our expertise on open science so you get the most out of OpenAIRE’s operational services.
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page": aboutLearnInDepth_page, "community": communityID, "placement": "top", "order": 1, "content": top_1_content, "isActive": true, "isPriorTo": false }); top_2_content = "
\n" + "\n" + "\n" + "
\n" + "
\n" + "\n" + "
\n" + "
1. Analyse your needs
\n" + "\n" + "
Identify the scope and goals. Understand open science practices within EOSC and the OpenAIRE services
\n" + "\n" + "

In this stage, you get to talk to the OpenAIRE team. Share your expectations with us and let us give you all the details about the operational OpenAIRE services, which will be integrated into the Gateway for your community.

\n" + "\n" + "

Here are the most important questions that the OpenAIRE team will ask you, in order to understand your scope and goals:

\n" + "\n" + "
    \n" + "\t
  • Do you want a gateway, where researchers can have access to all research products of a discipline? Do you want a gateway that gathers any research outcome, produced thanks to the funding and services of a given research infrastructure?
  • \n" + "\t
  • Is your community (in)formally organized in sub-communities? Would you like to browse research products and get statistics also for these sub-communities? For example, the European Grid Infrastructure (EGI) features “virtual organizations” that represent discipline-specific communities and/or specific research projects. The research infrastructure DARIAH, on the other hand, is organised in national nodes (e.g. DARIAH-IT, DARIAH-DE).
  • \n" + "\t
  • How can the OpenAIRE team identify the research products of your community, among all those available in the OpenAIRE Graph? Through a series of steps: set of keywords, acknowledgment statements, set of projects, set of repositories, etc. This can be partial and provisional information that will serve as a starting point to the OpenAIRE team. You will be able to refine and update this information, in the second phase “Develop a pilot”.
  • \n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "\n" + "
\n" + "
2. Develop a pilot
\n" + "\n" + "
We translate your needs into rules and processes and we configure operational OpenAIRE services.
\n" + "\n" + "

Based on the information gathered in phase 1 “Analyse your needs”, the OpenAIRE team will set up a pilot Gateway. We will configure the OpenAIRE mining algorithms to identify research products of the OpenAIRE Graph that are relevant to your community. Those, together with some basic statistics, will be available in the pilot version of the Community Gateway that will be deployed on the OpenAIRE BETA infrastructure.

\n" + "\n" + "

The OpenAIRE team will give you a demo of the Community Gateway, with details on how to refine and update the configuration of the Community Gateway, both in terms of criteria for including research products and in terms of logo and visible portal pages.

\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "\n" + "
\n" + "
3. Test and Validate
\n" + "\n" + "
You validate and test your new Community Gateway (portal). If needed, we further refine and adapt to your needs
\n" + "\n" + "

Upon the completion of phase 2, take the time you need to test all its features, from search and browse for research products, to addition/removal of statistics from the portal. You can report any issue you might find and ask questions directly to the dedicated OpenAIRE team, via a specially designed collaboration tool.

\n" + "\n" + "

Typically, this phase takes some months, as you will have to go through certain procedures. Change the configuration of the criteria to include research products, wait for the new configuration to be applied on the OpenAIRE graph and validate the results, before you actually decide that the coverage of research products for your community is adequate.

\n" + "\n" + "

For some communities, the OpenAIRE team may also be able to implement dedicated mining algorithms (e.g. to find acknowledgement statements to your community/infrastructure in the full-texts of research articles) that may require several rounds of application, validation, and fine-tuning, before it reaches a high precision and recall. Your feedback is very important to minimize the effort and time needed for this process to complete.

\n" + "\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "\n" + "
\n" + "
4. Roll out the service
\n" + "\n" + "
We jointly roll out your new portal. You take over the business operations and start engaging your researchers
\n" + "\n" + "

Here we are: the coverage of research products is good, interesting statistics and charts have been selected, and the portal pages available for end-users are ready. We can roll out the Community Gateway and make it available to all the researchers of the community!

\n" + "\n" + "

You, as a Community manager, become the main “promoter” of the Community Gateway. Engage the researchers of your community and, when applicable, inform the managers of the research infrastructure about the availability of tools for impact monitoring.

\n" + "\n" + "

Remember that you will still be able to change the configuration of the Community Gateway in order to address any issue that may arise and to follow the evolution of the community (e.g. a new project or a new content provider that was not previously available in OpenAIRE).

\n" + "\n" + "

Remember that you don’t have to go alone: the dedicated issue tracker you used in the “Test and Validate” phase is always available for you to contact the OpenAIRE team and ask for support.

\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page": aboutLearnInDepth_page, "community": communityID, "placement": "top", "order": 2, "content": top_2_content, "isActive": true, "isPriorTo": false }); top_3_content = "
\n" + "
\n" + "
\n" + "
\n" + "\n" + "
\n" + "
\n" + "
Let us help you develop a collaborative Open Science Gateway for your community. It is fast. It is reliable.
\n" + "
\n" + "\n" + "
Get in touch with our team to find out how.
\n" + "\n" + "\n" + "
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page": aboutLearnInDepth_page, "community": communityID, "placement": "top", "order": 3, "content": top_3_content, "isActive": true, "isPriorTo": false }); } function addHelpTextsInContactUsPage() { communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString(); contactUs_page = db.page.find({route: "/contact-us"}).map(function (page) { return page._id.str; }).toString(); right_content = "
OpenAIRE gives you the virtual environment and services designed for your community to:
\n" + "\n" + "\n"; db.pageHelpContent.save({ "page": contactUs_page, "community": communityID, "placement": "right", "order": 1, "content": right_content, "isActive": true, "isPriorTo": false }); } function addHelpTextsInContentPolicyPage() { print("add help contents in Content Policy Page for community connect\n"); communityID = db.community.find({pid: "connect"}).map(function (community) { return community._id.str; }).toString(); content_page = db.page.find({route: "/content"}).map(function (page) { return page._id.str; }).toString(); top_content = "
\n" + "
\n" + "
Content policy
\n" + "\n" + "
\n" + "

OpenAIRE builds an open scholarly graph of research products (publications, datasets, software and other types of research products), linked to each other and to fundings, projects and organizations. The information used to build the graph is collected from the OpenAIRE network of content providers and is inferred by OpenAIRE algorithms. OpenAIRE algorithms are capable of detecting duplicates and mining information from the full-texts of Open Access publications. For more details about the construction of the graph, please check here.

\n" + "\n" + "

Thanks to the Research Community Dashboard (RCD), researchers have a dedicated view of the OpenAIRE graph where only the research products relevant to the community are searchable and browsable.
\n" + "There are several ways to decide if a research product is relevant to a given community:

\n" + "\n" + "

Links: Users can "claim" that a research result is relevant to a community via the Link functionality of the Research community dashboard.
\n" + "For more details about linking functionality, please check here.

\n" + "\n" + "
OpenAIRE algorithms: Community managers can configure the OpenAIRE algorithms, in order to automatically assign research products to a community based on:\n" + "\n" + "
\n" + "
    \n" + "\t
  • The content providers they have been collected from.
    \n" + "\tExamples: all research products collected from "NeuroVault" are relevant to the Neuroinformatics community; all research products collected from the LINDAT/CLARIN repository are relevant to the CLARIN research initiative.
  • \n" + "\t
  • The projects they have been produced in.
    \n" + "\tExamples: all research products of the project "Tara Mediterranee" are relevant to the European Marine Science community; all research products of the project "ARIADNE" are relevant to the Digital Humanities and Cultural Heritage community.
  • \n" + "\t
  • The subjects and keywords (only for RCD serving research communities).
    \n" + "\tExamples: all research products having "SDG11 - Sustainable cities and communities" among the subjects are relevant to the Greek Sustainable Development Solutions Network community; all research products with subject "agriculture" are relevant to the AgInfra community
  • \n" + "
\n" + "
\n" + "
\n" + "\n" + "
Acknowledgement statements: Acknowledgement statements found in full-texts (only for RCDs serving research infrastructures/initiatives)
\n" + "
\n" + "
\n" + "
\n"; db.pageHelpContent.save({ "page": content_page, "community": communityID, "placement": "top", "order": 1, "content": top_content, "isActive": true, "isPriorTo": false }); } function createCommunity(name,communityPid){ var communitySaved = db.community.find( { pid: communityPid }).map( function(community) { return community._id.str; } ).toString() if(communitySaved){ print("\n\n Community \'"+name +"\' exists\n\n"); return ; } print("\n\n Create community \n\n"); print("Name:"+name); print("communityPid:"+communityPid); // Other Pages home = db.page.find( { route: "/" }).map( function(page) { return page._id.str; } ).toString() // Other Pages for Connect about = db.page.find( { route: "/about/learn-how" }).map( function(page) { return page._id.str; } ).toString() aboutLearnInDepth = db.page.find( { route: "/about/learn-in-depth" }).map( function(page) { return page._id.str; } ).toString() contactUs = db.page.find( { route: "/contact-us" }).map( function(page) { return page._id.str; } ).toString() contentPolicy = db.page.find( { route: "/content" }).map( function(page) { return page._id.str; } ).toString() curators = db.page.find( { route: "/curators" }).map( function(page) { return page._id.str; } ).toString() organizations = db.page.find( { route: "/organizations" }).map( function(page) { return page._id.str; } ).toString() invite = db.page.find( { route: "/invite" }).map( function(page) { return page._id.str; } ).toString() myCommunities = db.page.find( { route: "/myCommunities" }).map( function(page) { return page._id.str; } ).toString(); // Testing Page for help contents (Connect) helperTest = db.page.find( { route: "/helper-test" }).map( function(page) { return page._id.str; } ).toString() // Other Pages for Explore mailPreferences = db.page.find( { route: "/mail-preferences" }).map( function(page) { return page._id.str; } ).toString() // Landing Pages publicationLanding = db.page.find( { route: "/search/publication" }).map( function(page) { return page._id.str; } ).toString() datasetLanding = db.page.find( { route: "/search/dataset" }).map( function(page) { return page._id.str; } ).toString() softwareLanding = db.page.find( { route: "/search/software" }).map( function(page) { return page._id.str; } ).toString() orpLanding = db.page.find( { route: "/search/other" }).map( function(page) { return page._id.str; } ).toString(); projectLanding = db.page.find( { route: "/search/project" }).map( function(page) { return page._id.str; } ).toString() organizationLanding = db.page.find( { route: "/search/organization" }).map( function(page) { return page._id.str; } ).toString() dataproviderLanding = db.page.find( { route: "/search/dataprovider" }).map( function(page) { return page._id.str; } ).toString() projectReport = db.page.find( { route: "/project-report" }).map( function(page) { return page._id.str; } ).toString() // Search Pages searchFind = db.page.find( { route: "/search/find" }).map( function(page) { return page._id.str; } ).toString() searchCommunities = db.page.find( { route: "/search/find/communities" }).map( function(page) { return page._id.str; } ).toString() searchResearchOutcomes = db.page.find( { route: "/search/find/research-outcomes" }).map( function(page) { return page._id.str; } ).toString() searchProject = db.page.find( { route: "/search/find/projects" }).map( function(page) { return page._id.str; } ).toString() searchOrganization = db.page.find( { route: "/search/find/organizations" }).map( function(page) { return page._id.str; } ).toString() searchDataprovider = db.page.find( { route: "/search/find/dataproviders" }).map( function(page) { return page._id.str; } ).toString() // Advanced Search Pages advancedSearchResearchOutcomes = db.page.find( { route: "/search/advanced/research-outcomes" }).map( function(page) { return page._id.str; } ).toString() advancedSearchProject = db.page.find( { route: "/search/advanced/projects" }).map( function(page) { return page._id.str; } ).toString() advancedSearchOrganization = db.page.find( { route: "/search/advanced/organizations" }).map( function(page) { return page._id.str; } ).toString() advancedSearchDataprovider = db.page.find( { route: "/search/advanced/dataproviders" }).map( function(page) { return page._id.str; } ).toString() // Search Content Providers Pages searchJournals = db.page.find( { route: "/search/journals" }).map( function(page) { return page._id.str; } ).toString() searchEntityRegistries = db.page.find( { route: "/search/entity-registries" }).map( function(page) { return page._id.str; } ).toString() searchContentProviders = db.page.find( { route: "/search/content-providers" }).map( function(page) { return page._id.str; } ).toString() searchJournalsTable = db.page.find( { route: "/search/journals-table" }).map( function(page) { return page._id.str; } ).toString() searchEntityRegistriesTable = db.page.find( { route: "/search/entity-registries-table" }).map( function(page) { return page._id.str; } ).toString() searchContentProvidersTable = db.page.find( { route: "/search/content-providers-table" }).map( function(page) { return page._id.str; } ).toString() // Deposit Pages shareInZenodo = db.page.find( { route: "/participate/deposit/zenodo" }).map( function(page) { return page._id.str; } ).toString(); depositLearnHow = db.page.find( { route: "/participate/deposit/learn-how" }).map( function(page) { return page._id.str; } ).toString(); depositSearch = db.page.find( { route: "/participate/deposit/search" }).map( function(page) { return page._id.str; } ).toString(); // Linking Pages link = db.page.find( { route: "/participate/claim" }).map( function(page) { return page._id.str; } ).toString() directLink = db.page.find( { route: "/participate/direct-claim" }).map( function(page) { return page._id.str; } ).toString() myClaims = db.page.find( { route: "/myclaims" }).map( function(page) { return page._id.str; } ).toString() administratorClaims = db.page.find( { route: "/claims" }).map( function(page) { return page._id.str; } ).toString() claimsProjectManager = db.page.find( { route: "/claims-project-manager" }).map( function(page) { return page._id.str; } ).toString() //monitor = db.page.find( { route: "/monitor" }).map( function(page) { return page._id.str; } ).toString() var community_pages = {}; community_pages[home] = true; community_pages[about] = true; community_pages[aboutLearnInDepth] = true; community_pages[contactUs] = true; community_pages[contentPolicy] = true; community_pages[myCommunities] = true; community_pages[curators] = false; community_pages[organizations] = false; community_pages[invite] = true; community_pages[helperTest] = true; community_pages[mailPreferences] = true; community_pages[publicationLanding] = true; community_pages[datasetLanding] = true; community_pages[softwareLanding] = true; community_pages[orpLanding] = true; community_pages[projectLanding] = true; community_pages[organizationLanding] = true; community_pages[dataproviderLanding] = true; community_pages[projectReport] = true; community_pages[searchFind] = true; community_pages[searchCommunities] = true; community_pages[searchResearchOutcomes] = true; community_pages[searchProject] = true; community_pages[searchOrganization] = true; community_pages[searchDataprovider] = true; community_pages[advancedSearchResearchOutcomes] = true; community_pages[advancedSearchProject] = true; community_pages[advancedSearchOrganization] = true; community_pages[advancedSearchDataprovider] = true; community_pages[searchJournals] = true; community_pages[searchEntityRegistries] = true; community_pages[searchContentProviders] = true; community_pages[searchJournalsTable] = true; community_pages[searchEntityRegistriesTable] = true; community_pages[searchContentProvidersTable] = true; community_pages[shareInZenodo] = true; community_pages[depositLearnHow] = true; community_pages[depositSearch] = true; community_pages[link] = true; community_pages[directLink] = true; community_pages[myClaims] = true; community_pages[administratorClaims] = true; community_pages[claimsProjectManager] = true; // community_pages[monitor] = true; publicationId = db.entity.find( { pid: "publication" }).map( function(entity) { return entity._id.str; } ).toString() datasetId = db.entity.find( { pid: "dataset" }).map( function(entity) { return entity._id.str; } ).toString() softwareId = db.entity.find( { pid: "software" }).map( function(entity) { return entity._id.str; } ).toString() orpId = db.entity.find( { pid: "orp" }).map( function(entity) { return entity._id.str; } ).toString(); projectId = db.entity.find( { pid: "project" }).map( function(entity) { return entity._id.str; } ).toString() organizationId = db.entity.find( { pid: "organization" }).map( function(entity) { return entity._id.str; } ).toString() datasourceId = db.entity.find( { pid: "datasource" }).map( function(entity) { return entity._id.str; } ).toString(); print("Pages:"+publicationId); var community_entities = {} community_entities[publicationId] = true; community_entities[datasetId] = true; community_entities[softwareId] = true; community_entities[orpId] = true; community_entities[projectId] = true; community_entities[organizationId] = true; community_entities[datasourceId] = true; db.community.save({ "name" : name, "pid" : communityPid, "pages" : community_pages, "entities" : community_entities}) openaireCommunity = db.community.find( { pid: communityPid }).map( function(community) { return community._id.str; } ).toString() var numbers_map = {}; numbers_map["total"] = { "showInMonitor" : true, "showInDashboard" : false }; numbers_map["project"] = { "showInMonitor" : true, "showInDashboard" : false }; numbers_map["open"] = { "showInMonitor" : true, "showInDashboard" : false }; numbers_map["closed"] = { "showInMonitor" : true, "showInDashboard" : false }; numbers_map["embargo"] = { "showInMonitor" : true, "showInDashboard" : false }; numbers_map["restricted"] = { "showInMonitor" : true, "showInDashboard" : false }; var numbers = {"map":numbers_map}; var charts_map = {}; charts_map["timeline"] = { "showInMonitor" : true, "showInDashboard" : false }; charts_map["graph"] = { "showInMonitor" : true, "showInDashboard" : false }; charts_map["projectTable"] = { "showInMonitor" : true, "showInDashboard" : false }; charts_map["projectColumn"] = { "showInMonitor" : true, "showInDashboard" : false }; charts_map["projectPie"] = { "showInMonitor" : true, "showInDashboard" : false }; var charts = {"map":charts_map}; var statistics_entities = {"charts":charts,"numbers":numbers} var entities = {}; entities["publication"]=statistics_entities; entities["dataset"]=statistics_entities; entities["software"]=statistics_entities; entities["orp"]=statistics_entities; var statistics = {"pid" : communityPid, "entities" : entities}; db.statistics.save(statistics); var subscribers = []; db.communitySubscribers.save({ "pid" : communityPid, "subscribers" : subscribers}) depositLearnHow_community_content = "
\n" + "
How to comply with funder Open Access policies
\n" + "\n" + "\n" + "
\n"; depositLearnHow_explore_content = "
\n" + "
\n" + "
How to comply with funder Open Access policies
\n" + "\n" + "\n" + "
\n" + "
\n"; organizations_content = '

Here you can write more details about the organizations related to your community.

'; communityID = db.community.find({pid: communityPid}).map(function (community) { return community._id.str; }).toString(); if (communityPid == "openaire") { db.pageHelpContent.save({ "page" : depositLearnHow, "community" : communityID, "placement" : "bottom", "order" : 1, "content" : depositLearnHow_explore_content, "isActive" : true, "isPriorTo" : false }); addHelpTextsInHomePage_explore(); } print("openaire help texts added"); if (communityPid == "connect") { addHelpTextsInHomePage_connect(); addHelpTextsInAboutLearnHowPage(); addHelpTextsInAboutLearnInDepthPage(); addHelpTextsInContactUsPage(); addHelpTextsInContentPolicyPage(); } print("connect help texts added"); if (communityPid != "connect" && communityPid != "openaire") { db.pageHelpContent.save({ "page" : depositLearnHow, "community" : communityID, "placement" : "bottom", "order" : 1, "content" : depositLearnHow_community_content, "isActive" : true, "isPriorTo" : false }); db.pageHelpContent.save({ "page" : organizations, "community" : communityID, "placement" : "top", "order" : 1, "content" : organizations_content, "isActive" : false, "isPriorTo" : false }); } print("community help texts added"); print("\n\n Done \n\n"); } function createAllCommunities(){ createCommunity("OpenAIRE","openaire"); createCommunity("Connect","connect"); createCommunity("EGI Federation","egi"); createCommunity("Environment and Economy ","ee"); createCommunity("Fisheries and Aquaculture Management","fam"); createCommunity("Instruct-ERIC","instruct"); createCommunity("Elixir","elixir-gr"); createCommunity("Marine Environmental Science","mes"); createCommunity("EC post-grant Open Access Pilot","oa-pg"); createCommunity("Neuroinformatics","ni"); createCommunity("Research Data Alliance","rda"); createCommunity("Digital Humanities and Cultural Heritage","dh-ch"); createCommunity("AGINFRA+","aginfra"); createCommunity("Clarin","clarin"); createCommunity("DARIAH EU","dariah"); createCommunity("Transport Research","beopen"); createCommunity("European Plate Observing System","epos"); createCommunity("RISIS","risis"); } use openaire_admin; dropDB(); createCollections(); initializeEntitiesPages(); createAllCommunities(); //addHelpTextsInHomePage(); //addHelpTextsInAboutLearnHowPage(); //addHelpTextsInAboutLearnInDepthPage(); //addHelpTextsInContactUsPage(); //addHelpTextsInContentPolicyPage();