Project

General

Profile

« Previous | Next » 

Revision 56174

1. CommunityController.java: Add check for pid: "connect"
2. DivIdController.java: Bug fix: Save and Update methods should get parameter DivIdResponse
3. PageController.java: pid == "connect" case - get pages that are enabled in connect
4. CommunityPage.java & Page.java & PageDAO.java & MongoDBPageDAO.java: Rename "connect" field to "communities" and use "connect" field for connect general pages (not community specific)
5. update_db.js: Add function to set "communities" field in each page with value from "connect" field, and make "connect" false.

View differences:

update_db.js
163 163
    }
164 164
}
165 165

  
166
function pageOptionConnectAsCommunities() {
167
  pages = db.page.find().map( function(page) { return page; } );
168
  for (var i = 0; i < pages.length; i++) {
169
    page = pages[i];
170

  
171
    db.page.update(
172
      { "_id" : page._id },
173
      { $set: {"communities": page.connect, "connect": false}}
174
    );
175
  }
176
}
177

  
166 178
use openaire_admin;
167 179

  
168 180
//updatePages();
......
188 200
//addORPInStatistics();
189 201
//createShareInZenodoPage();
190 202
//addCommunityLayout();
191
addCuratorsPage();
192
removeMonitorPage();
203
//addCuratorsPage();
204
//removeMonitorPage();
205
pageOptionConnectAsCommunities();

Also available in: Unified diff