Project

General

Profile

« Previous | Next » 

Revision 56739

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.

View differences:

init_db.js
346 346
  link_result_bulk_content = '<div> <div><span class="uk-text-bold"><span uk-icon="icon: info">&nbsp;</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 &quot;DOI&quot;,&quot;ACCESS_MODE&quot;,&quot;DATE&quot;.</li> <li>The value &quot;DOI&quot; is required</li> <li>Access mode column should have values: &quot;OPEN&quot;,&quot;CLOSED&quot; or &quot;EMBARGO&quot;.</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 &quot;OPEN&quot;.</li> </ul> </div> </div> ';
347 347
  link_metadata_content = '<div> <div><span class="uk-text-bold"><span uk-icon="icon: info">&nbsp;</span> Information:</span> Manage access mode &amp; type of selected research results. For OpenAIRE this functionality isn&#39;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