|
2030 | 2030 | <p class="col-sm-12 help-block">#{bundle['dataset.publish.terms.help.tip']}</p> |
2031 | 2031 | </div> |
2032 | 2032 | </ui:fragment> |
| 2033 | + <ui:fragment rendered="#{valid and settingsWrapper.isHasPublishDatasetDisclaimerText()}"> |
| 2034 | + <div class="form-group"> |
| 2035 | + <p:selectBooleanCheckbox class="text-danger" id="publishDisclaimer" |
| 2036 | + itemLabel="#{settingsWrapper.getPublishDatasetDisclaimerText()}" |
| 2037 | + value="#{DatasetPage.publishDisclaimerAcknowledged}"> |
| 2038 | + <p:ajax event="change" update="releaseDatasetButton"/> |
| 2039 | + </p:selectBooleanCheckbox> |
| 2040 | + </div> |
| 2041 | + </ui:fragment> |
2033 | 2042 | <div class="button-block"> |
2034 | | - <p:commandButton rendered="#{valid}" styleClass="btn btn-default" value="#{bundle.continue}" |
| 2043 | + <p:commandButton id="releaseDatasetButton" rendered="#{valid}" styleClass="btn btn-default" value="#{bundle.continue}" |
| 2044 | + disabled="#{!DatasetPage.publishDisclaimerAcknowledged}" |
2035 | 2045 | onclick="PF('publishDataset').hide(); |
2036 | 2046 | PF('blockDatasetForm').hide();" action="#{DatasetPage.releaseDataset}" /> |
2037 | 2047 | <button class="btn btn-link" onclick="PF('publishDataset').hide(); |
|
2086 | 2096 | <p class="text-warning"> |
2087 | 2097 | <span class="glyphicon glyphicon-warning-sign"/> #{bundle['dataset.rejectMessage']} #{disableReasonField ? '':bundle['dataset.rejectMessageReason']} |
2088 | 2098 | </p> |
2089 | | - |
| 2099 | + |
2090 | 2100 | <ui:fragment rendered="#{!disableReasonField}"> |
2091 | 2101 | <p:inputTextarea id="returnReason" rows="4" value="#{DatasetPage.returnReason}" title="#{bundle['dataset.rejectMessage.label']}" maxlength="2000" widgetVar="returnReason" |
2092 | 2102 | cols="70" counter="display" counterTemplate="{0} characters remaining." autoResize="false" |
|
2098 | 2108 | <p:watermark for="returnReason" value="#{bundle['dataset.rejectWatermark']}" id="returnReasonWatermark"/> |
2099 | 2109 | <h:message for="returnReason" styleClass="bg-danger text-danger"/> |
2100 | 2110 | </ui:fragment> |
2101 | | - |
| 2111 | + |
2102 | 2112 | <div class="button-block"> |
2103 | 2113 | <p:commandButton styleClass="btn btn-default" value="#{bundle.continue}" |
2104 | 2114 | update="@form" |
|
2183 | 2193 | <script> |
2184 | 2194 | Cite.CSL.register.addTemplate("#{requestedCSL}", |
2185 | 2195 | "#{CSLUtil:getCitationFormat((requestedCSL == '') ? 'apa' : requestedCSL)}"); |
2186 | | - |
| 2196 | + |
2187 | 2197 | document.getElementById('datasetForm:cslOutput').innerHTML = cite.format("bibliography", { |
2188 | 2198 | format: "html", |
2189 | 2199 | template: "#{requestedCSL}", |
|
0 commit comments