Revision 56739
Added by Konstantina Galouni almost 5 years ago
init_db.js | ||
---|---|---|
346 | 346 |
link_result_bulk_content = '<div> <div><span class="uk-text-bold"><span uk-icon="icon: info"> </span> Information:</span> Upload a csv file containing a list of DOIs. For each DOI found in the file, metadata will be fetched from CrossRef or Datacite and will be added to your selected research results.</div> <div class="uk-margin-top uk-text-small"><span class="uk-text-bold">CSV format:</span> <ul class="uk-list"> <li>The format of CSV file should be "DOI","ACCESS_MODE","DATE".</li> <li>The value "DOI" is required</li> <li>Access mode column should have values: "OPEN","CLOSED" or "EMBARGO".</li> <li>Date column valid format is YYYY-MM-DD and is required when access mode has value EMBARGO.</li> <li>In case access mode is not available default value is "OPEN".</li> </ul> </div> </div> '; |
347 | 347 |
link_metadata_content = '<div> <div><span class="uk-text-bold"><span uk-icon="icon: info"> </span> Information:</span> Manage access mode & type of selected research results. For OpenAIRE this functionality isn't available.</div> </div>'; |
348 | 348 |
|
349 |
communityID = db.community.find({ "pid" : communityPid}).map( function(community) { return community._id.str.toString(); } );
|
|
349 |
communityID = db.community.find({ "pid" : communityPid}).map( function(community) { return community._id.str; } ).toString();
|
|
350 | 350 |
|
351 | 351 |
// if(communityPid != "openaire" && communityPid != "connect") { |
352 | 352 |
// db.divHelpContent.save({ "divId": organizations_class, "community": communityID, "content": organizations_class_content, "isActive": false }); |
Also available in: Unified diff
1. init_db.js: Bug fix: Get communityID properly for initialization of divHelpContents and pageHelpContents.
2. update_db.js: Bug fix: Use openaire_admin database name.
3. DivIdController.java: Add 'communityId' parameter in 'getDivIds' (/div) and 'getDivIdsFull' (/divFull) methods and check if the divId exists in openaire/connect/communities.
4. PageController.java: Add 'with_positions' parameter in 'getAllPages' (/page) method and for checking if there is at least one position enabled/no positions are enabled.