Changeset 9b6bab in indico
- Timestamp:
- 03/02/11 14:03:38 (2 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- b7b536
- Parents:
- 665616
- git-author:
- Alexis Castilla Hernandez <alexis.castilla.hernandez@…> (02/24/11 10:00:13)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (03/02/11 14:03:38)
- Location:
- indico
- Files:
-
- 19 edited
-
MaKaC/review.py (modified) (6 diffs)
-
MaKaC/services/implementation/material.py (modified) (1 diff)
-
MaKaC/webinterface/displayMgr.py (modified) (1 diff)
-
MaKaC/webinterface/pages/abstractReviewing.py (modified) (1 diff)
-
MaKaC/webinterface/pages/contributionReviewing.py (modified) (1 diff)
-
MaKaC/webinterface/pages/reviewing.py (modified) (2 diffs)
-
MaKaC/webinterface/tpls/AbstractReviewingSetup.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/AbstractReviewingTeam.tpl (modified) (4 diffs)
-
MaKaC/webinterface/tpls/Abstracts.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/AbstractsReviewingNotifTpl.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/ConfModAbstractBook.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/ConfModifUserCompetences.tpl (modified) (2 diffs)
-
MaKaC/webinterface/tpls/ConfModificationReviewingFrame.tpl (modified) (3 diffs)
-
MaKaC/webinterface/tpls/ConfModificationReviewingFramePRM.tpl (modified) (3 diffs)
-
MaKaC/webinterface/tpls/ConfModificationReviewingSettings.tpl (modified) (1 diff)
-
MaKaC/webinterface/tpls/ConfReviewingAssignContributions.tpl (modified) (7 diffs)
-
MaKaC/webinterface/tpls/ContributionDisplayFull.tpl (modified) (2 diffs)
-
MaKaC/webinterface/tpls/ShowExistingReviewingMaterial.tpl (modified) (6 diffs)
-
htdocs/css/Default.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/review.py
r6ed0cd r9b6bab 1334 1334 for trl in self._trackReallocations.values() : 1335 1335 for newtrack in conference.getTrackList(): 1336 if new Track.getTitle() == trl.getTrack().getTitle() :1336 if newtrack.getTitle() == trl.getTrack().getTitle() : 1337 1337 newtrl = trl.clone(newtrack) 1338 1338 abs._addTrackReallocation(newtrl) … … 2023 2023 jud.setComment( comment ) 2024 2024 self._addTrackAcceptance( jud ) 2025 # Update the rating of the abstract 2026 self.updateRating() 2025 2027 #We trigger the state transition 2026 2028 self.getCurrentStatus().proposeToAccept() … … 2042 2044 jud.setComment( comment ) 2043 2045 self._addTrackRejection( jud ) 2046 # Update the rating of the abstract 2047 self.updateRating() 2044 2048 #We trigger the state transition 2045 2049 self.getCurrentStatus().proposeToReject() … … 2325 2329 # Rating methods 2326 2330 def getRating(self): 2327 '''Get the average rating of the abstract which is calculated with the average of each judgement ''' 2331 ''' Get the average rating of the abstract ''' 2332 return self._rating 2333 2334 def updateRating(self): 2335 '''Update the average rating of the abstract which is calculated with the average of each judgement ''' 2328 2336 self._rating = None 2329 2337 # calculate the total valoration … … 2338 2346 if judNum != 0: 2339 2347 self._rating = "%.2f" % (ratingSum/judNum) 2340 return self._rating2341 2348 2342 2349 def getQuestionsAverage(self): … … 2485 2492 if ans.getQuestion().getId() == questionId: 2486 2493 self._answers.remove(ans) 2494 self._notifyModification() 2495 2496 def _notifyModification(self): 2497 self._p_changed = 1 2487 2498 2488 2499 -
indico/MaKaC/services/implementation/material.py
rb41a57 r9b6bab 219 219 220 220 rev = self._target.getReviewing() 221 if (rev != None ):221 if (rev != None and len(rev._Material__resources) != 0): 222 222 matList[rev.getId()] = rev.fossilize(IMaterialFossil) 223 223 -
indico/MaKaC/webinterface/displayMgr.py
r53b88f r9b6bab 880 880 "parent": "paperreviewing"}, \ 881 881 "assigncontributions": { \ 882 "caption": _("Assign contributions"), \882 "caption": _("Assign papers"), \ 883 883 "URL": str(str(urlHandlers.UHConfModifReviewingAssignContributionsList.getURL(conf))), \ 884 884 "staticURL": "", \ -
indico/MaKaC/webinterface/pages/abstractReviewing.py
r7caa81 r9b6bab 79 79 trackIdsList.append(track.getId()) 80 80 coordinatorsByTrack[track.getId()] = track.getCoordinatorList() 81 vars["conf"] = self._conf .getId()81 vars["conf"] = self._conf 82 82 vars["trackIds"] = trackIdsList 83 83 vars["coordinatorsByTrack"] = coordinatorsByTrack -
indico/MaKaC/webinterface/pages/contributionReviewing.py
r6e9e95 r9b6bab 120 120 121 121 def _getTabContent( self, pars ): 122 wc=wcomponents.WShowExistingReviewingMaterial(self._target, False, False) 122 showSendButton = False 123 wc=wcomponents.WShowExistingReviewingMaterial(self._target, False, showSendButton) 123 124 return wc.getHTML( pars ) 124 125 -
indico/MaKaC/webinterface/pages/reviewing.py
r53b88f r9b6bab 63 63 64 64 if self._showAssignContributions: 65 self._tabAssignContributions = self._tabCtrl.newTab( "assignContributions", "Assign Contributions",\65 self._tabAssignContributions = self._tabCtrl.newTab( "assignContributions", "Assign papers",\ 66 66 urlHandlers.UHConfModifReviewingAssignContributionsList.getURL( self._conf ) ) 67 67 … … 344 344 params["removeReviewerURL"]) 345 345 346 return """<table width="100%%" class="Revtab"><tr><td>%s %s</td></tr></table>"""%(rcPRM, rc)346 return """<table width="100%%" class="Revtab"><tr><td>%s</td></tr><tr><td>%s</td></tr></table>"""%(rcPRM, rc) 347 347 348 348 -
indico/MaKaC/webinterface/tpls/AbstractReviewingSetup.tpl
r53b88f r9b6bab 8 8 <tr> 9 9 <td class="subGroupTitle" colspan="3"><%= _("Add the questions that the abstract reviewers must answer")%> 10 <% inlineContextHelp(_('The questions you add here will be show to the reviewers when they propose to accept/reject an abstract.')) %></td>10 <% inlineContextHelp(_('The questions you add here will be shown to the reviewers when they propose to accept/reject an abstract.')) %></td> 11 11 </tr> 12 12 <tr> -
indico/MaKaC/webinterface/tpls/AbstractReviewingTeam.tpl
r7caa81 r9b6bab 1 1 <% declareTemplate(newTemplateStyle=True) %> 2 2 <% from MaKaC.common.fossilize import fossilize %> 3 <% import MaKaC.webinterface.urlHandlers as urlHandlers %> 3 4 <table width="90%" align="left" border="0" style="padding-top:10px;"> 4 5 <tr> … … 12 13 <% end %> 13 14 <% else: %> 14 <span class="collShowBookingsText"><%=_("There are no tracks created yet ")%></span>15 <span class="collShowBookingsText"><%=_("There are no tracks created yet. Please go to the menu ")%><a href="<%= urlHandlers.UHConfModifProgram.getURL(conf) %>"><%= _("Programme")%></a><%=_(" to create tracks.")%></span> 15 16 <% end %> 16 17 </div> … … 50 51 'abstractReviewing.team.addReviewer', 51 52 { 52 conference: '<%= conf %>',53 conference: '<%= conf.getId() %>', 53 54 track: '<%= i %>', 54 55 user: user[0]['id'] … … 69 70 'abstractReviewing.team.removeReviewer', 70 71 { 71 conference: '<%= conf %>',72 conference: '<%= conf.getId() %>', 72 73 track: '<%= i %>', 73 74 user: user.get('id') -
indico/MaKaC/webinterface/tpls/Abstracts.tpl
r4e858d0 r9b6bab 228 228 <% if (totalNumberAbstracts == "0"): %> 229 229 <tr> 230 <td style="padding: 5px 0px 5px 10px;"><span class="collShowBookingsText"><%=_("There are no abstracts submitted yet")%></span></td>230 <td style="padding:15px 0px 15px 15px;"><span class="collShowBookingsText"><%=_("There are no abstracts submitted yet")%></span></td> 231 231 </tr> 232 232 <% end %> 233 233 <% elif (filteredNumberAbstracts == "0"): %> 234 <td style="padding: 5px 0px 5px 10px;"><span class="collShowBookingsText"><%=_("There are no abstracts with the filters criteria selected")%></span></td>234 <td style="padding:15px 0px 15px 15px;"><span class="collShowBookingsText"><%=_("There are no abstracts with the filters criteria selected")%></span></td> 235 235 <% end %> 236 236 <% else: %> -
indico/MaKaC/webinterface/tpls/AbstractsReviewingNotifTpl.tpl
rbf90e6 r9b6bab 7 7 <tr> 8 8 <td style="padding-top:5px; padding-left:5px;"> 9 <span class="collShowBookingsText"><%= _("Add the templates for the emails which will be sent to the primary authors or submitters .")%></em>9 <span class="collShowBookingsText"><%= _("Add the templates for the emails which will be sent to the primary authors or submitters when their abstracts change the status to Accepted, Rejected or Merged.")%></em> 10 10 </td> 11 11 </tr> -
indico/MaKaC/webinterface/tpls/ConfModAbstractBook.tpl
r9ac2af7 r9b6bab 1 <table width="90%" align="left" border="0" >1 <table width="90%" align="left" border="0" style="padding-top:15px;"> 2 2 <tr> 3 3 <td class="dataCaptionTD"><span class="dataCaptionFormat"> <%= _("Additional text")%></span></td> -
indico/MaKaC/webinterface/tpls/ConfModifUserCompetences.tpl
r53b88f r9b6bab 11 11 <tr> 12 12 <td nowrap class="groupTitle" colspan=5> 13 <%= _(" Paper ReviewingTeam competences")%>13 <%= _("Team competences")%> 14 14 <span id="competencesHelp"></span> 15 15 </td> … … 47 47 <% end %> 48 48 <tr><td colspan=5 style="padding-top: 15px;"> 49 <em><%= _(" To assign contributions for paper reviewing, please click on ") %><a href="<%=urlHandlers.UHConfModifReviewingAssignContributionsList.getURL(ConfReview.getConference())%>"><%= _("Assign Contributions")%></a></em>49 <em><%= _("Once this step is done you may want to assign papers to review. Please click on the next tab ") %><a href="<%=urlHandlers.UHConfModifReviewingAssignContributionsList.getURL(ConfReview.getConference())%>"><%= _("Assign Papers")%></a><%= _(" to continue the process.")%></em> 50 50 </td></tr> 51 51 </table> -
indico/MaKaC/webinterface/tpls/ConfModificationReviewingFrame.tpl
r53b88f r9b6bab 4 4 5 5 <table width="90%" align="left" border="0"> 6 <tbody> 6 7 <tr> 7 8 <td id="revControlRefereeEditorReviewerHelp" colspan="3" class="groupTitle" style="padding-top: 10px;"> … … 28 29 </tr> 29 30 <tr> 31 </tbody> 30 32 </table> 31 32 <table align="left" border="0" style="padding-left:20px;"> 33 <tr><td> 34 <table align="left" border="0" width="60%" style="padding-left:20px;"> 35 <tbody> 33 36 <% if ConfReview.getChoice() == 3 or ConfReview.getChoice() == 1:%> 34 37 <% pass %> … … 252 255 <tr><td style="padding-top: 15px;"></td></tr> 253 256 <tr><td colspan="5" style="padding-top: 15px;"> 254 <em><%= _("You can define paper reviewers competences by clicking on ") %><a href="<%=urlHandlers.UHConfModifUserCompetences.getURL(ConfReview.getConference())%>"><%= _("Competences")%></a></em> 255 </td> 256 </tr> 257 <em><%= _("Once this step is done you may want to assign competences for the members of the team. Please click on the next tab ") %><a href="<%=urlHandlers.UHConfModifUserCompetences.getURL(ConfReview.getConference())%>"><%= _("Competences")%></a><%= _(" to continue the process.")%></em> 258 </td> 259 </tr> 260 </tbody> 257 261 </table> 262 </td></tr> 258 263 <% end %> 259 264 <br> -
indico/MaKaC/webinterface/tpls/ConfModificationReviewingFramePRM.tpl
r7caa81 r9b6bab 3 3 4 4 <table width="90%" align="left" border="0" style="padding-top:10px;"> 5 <tbody> 5 6 <tr> 6 7 <td id="revControlPRMHelp" colspan="3" class="groupTitle"><%= _("Step 1 - Assign managers of paper reviewing")%></td> … … 16 17 </td> 17 18 </tr> 19 </tbody> 18 20 </table> 19 <table style="padding-left:20px; width:570px;"> 21 <tr><td> 22 <table width="60%" style="padding-left:20px;"> 23 <tbody> 20 24 <tr> 21 25 <td class="subGroupTitle"><%= _("Managers") %></td> … … 29 33 <td width="80%" style="padding-top: 5px; padding-left:3px;"><div id="PRMList"></div></td> 30 34 </tr> 35 </tbody> 31 36 </table> 37 </td></tr> 32 38 <br> 33 39 -
indico/MaKaC/webinterface/tpls/ConfModificationReviewingSettings.tpl
r53b88f r9b6bab 411 411 <tr><td style="padding-bottom:15px;"></td></tr> 412 412 <tr><td colspan="5" style="padding-top: 20px;"> 413 <em><%= _(" To assign team for Paper Review Module, please click on") %><a href="<%=urlHandlers.UHConfModifReviewingControl.getURL(ConfReview.getConference())%>"><%= _("Team")%></a><%= _(" and follow the steps")%></em>413 <em><%= _("Once this step is done you may want to assign the team for paper reviewing. Please click on the next tab ") %><a href="<%=urlHandlers.UHConfModifReviewingControl.getURL(ConfReview.getConference())%>"><%= _("Team")%></a><%= _(" and follow the steps")%></em> 414 414 </td></tr> 415 415 </table> -
indico/MaKaC/webinterface/tpls/ConfReviewingAssignContributions.tpl
r665616 r9b6bab 10 10 <% else: %> 11 11 <% if len(Conference.getContributionListSortedById()) == 0: %> 12 <p style="padding-left: 25px;"><font color="gray"><%= _("There are no contributions to assign.")%></font></p>12 <p style="padding-left: 25px;"><font color="gray"><%= _("There are no papers to assign.")%></font></p> 13 13 <% end %> 14 14 <%else:%> … … 25 25 </td> 26 26 <td align="bottom" style="padding-left:10px; padding-top:27px;"> 27 <div><%= _("Displaying ")%><span id="contributionsToShow" style="font-size:15px; font-weight: bold;"></span></div> 27 <div><%= _("Displaying ")%><span id="contributionsToShow" style="font-size:15px; font-weight: bold;"></span> 28 <span id="contributionText"></span> 29 </div> 28 30 </td> 29 31 <td align="bottom" style="padding-top:27px;"> … … 213 215 <td colspan="8" style="border-bottom: 1px solid grey"></td> 214 216 </tr> 217 <tr> 218 <td id="noFilteredContribution" colspan="8" style="padding:15px 0px 15px 15px; display:none;"> 219 <span><%= _("There are no papers with the selected filters criteria.")%></span> 220 <% if IsOnlyReferee: %> 221 <span><%= _("It is also possible you do not have any assigned paper for the review yet.")%></span> 222 <% end %> 223 </td> 224 </tr> 215 225 </thead> 216 226 … … 1153 1163 $E('resetFilters').dom.style.display = 'none'; 1154 1164 } 1155 //alert(appliedFilter);1156 1165 1157 1166 contributions.clear(); … … 1180 1189 } 1181 1190 $E('contributionsToShow').dom.innerHTML = result.length; 1182 var totalContributions = <%= len(Conference.getContributionListSortedById()) %>; 1183 if (totalContributions == result.length) { 1184 $E('totalContributions').dom.style.display = 'none'; 1191 if (result.length == 0) { 1192 $E('noFilteredContribution').dom.style.display = ''; 1193 } 1194 else { 1195 $E('noFilteredContribution').dom.style.display = 'none'; 1196 } 1197 if (result.length == 1) { 1198 $E('contributionText').dom.innerHTML = $T('paper'); 1185 1199 } else { 1186 $E(' totalContributions').dom.style.display = '';1200 $E('contributionText').dom.innerHTML = $T('papers'); 1187 1201 } 1188 1202 } else { … … 1587 1601 bind.element($E("tablebody"), contributions, contributionTemplate); 1588 1602 1589 $E('btnReset').observeClick(function(){window.location = "<%= urlHandlers.UHConfModifReviewingAssignContributionsList.getURL(Conference) %>";}); 1603 $E('btnReset').observeClick(function(){ 1604 window.location = "<%= urlHandlers.UHConfModifReviewingAssignContributionsList.getURL(Conference) %>"; 1605 $E('totalContributions').dom.style.display = 'none'; 1606 }); 1590 1607 1591 1608 var appliedFilter = false; … … 1596 1613 appliedFilter = true; 1597 1614 fetchContributions(); 1615 <% if not IsOnlyReferee: %> 1616 $E('totalContributions').dom.style.display = ''; 1617 <% end %> 1598 1618 }); 1599 1619 -
indico/MaKaC/webinterface/tpls/ContributionDisplayFull.tpl
r53b88f r9b6bab 151 151 <% end %> 152 152 <% end %> 153 <tr>154 <td> </td>155 <td colspan="2" align="left">156 <form action="<%=urlHandlers.UHContributionRemoveSubmittedMarkForReviewing.getURL(Contribution)%>" method="POST" style="display:<%=display%>">157 <input type="submit" class="btn" value="UNDO sending" >158 <% inlineContextHelp(_('Press this button only if you made some mistake when submitting the materials.The reviewing team will be notified and the reviewing process will be stopped until you mark the materials as submitted again')) %>159 </form>160 </td>161 </tr>162 153 <% end %> 163 154 <% else: %> … … 165 156 <td></td> 166 157 <td> 167 <div id="reviewingWarning"> 168 <span class="collaborationWarning">You must send the reviewing material to start the reviewing process</span> 169 </div> 158 170 159 </td> 171 160 </tr> -
indico/MaKaC/webinterface/tpls/ShowExistingReviewingMaterial.tpl
r53b88f r9b6bab 1 1 <% import MaKaC.webinterface.urlHandlers as urlHandlers %> 2 2 <% from MaKaC.webinterface.rh.conferenceBase import RHSubmitMaterialBase %> 3 <div id="showStep1" class="groupTitleSmallPaper"><span><%= _("Step 1 - Upload paper") %></span></div> 3 4 <%= existingMaterialsTitle %> 4 5 <div id="reviewingMaterialListPlace"><!-- DOM-filled materials list --></div> … … 10 11 <% display = 'form' %> 11 12 <% end %> 13 <div id="showStep2" class="groupTitleSmallPaper"><span><%= _("Step 2 - Submit the paper") %></span></div> 12 14 <form id="SendBtnForm" action="<%=urlHandlers.UHContributionSubmitForRewiewing.getURL(self._target)%>" method="POST" style="disabled:true; display:<%=display%>"> 13 <input id="SendBtn" type="submit" class="btn" value="Send" disabled="disabled" style="display:<%=display%>"> 15 <div id="reviewingWarning" style="padding-bottom:3px; padding-left:3px;"> 16 <span class="collaborationWarning">Note that you cannot modify the reviewing materials after submitting them.</span> 17 </div> 18 <input id="SendBtn" type="submit" class="btn" value="Submit" disabled="disabled" style="display:<%=display%>"> 14 19 <span id="SendHelp" style="display:<%=display%>"> 15 <% inlineContextHelp(_('First you should add the materials and then by clicking on this button you will s endthem for reviewing. They will be locked until the end of the process')) %>20 <% inlineContextHelp(_('First you should add the materials and then by clicking on this button you will submit them for reviewing. They will be locked until the end of the process')) %> 16 21 </span> 17 22 </form> … … 33 38 <% if self._target.getConference().getConfPaperReview().getChoice() == 3: %> 34 39 <% if not self._target.getReviewManager().getLastReview().isAuthorSubmitted() and not self._target.getReviewManager().getLastReview().getEditorJudgement().isSubmitted():%> 35 visibility = 'visible'; 40 <% if showSendButton: %> 41 visibility = 'visible'; 42 <% end %> 43 <% else: %> 44 visibility = 'hidden'; 45 <% end %> 36 46 <% end %> 37 47 <% else: %> … … 41 51 <% if self._target.getConference().getConfPaperReview().getChoice() == 2: %> 42 52 <% if not self._target.getReviewManager().getLastReview().isAuthorSubmitted() and not (self._target.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() or self._target.getReviewManager().getLastReview().anyReviewerHasGivenAdvice()): %> 43 visibility = 'visible'; 53 <% if showSendButton: %> 54 visibility = 'visible'; 55 <% end %> 56 <% else: %> 57 visibility = 'hidden'; 58 <% end %> 44 59 <% end %> 45 60 <% else: %> … … 49 64 <% if self._target.getConference().getConfPaperReview().getChoice() == 4: %> 50 65 <% if not self._target.getReviewManager().getLastReview().isAuthorSubmitted() and not (self._target.getReviewManager().getLastReview().getRefereeJudgement().isSubmitted() or self._target.getReviewManager().getLastReview().anyReviewerHasGivenAdvice() or self._target.getReviewManager().getLastReview().getEditorJudgement().isSubmitted()): %> 51 visibility = 'visible'; 66 <% if showSendButton: %> 67 visibility = 'visible'; 68 <% end %> 69 <% else: %> 70 visibility = 'hidden'; 71 <% end %> 52 72 <% end %> 53 73 <% else: %> … … 71 91 <% end %> 72 92 93 if (visibility == 'visible') { 94 $E('showStep1').dom.style.display = ''; 95 $E('showStep2').dom.style.display = ''; 96 } else { 97 $E('showStep1').dom.style.display = 'none'; 98 $E('showStep2').dom.style.display = 'none'; 99 } 100 73 101 </script> -
indico/htdocs/css/Default.css
r53b88f r9b6bab 6760 6760 } 6761 6761 6762 .groupTitleSmallPaper { 6763 font-weight: bold; 6764 font-size: 12px; 6765 color: #444444; 6766 padding: 3px 0 3px 0; 6767 font-style: italic; 6768 }
Note: See TracChangeset
for help on using the changeset viewer.
