Revision 56739
Added by Konstantina Galouni almost 5 years ago
PageHelpContentController.java | ||
---|---|---|
166 | 166 |
public void addPageHelpContentsInCommunity(String pid, String communityId) { |
167 | 167 |
if (pid != "connect" && pid != "openaire") { |
168 | 168 |
String organizations_page_content = "<div> <p>Here you can write more details about the organizations related to your community.</p> </div>"; |
169 |
Page organizationsPage = (pageController.getAllPages(null, "/organizations")).get(0); |
|
169 |
Page organizationsPage = (pageController.getAllPages(null, "/organizations", null)).get(0);
|
|
170 | 170 |
|
171 | 171 |
PageHelpContent organizations_pageHelpContent = new PageHelpContent(organizationsPage.getId(), communityId, "top", 1, organizations_page_content, false, false); |
172 | 172 |
this.insertPageHelpContent(organizations_pageHelpContent); |
... | ... | |
181 | 181 |
" <li>All OpenAIRE guides can be found <a class=\"custom-external\" href=\"https://www.openaire.eu/guides\" target=\"_blank\">here</a></li> " + |
182 | 182 |
" </ul> " + |
183 | 183 |
"</div>"; |
184 |
Page depositLearnHowPage = (pageController.getAllPages(null, "/participate/deposit/learn-how")).get(0); |
|
184 |
Page depositLearnHowPage = (pageController.getAllPages(null, "/participate/deposit/learn-how", null)).get(0);
|
|
185 | 185 |
|
186 | 186 |
PageHelpContent depositLearnHow_pageHelpContent = new PageHelpContent(depositLearnHowPage.getId(), communityId, "bottom", 1, depositLearnHow_page_content, true, false); |
187 | 187 |
this.insertPageHelpContent(depositLearnHow_pageHelpContent); |
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.