File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed
java/edu/harvard/iq/dataverse Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ This release fixes problems with guestbook questions being displayed at download when files are selected from the dataset files table
2+ when guestbook-at-request is enabled and not displaying when they should when access is requested from the file page.
Original file line number Diff line number Diff line change @@ -420,6 +420,11 @@ public boolean isGuestbookPopupRequiredAtDownload(){
420420 DatasetVersion workingVersion = fileMetadata .getDatasetVersion ();
421421 return FileUtil .isGuestbookPopupRequired (workingVersion ) && !workingVersion .getDataset ().getEffectiveGuestbookEntryAtRequest ();
422422 }
423+
424+ public boolean isGuestbookPopupRequired (){
425+ DatasetVersion workingVersion = fileMetadata .getDatasetVersion ();
426+ return FileUtil .isGuestbookPopupRequired (workingVersion );
427+ }
423428
424429 public void setFileMetadata (FileMetadata fileMetadata ) {
425430 this .fileMetadata = fileMetadata ;
Original file line number Diff line number Diff line change 374374 < ui:param name ="fileDownloadService " value ="#{FilePage.fileDownloadService} "/>
375375 < ui:param name ="lockedFromDownload " value ="#{FilePage.lockedFromDownload} "/>
376376 < ui:param name ="termsGuestbookPopupAction " value ="#{bundle.download} "/>
377+ < ui:param name ="guestbookPopupRequired " value ="#{FilePage.guestbookPopupRequired} "/>
377378 < ui:param name ="guestbookPopupRequiredAtDownload " value ="#{FilePage.guestbookPopupRequiredAtDownload} "/>
378379 </ ui:include >
379380 </ ui:fragment >
681682 < ui:param name ="fileDownloadHelper " value ="#{FilePage.fileDownloadHelper} "/>
682683 < ui:param name ="fileDownloadService " value ="#{FilePage.fileDownloadService} "/>
683684 < ui:param name ="termsGuestbookPopupAction " value ="#{FilePage.termsGuestbookPopupAction} "/>
685+ < ui:param name ="guestbookPopupRequired " value ="#{FilePage.guestbookPopupRequired} "/>
684686 < ui:param name ="guestbookPopupRequiredAtDownload " value ="#{FilePage.guestbookPopupRequiredAtDownload} "/>
685687
686688 </ ui:include >
Original file line number Diff line number Diff line change 142142 value ="#{MarkupChecker:sanitizeBasicHTML(workingVersion.termsOfUseAndAccess.termsOfAccess)} "
143143 escape ="false " />
144144 </ div >
145- < p:fragment rendered ="#{guestbookAndTermsPopupRequired and guestbookPopupRequired} " id ="guestbookUIFragment ">
145+ < p:fragment rendered ="#{guestbookAndTermsPopupRequired and (((termsGuestbookPopupAction != bundle.download) != guestbookPopupRequiredAtDownload) and guestbookPopupRequired) } " id ="guestbookUIFragment ">
146146 < div class ="container messagePanel ">
147147 < iqbs:messages collapsible ="true " />
148148 </ div >
You can’t perform that action at this time.
0 commit comments