Mercurial > hg > LGDataverses
comparison doc/gui/ingest/language_encoding/AddFilesPage.xhtml @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Tue, 08 Sep 2015 17:00:21 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 9:5926d6419569 | 10:a50cf11e5178 |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8"?> | |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 3 <html xmlns="http://www.w3.org/1999/xhtml" | |
| 4 xmlns:ui="http://java.sun.com/jsf/facelets" | |
| 5 xmlns:h="http://java.sun.com/jsf/html" | |
| 6 xmlns:f="http://java.sun.com/jsf/core" | |
| 7 xmlns:dvn="/WEB-INF/tlds/dvn-components" | |
| 8 xmlns:ace="http://www.icefaces.org/icefaces/components" | |
| 9 xmlns:ice="http://www.icesoft.com/icefaces/component"> | |
| 10 <h:head> | |
| 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
| 12 </h:head> | |
| 13 <h:body> | |
| 14 <ui:composition template="/template.xhtml"> | |
| 15 <ui:param name="pageTitle" value="#{bundlePageInfo.addFilesTitle} - #{VDCRequest.dataversePageTitle}"/> | |
| 16 <ui:define name="metadata"> | |
| 17 <f:metadata> | |
| 18 <f:viewParam name="studyId" value="#{AddFilesPage.studyId}"/> | |
| 19 <f:event type="preRenderView" listener="#{AddFilesPage.preRenderView}"/> | |
| 20 </f:metadata> | |
| 21 </ui:define> | |
| 22 <ui:define name="body"> | |
| 23 <script type="text/javascript"> | |
| 24 // <![CDATA[ | |
| 25 // functions to work with category selection note a few assumptions that these functions have: | |
| 26 // the id of the dropdown (including parent nodes); the partial id of the checkboxes; | |
| 27 // and that the checkbox is two elements before the text field (there is empty text | |
| 28 // in between, created by the div) | |
| 29 function updateCategory( checkbox ) { | |
| 30 if (checkbox.checked) { | |
| 31 dropdown = document.getElementById("form1:dummy_datatable:0:fileDataTable:catDropdown"); | |
| 32 textField = (document.getElementById(checkbox.id)).nextSibling; | |
| 33 textField.value= dropdown.value; | |
| 34 textField.focus(); | |
| 35 // document.forms['form1'].elements[textFiled.id].select(); | |
| 36 // | |
| 37 //alert("text value "+ textField.value); | |
| 38 } | |
| 39 } | |
| 40 function deselectCategory( textField ) { | |
| 41 checkbox = document.getElementById(textField.id).previousSibling; | |
| 42 checkbox.checked = false; | |
| 43 } | |
| 44 function updateAllCheckedCategories( dropdown ) { | |
| 45 checkboxes=document.getElementsByTagName("input"); | |
| 46 for(i=0; i < checkboxes.length; i++) { | |
| 47 if (checkboxes[i].id.indexOf("catCheckbox") != -1 && checkboxes[i].checked == true) { | |
| 48 textField = checkboxes[i].nextSibling; | |
| 49 textField.value = dropdown.value; | |
| 50 textField.focus(); | |
| 51 } | |
| 52 } | |
| 53 } | |
| 54 | |
| 55 // this method is a workaround for handling the two click submit needed by the fileEntry component; it is added as on onchange event tot he file input | |
| 56 // by the backing bean in preRenderView (so that it will exist after every partial submit) | |
| 57 function clickHiddenAddFileButton() { | |
| 58 jQuery('input#form1\\:addFile').click(); | |
| 59 } | |
| 60 | |
| 61 function disableSave() { | |
| 62 document.getElementById("form1:saveButton").disabled = true; | |
| 63 } | |
| 64 // ]]> | |
| 65 </script> | |
| 66 <div class="dvn_section"> | |
| 67 <div class="dvnstudytitlefloat dvn_padBot"> | |
| 68 <ice:outputText styleClass="dvnstudytitle" value="#{AddFilesPage.studyVersion.metadata.title}"/> | |
| 69 <div jsfc="ice:panelGroup" styleClass="dvnstudyversioninfo"> | |
| 70 <ice:outputText value="#{AddFilesPage.study.globalId}"/> <ice:outputText value="#{AddFilesPage.studyVersion.metadata.UNF}" rendered="#{!empty AddFilesPage.studyVersion.metadata.UNF}"/> | |
| 71 </div> | |
| 72 <div jsfc="ice:panelGroup" styleClass="dvnstudystatusbox #{AddFilesPage.studyVersion.inReview ? 'dvnstudystatusreview' : '' or AddFilesPage.studyVersion.draft ? 'dvnstudystatusdraft' : ''}"> | |
| 73 <ice:outputText styleClass="dvnstudystatuslabel" value="In Review " rendered="#{AddFilesPage.studyVersion.inReview}"/> | |
| 74 <ice:outputText styleClass="dvnstudystatuslabel" value="Draft " rendered="#{AddFilesPage.studyVersion.draft}"/> | |
| 75 <ice:outputText value="Study Version: #{AddFilesPage.studyVersion.versionNumber}"/> | |
| 76 <ice:outputText nospan="true"><br/></ice:outputText> | |
| 77 <ice:outputText value="Created: #{AddFilesPage.studyVersion.createTime} - Last Updated: #{AddFilesPage.studyVersion.lastUpdateTime}" rendered="#{!empty AddFilesPage.studyVersion.lastUpdateTime}"/> | |
| 78 <ice:outputText value="Created: <i>Draft study version is not created until the form is saved</i>" rendered="#{null == AddFilesPage.studyVersion.lastUpdateTime}" escape="false"/> | |
| 79 <ice:outputText nospan="true" rendered="#{!empty AddFilesPage.studyVersion.versionNote}"><br/></ice:outputText> | |
| 80 <ice:outputText value="Study Version Notes: " rendered="#{!empty AddFilesPage.studyVersion.versionNote}"/> | |
| 81 <ice:outputText styleClass="dvnstudystatusversionnote" value="#{AddFilesPage.studyVersion.versionNote}" rendered="#{!empty AddFilesPage.studyVersion.versionNote}"/> | |
| 82 </div> | |
| 83 </div> | |
| 84 <div class="dvn_sectionTitle"> | |
| 85 <ice:outputText value="#{bundlePageInfo.addFilesTitle}"/> | |
| 86 </div> | |
| 87 <div class="dvn_sectionBox"> | |
| 88 <div class="dvn_margin12"> | |
| 89 <div jsfc="ice:panelGroup" styleClass="dvnInformationMessage"> | |
| 90 <div class="dvnMsgBlockContainer"> | |
| 91 <ice:outputText value="#{bundlePageInfo.addFilesHelp}" escape="false"/> | |
| 92 </div> | |
| 93 </div> | |
| 94 <ice:form id="form1"> | |
| 95 <ice:inputHidden id="vdcId" value="#{VDCRequest.currentVDCId}"/> | |
| 96 <ice:inputHidden id="studyId" value="#{AddFilesPage.study.id}"/> | |
| 97 <input type="hidden" name="pageName" value="AddFilesPage"/> | |
| 98 | |
| 99 <ice:panelGroup id="filetypePanelGroup" styleClass="dvnAddFilesInputBlock"> | |
| 100 | |
| 101 <div class="dvnAddFilesInputContainer"> | |
| 102 <div style="float:left; width:250px;"> | |
| 103 <ice:selectOneMenu id="filetypeDropdown" binding="#{AddFilesPage.selectFileType}" onchange="getElementById('form1:filetypeButton').click();" rendered="#{!AddFilesPage.controlCardIngestInProgress}"> | |
| 104 <f:selectItems value="#{AddFilesPage.fileTypes}"/> | |
| 105 </ice:selectOneMenu> | |
| 106 | |
| 107 <ice:outputText rendered="#{AddFilesPage.controlCardIngestInProgress}" value="Control Card: #{AddFilesPage.controlCardFilename}"/> | |
| 108 | |
| 109 <ice:commandButton id="filetypeButton" visible="false" value="Change" action="#{AddFilesPage.changeFileTypeAction}"/> | |
| 110 </div> | |
| 111 <div style="float:left; width:450px;"> | |
| 112 <ice:panelGroup rendered="#{AddFilesPage.typeNotSelected}"> | |
| 113 <ice:outputText value="<strong>Tabular</strong> and <strong>Network Data</strong> files can | |
| 114 be subset and analyzed using the Dataverse Network analysis tools. These files will take longer to upload and | |
| 115 you'll get a notification once the upload is completed. Tabular files will also get Universal Numerical | |
| 116 Fingerprint (UNF). All other files types will be available for download only." escape="false"/> | |
| 117 </ice:panelGroup> | |
| 118 <ice:panelGroup rendered="#{AddFilesPage.controlCardIngestRequested}"> | |
| 119 <ice:outputText id="controlCardValidationError" nospan="true" escape="false" value="<p style="margin-top:0;" class="warnMessage"><img src="/dvn/resources/images/icon_warning.18.png" class="dvn_icon" /> #{AddFilesPage.controlCardValidationErrorMessage} <p>" rendered="#{AddFilesPage.controlCardValidationErrorMessage != null}"/> | |
| 120 | |
| 121 <ice:outputText id="controlCardIngestMessageSPSS1" nospan="true" escape="false" | |
| 122 value="<p style="margin-top:0;" class="warnMessage"><img src="/dvn/resources/images/icon_warning.18.png" class="dvn_icon" /> You have selected a CSV (character-separated values) file, which requires a Control Card. (Please report any issues found in our open beta release of Control Card Based Ingest to the Network Administrator using the <a href="/dvn#{VDCRequest.currentVDCURL}/faces/ContactUsPage.xhtml">Contact</a> form.)<p>" | |
| 123 rendered="#{AddFilesPage.SPSSCCIngestRequested and AddFilesPage.controlCardValidationErrorMessage == null}"/> | |
| 124 <ice:outputText id="controlCardIngestMessageSPSS2" nospan="true" escape="false" | |
| 125 value="<p>First, click Browse to select an SPSS Control Card file. Once you've selected the Control Card, click Browse again to select the CSV file.</p>" rendered="#{AddFilesPage.SPSSCCIngestRequested}"/> | |
| 126 | |
| 127 <ice:outputText id="controlCardIngestMessageDDI1" nospan="true" escape="false" | |
| 128 value="<p style="margin-top:0;" class="warnMessage"><img src="/dvn/resources/images/icon_warning.18.png" class="dvn_icon" /> You have selected a TAB (tab-delimited) file, which requires a Control Card. (Please report any issues found in our open beta release of Control Card Based Ingest to the Network Administrator using the <a href="/dvn#{VDCRequest.currentVDCURL}/faces/ContactUsPage.xhtml">Contact</a> form.)<p>" | |
| 129 rendered="#{AddFilesPage.DDICCIngestRequested and AddFilesPage.controlCardValidationErrorMessage == null}"/> | |
| 130 <ice:outputText id="controlCardIngestMessageDDI2" nospan="true" escape="false" | |
| 131 value="<p>First, click Browse to select a DDI Control Card file. Once you've selected the DDI, click Browse again to select the TAB file.</p>" rendered="#{AddFilesPage.DDICCIngestRequested}"/> | |
| 132 | |
| 133 <ice:outputText id="controlCardIngestMessagePorExtra1" nospan="true" escape="false" | |
| 134 value="<p style="margin-top:0;" class="warnMessage"><img src="/dvn/resources/images/icon_warning.18.png" class="dvn_icon" /> You have selected to ingest a SPSS-Portable file, *with the extended labels in an auxilary file*. (The support for this type of ingest is still in beta; please report any issues found to the Network Administrator using the <a href="/dvn#{VDCRequest.currentVDCURL}/faces/ContactUsPage.xhtml">Contact</a> form.)<p>" | |
| 135 rendered="#{AddFilesPage.porExtraIngestRequested and AddFilesPage.controlCardValidationErrorMessage == null}"/> | |
| 136 | |
| 137 <ice:outputText id="controlCardIngestMessagePorExtra2" nospan="true" escape="false" | |
| 138 value="<p>First, click Browse to select a text file with the extended variable labels. Once you've selected the labels file, click Browse again to select the SPSS/POR file.</p>" rendered="#{AddFilesPage.porExtraIngestRequested}"/> | |
| 139 </ice:panelGroup> | |
| 140 <ice:panelGroup rendered="#{AddFilesPage.controlCardIngestInProgress}"> | |
| 141 <ice:outputText styleClass="vdcTextStandout" value="SPSS Control Card uploaded. Please click Browse to select the CSV file." rendered="#{AddFilesPage.SPSSCCIngestInProgress}"/> | |
| 142 <ice:outputText styleClass="vdcTextStandout" value="DDI Control Card uploaded. Please click Browse to select the TAB file." rendered="#{AddFilesPage.DDICCIngestInProgress}"/> | |
| 143 <ice:outputText styleClass="vdcTextStandout" value="Extra Labels uploaded. Please click Browse to select the POR file." rendered="#{AddFilesPage.porExtraIngestInProgress}"/> | |
| 144 </ice:panelGroup> | |
| 145 <ice:panelGroup rendered="#{AddFilesPage.otherSubsettableIngestRequested}"> | |
| 146 <table> | |
| 147 <tbody> | |
| 148 <tr> | |
| 149 <td width="60%"> | |
| 150 <ice:outputText styleClass="vdcTextStandout" value="SPSS and STATA files will be converted to a tab delimited format and made available for automated subsetting. You will still be able to download the original file, as well as other formats."/> | |
| 151 </td> | |
| 152 <td width="40%"> | |
| 153 <ice:outputText styleClass="warnMessage" value="[Experimental!]" rendered="#{AddFilesPage.SAVIngestRequested}"/> | |
| 154 <ice:outputText styleClass="vdcTextStandout" value=" Specify character encoding for the SAV data file" rendered="#{AddFilesPage.SAVIngestRequested}"/> | |
| 155 <ice:selectBooleanCheckbox partialSubmit="true" id="charEncodingCheckbox" rendered="#{AddFilesPage.SAVIngestRequested}" value="#{AddFilesPage.showCharEncodingMenu}"/> | |
| 156 <p/> | |
| 157 <ice:outputText styleClass="vdcTextStandout" value="Selected Character Encoding: " rendered="#{AddFilesPage.SAVIngestRequested and AddFilesPage.showCharEncodingMenu}"/> | |
| 158 | |
| 159 <ice:menuBar orientation="horizontal" rendered="#{AddFilesPage.SAVIngestRequested and AddFilesPage.showCharEncodingMenu}"> | |
| 160 <ice:menuItem value="#{empty AddFilesPage.dataLanguageEncoding ? 'Default' : AddFilesPage.dataLanguageEncoding} (click to change)" id="dataCharEncoding"> | |
| 161 <ice:menuItem value="West European"> | |
| 162 <ice:menuItem id="iso-8859-1" value="Western (ISO-8859-1)" | |
| 163 actionListener="#{AddFilesPage.encodingListener}"> | |
| 164 <f:param name="characterEncoding" value="iso-8859-1"/> | |
| 165 </ice:menuItem> | |
| 166 <ice:menuItem id="iso-8859-15" value="Western (ISO-8859-15)" | |
| 167 actionListener="#{AddFilesPage.encodingListener}"> | |
| 168 <f:param name="characterEncoding" value="iso-8859-15"/> | |
| 169 </ice:menuItem> | |
| 170 <ice:menuItem id="windows-1252" value="Western (Windows-1252)" | |
| 171 actionListener="#{AddFilesPage.encodingListener}"> | |
| 172 <f:param name="characterEncoding" value="windows-1252"/> | |
| 173 </ice:menuItem> | |
| 174 <ice:menuItem id="macintosh" value="Western (MacRoman)" | |
| 175 actionListener="#{AddFilesPage.encodingListener}"> | |
| 176 <f:param name="characterEncoding" value="macintosh"/> | |
| 177 </ice:menuItem> | |
| 178 <ice:menuItem id="ibm850" value="Western (IBM-850)" | |
| 179 actionListener="#{AddFilesPage.encodingListener}"> | |
| 180 <f:param name="characterEncoding" value="ibm850"/> | |
| 181 </ice:menuItem> | |
| 182 <ice:menuItem id="iso-8859-14" value="Celtic (ISO-8859-14)" | |
| 183 actionListener="#{AddFilesPage.encodingListener}"> | |
| 184 <f:param name="characterEncoding" value="iso-8859-14"/> | |
| 185 </ice:menuItem> | |
| 186 <ice:menuItem id="iso-8859-7" value="Greek (ISO-8859-7)" | |
| 187 actionListener="#{AddFilesPage.encodingListener}"> | |
| 188 <f:param name="characterEncoding" value="iso-8859-7"/> | |
| 189 </ice:menuItem> | |
| 190 <ice:menuItem id="windows-1253" value="Greek (Windows-1253)" | |
| 191 actionListener="#{AddFilesPage.encodingListener}"> | |
| 192 <f:param name="characterEncoding" value="windows-1253"/> | |
| 193 </ice:menuItem> | |
| 194 <ice:menuItem id="x-mac-greek" value="Greek (MacGreek)" | |
| 195 actionListener="#{AddFilesPage.encodingListener}"> | |
| 196 <f:param name="characterEncoding" value="x-mac-greek"/> | |
| 197 </ice:menuItem> | |
| 198 <ice:menuItem id="x-mac-icelandic" value="Icelandic (MacIcelandic)" | |
| 199 actionListener="#{AddFilesPage.encodingListener}"> | |
| 200 <f:param name="characterEncoding" value="x-mac-icelandic"/> | |
| 201 </ice:menuItem> | |
| 202 <ice:menuItem id="iso-8859-10" value="Nordic (ISO-8859-10)" | |
| 203 actionListener="#{AddFilesPage.encodingListener}"> | |
| 204 <f:param name="characterEncoding" value="iso-8859-10"/> | |
| 205 </ice:menuItem> | |
| 206 <ice:menuItem id="iso-8859-3" value="South European (ISO-8859-3)" | |
| 207 actionListener="#{AddFilesPage.encodingListener}"> | |
| 208 <f:param name="characterEncoding" value="iso-8859-3"/> | |
| 209 </ice:menuItem> | |
| 210 </ice:menuItem> | |
| 211 <ice:menuItem value="East European"> | |
| 212 <ice:menuItem id="iso-8859-4" value="Baltic (ISO-8859-4)" | |
| 213 actionListener="#{AddFilesPage.encodingListener}"> | |
| 214 <f:param name="characterEncoding" value="iso-8859-4"/> | |
| 215 </ice:menuItem> | |
| 216 <ice:menuItem id="iso-8859-13" value="Baltic (ISO-8859-13)" | |
| 217 actionListener="#{AddFilesPage.encodingListener}"> | |
| 218 <f:param name="characterEncoding" value="iso-8859-13"/> | |
| 219 </ice:menuItem> | |
| 220 <ice:menuItem id="windows-1257" value="Baltic (Windows-1257)" | |
| 221 actionListener="#{AddFilesPage.encodingListener}"> | |
| 222 <f:param name="characterEncoding" value="windows-1257"/> | |
| 223 </ice:menuItem> | |
| 224 <ice:menuItem id="iso-8859-5" value="Cyrillic (ISO-8859-5)" | |
| 225 actionListener="#{AddFilesPage.encodingListener}"> | |
| 226 <f:param name="characterEncoding" value="iso-8859-5"/> | |
| 227 </ice:menuItem> | |
| 228 <ice:menuItem id="iso-ir-111" value="Cyrillic (ISO-IR-111)" | |
| 229 actionListener="#{AddFilesPage.encodingListener}"> | |
| 230 <f:param name="characterEncoding" value="iso-ir-111"/> | |
| 231 </ice:menuItem> | |
| 232 <ice:menuItem id="windows-1251" value="Cyrillic (Windows-1251)" | |
| 233 actionListener="#{AddFilesPage.encodingListener}"> | |
| 234 <f:param name="characterEncoding" value="windows-1251"/> | |
| 235 </ice:menuItem> | |
| 236 <ice:menuItem id="x-mac-cyrillic" value="Cyrillic (MacCyrillic)" | |
| 237 actionListener="#{AddFilesPage.encodingListener}"> | |
| 238 <f:param name="characterEncoding" value="x-mac-cyrillic"/> | |
| 239 </ice:menuItem> | |
| 240 <ice:menuItem id="x-mac-ukrainian" value="Cyrillic/Ukrainian (MacUkrainian)" | |
| 241 actionListener="#{AddFilesPage.encodingListener}"> | |
| 242 <f:param name="characterEncoding" value="x-mac-ukrainian"/> | |
| 243 </ice:menuItem> | |
| 244 <ice:menuItem id="koi8-r" value="Cyrillic (KOI8-R)" | |
| 245 actionListener="#{AddFilesPage.encodingListener}"> | |
| 246 <f:param name="characterEncoding" value="koi8-r"/> | |
| 247 </ice:menuItem> | |
| 248 <ice:menuItem id="koi8-u" value="Cyrillic/Ukrainian (KOI8-U)" | |
| 249 actionListener="#{AddFilesPage.encodingListener}"> | |
| 250 <f:param name="characterEncoding" value="koi8-u"/> | |
| 251 </ice:menuItem> | |
| 252 <ice:menuItem id="x-mac-croatian" value="Croatian (MacCroatian)" | |
| 253 actionListener="#{AddFilesPage.encodingListener}"> | |
| 254 <f:param name="characterEncoding" value="x-mac-croatian"/> | |
| 255 </ice:menuItem> | |
| 256 <ice:menuItem id="x-mac-romanian" value="Romanian (MacRomanian)" | |
| 257 actionListener="#{AddFilesPage.encodingListener}"> | |
| 258 <f:param name="characterEncoding" value="x-mac-romanian"/> | |
| 259 </ice:menuItem> | |
| 260 <ice:menuItem id="iso-8859-16" value="Romanian (ISO-8859-16)" | |
| 261 actionListener="#{AddFilesPage.encodingListener}"> | |
| 262 <f:param name="characterEncoding" value="iso-8859-16"/> | |
| 263 </ice:menuItem> | |
| 264 <ice:menuItem id="iso-8859-2" value="Central European (ISO-8859-2)" | |
| 265 actionListener="#{AddFilesPage.encodingListener}"> | |
| 266 <f:param name="characterEncoding" value="iso-8859-2"/> | |
| 267 </ice:menuItem> | |
| 268 <ice:menuItem id="windows-1250" value="Central European (Windows-1250)" | |
| 269 actionListener="#{AddFilesPage.encodingListener}"> | |
| 270 <f:param name="characterEncoding" value="windows-1250"/> | |
| 271 </ice:menuItem> | |
| 272 <ice:menuItem id="x-mac-ce" value="Central European (MacCE)" | |
| 273 actionListener="#{AddFilesPage.encodingListener}"> | |
| 274 <f:param name="characterEncoding" value="x-mac-ce"/> | |
| 275 </ice:menuItem> | |
| 276 <ice:menuItem id="ibm855" value="Cyrillic (IBM-855)" | |
| 277 actionListener="#{AddFilesPage.encodingListener}"> | |
| 278 <f:param name="characterEncoding" value="ibm855"/> | |
| 279 </ice:menuItem> | |
| 280 </ice:menuItem> | |
| 281 <ice:menuItem value="East Asian"> | |
| 282 <ice:menuItem id="iso-2022-jp" value="Japanese (ISO-2022-JP)" | |
| 283 actionListener="#{AddFilesPage.encodingListener}"> | |
| 284 <f:param name="characterEncoding" value="iso-2022-jp"/> | |
| 285 </ice:menuItem> | |
| 286 <ice:menuItem id="shift_jis" value="Japanese (Shift_JIS)" | |
| 287 actionListener="#{AddFilesPage.encodingListener}"> | |
| 288 <f:param name="characterEncoding" value="shift_jis"/> | |
| 289 </ice:menuItem> | |
| 290 <ice:menuItem id="euc-jp" value="Japanese (EUC-JP)" | |
| 291 actionListener="#{AddFilesPage.encodingListener}"> | |
| 292 <f:param name="characterEncoding" value="euc-jp"/> | |
| 293 </ice:menuItem> | |
| 294 <ice:menuItem id="big5" value="Chinese Traditional (Big5)" | |
| 295 actionListener="#{AddFilesPage.encodingListener}"> | |
| 296 <f:param name="characterEncoding" value="big5"/> | |
| 297 </ice:menuItem> | |
| 298 <ice:menuItem id="big5-hkscs" value="Chinese Traditional (Big5-HKSCS)" | |
| 299 actionListener="#{AddFilesPage.encodingListener}"> | |
| 300 <f:param name="characterEncoding" value="big5-hkscs"/> | |
| 301 </ice:menuItem> | |
| 302 <ice:menuItem id="x-euc-tw" value="Chinese Traditional (EUC-TW)" | |
| 303 actionListener="#{AddFilesPage.encodingListener}"> | |
| 304 <f:param name="characterEncoding" value="x-euc-tw"/> | |
| 305 </ice:menuItem> | |
| 306 <ice:menuItem id="gb2312" value="Chinese Simplified (GB2312)" | |
| 307 actionListener="#{AddFilesPage.encodingListener}"> | |
| 308 <f:param name="characterEncoding" value="gb2312"/> | |
| 309 </ice:menuItem> | |
| 310 <ice:menuItem id="hz-gb-2312" value="Chinese Simplified (HZ)" | |
| 311 actionListener="#{AddFilesPage.encodingListener}"> | |
| 312 <f:param name="characterEncoding" value="hz-gb-2312"/> | |
| 313 </ice:menuItem> | |
| 314 <ice:menuItem id="gbk" value="Chinese Simplified (GBK)" | |
| 315 actionListener="#{AddFilesPage.encodingListener}"> | |
| 316 <f:param name="characterEncoding" value="gbk"/> | |
| 317 </ice:menuItem> | |
| 318 <ice:menuItem id="iso-2022-cn" value="Chinese Simplified (ISO-2022-CN)" | |
| 319 actionListener="#{AddFilesPage.encodingListener}"> | |
| 320 <f:param name="characterEncoding" value="iso-2022-cn"/> | |
| 321 </ice:menuItem> | |
| 322 <ice:menuItem id="euc-kr" value="Korean (EUC-KR)" | |
| 323 actionListener="#{AddFilesPage.encodingListener}"> | |
| 324 <f:param name="characterEncoding" value="euc-kr"/> | |
| 325 </ice:menuItem> | |
| 326 <ice:menuItem id="x-johab" value="Korean (JOHAB)" | |
| 327 actionListener="#{AddFilesPage.encodingListener}"> | |
| 328 <f:param name="characterEncoding" value="x-johab"/> | |
| 329 </ice:menuItem> | |
| 330 <ice:menuItem id="iso-2022-kr" value="Korean (ISO-2022-KR)" | |
| 331 actionListener="#{AddFilesPage.encodingListener}"> | |
| 332 <f:param name="characterEncoding" value="iso-2022-kr"/> | |
| 333 </ice:menuItem> | |
| 334 </ice:menuItem> | |
| 335 <ice:menuItem value="Unicode"> | |
| 336 <ice:menuItem id="utf-8" value="Unicode (UTF-8)" | |
| 337 actionListener="#{AddFilesPage.encodingListener}"> | |
| 338 <f:param name="characterEncoding" value="utf-8"/> | |
| 339 </ice:menuItem> | |
| 340 <ice:menuItem id="utf-16le" value="Unicode (UTF-16LE)" | |
| 341 actionListener="#{AddFilesPage.encodingListener}"> | |
| 342 <f:param name="characterEncoding" value="utf-16le"/> | |
| 343 </ice:menuItem> | |
| 344 <ice:menuItem id="utf-16be" value="Unicode (UTF-16BE)" | |
| 345 actionListener="#{AddFilesPage.encodingListener}"> | |
| 346 <f:param name="characterEncoding" value="utf-16be"/> | |
| 347 </ice:menuItem> | |
| 348 </ice:menuItem> | |
| 349 </ice:menuItem> | |
| 350 </ice:menuBar> | |
| 351 | |
| 352 | |
| 353 | |
| 354 </td> | |
| 355 </tr> | |
| 356 </tbody> | |
| 357 </table> | |
| 358 </ice:panelGroup> | |
| 359 | |
| 360 <ice:panelGroup rendered="#{AddFilesPage.networkDataIngestRequested}"> | |
| 361 <ice:outputText styleClass="vdcTextStandout" value="GraphML files will be made available for online network data analysis."/> | |
| 362 </ice:panelGroup> | |
| 363 <ice:panelGroup rendered="#{AddFilesPage.zipMultipleFilesSelected}"> | |
| 364 <ice:outputText styleClass="vdcTextStandout" escape="false" value="You have selected to upload *multiple files* in a zipped archive. Click Browse to select the valid Zip file; it will be unpacked, and the individual items will be ingested as separate Study Files. <strong>If you would like to ingest a Zip archive as a single file, upload it as type "other"</strong>."/> | |
| 365 </ice:panelGroup> | |
| 366 <ice:panelGroup rendered="#{AddFilesPage.tarMultipleFilesSelected}"> | |
| 367 <ice:outputText styleClass="vdcTextStandout" escape="false" value="You have selected to upload *multiple files* in a tar archive. Click Browse to select the valid .tar (or .tar.gz or .tgz or .tar.bz2) file; it will be unpacked, and the individual items will be ingested as separate Study Files. <strong>If you would like to ingest a tar archive as a single file, upload it as type "other"</strong>."/> | |
| 368 </ice:panelGroup> | |
| 369 <ice:panelGroup rendered="#{AddFilesPage.FITSIngestRequested}"> | |
| 370 <ice:outputText styleClass="vdcTextStandout" value="(NEW/Beta!) Basic metadata extracted from FITS files will be made searchable in the application."/> | |
| 371 </ice:panelGroup> | |
| 372 <ice:panelGroup rendered="#{!AddFilesPage.typeNotSelected and !AddFilesPage.controlCardIngestRequested and !AddFilesPage.controlCardIngestInProgress and !AddFilesPage.otherSubsettableIngestRequested and !AddFilesPage.networkDataIngestRequested and !AddFilesPage.zipMultipleFilesSelected}"> | |
| 373 <ice:outputText styleClass="vdcTextStandout" value="Click Browse to select the file you wish to upload."/> | |
| 374 </ice:panelGroup> | |
| 375 </div> | |
| 376 </div> | |
| 377 <ice:outputText id="tarValidationError" nospan="true" escape="false" value="<p style="margin-top:0;" class="warnMessage"><img src="/dvn/resources/images/icon_warning.18.png" class="dvn_icon" /> #{AddFilesPage.tarValidationErrorMessage} <p>" rendered="#{AddFilesPage.tarValidationErrorMessage != null}"/> | |
| 378 | |
| 379 <!-- l.a. "inputfile" component commented out: | |
| 380 <ice:inputFile id="inputFileComponent" | |
| 381 autoUpload="true" | |
| 382 submitOnUpload="postUpload" | |
| 383 actionListener="#{AddFilesPage.uploadFile}" | |
| 384 binding="#{AddFilesPage.inputFile}" | |
| 385 styleClass="dvnAddFilesInput" | |
| 386 disabled="#{AddFilesPage.typeNotSelected}"> | |
| 387 l.a. --> | |
| 388 <!-- <ice:commandButton binding="#{AddFilesPage.inputFile}"/> --> | |
| 389 <!-- l.a. rest of "inputfile" component commented out | |
| 390 <ice:outputStyle rel="stylesheet" type="text/css" href="/resources/css/stylesheet.css"/> | |
| 391 </ice:inputFile> | |
| 392 <br/> | |
| 393 <ice:message layout="table" globalOnly="false" for="inputFileComponent" | |
| 394 showDetail="true" showSummary="false" styleClass="errorMessage"/> | |
| 395 | |
| 396 l.a. --> | |
| 397 | |
| 398 <!-- l.a. new "file entry" icefaces-ace component: --> | |
| 399 <span class="top"> | |
| 400 <ace:fileEntry id="file-entry" | |
| 401 disabled="#{AddFilesPage.typeNotSelected}" | |
| 402 relativePath="/temp/" | |
| 403 maxFileCount="1" | |
| 404 maxFileCountMessage="Limited to 1 file upload only (for now)" | |
| 405 fileEntryListener="#{AddFilesPage.uploadFileListener}" | |
| 406 maxFileSize="2147483648" | |
| 407 maxFileSizeMessage="Submitted file is too large." | |
| 408 maxTotalSize="2147483648" | |
| 409 maxTotalSizeMessage="Total size of submitted files is too large." | |
| 410 useOriginalFilename="true" | |
| 411 useSessionSubdir="false" /> | |
| 412 | |
| 413 <h:commandButton id="addFile" value="Add File" style="display:none"/> | |
| 414 </span> | |
| 415 </ice:panelGroup> | |
| 416 | |
| 417 <!-- | |
| 418 This is a very basic table comprising four columns. Each | |
| 419 row represents an inventory item. Each column represents a | |
| 420 inventory item property. commandSortHeader components have been | |
| 421 added ot the table headers. | |
| 422 | |
| 423 The sortAscending and sortColumn attributes are set when a command | |
| 424 sortColumnName header is activated. The sortColumn and sortAscending | |
| 425 data can then be sortColumnName by a sortColumnName algorithm if a | |
| 426 change is detected. | |
| 427 --> | |
| 428 <!-- this is a dummy datatable wrapper used to force data retention on validation error--> | |
| 429 <ice:dataTable cellpadding="0" cellspacing="0" width="100%" id="dummy_datatable" | |
| 430 value="dummy_datatable" styleClass="dvnAddFilesOuterTable"> | |
| 431 <ice:column> | |
| 432 <ice:dataTable cellpadding="0" cellspacing="0" width="100%" rendered="true" | |
| 433 id="fileDataTable" styleClass="dvnAddFilesTable" | |
| 434 columnWidths="20%,20%,40%,10%,10%" | |
| 435 value="#{AddFilesPage.fileList}" binding="#{AddFilesPage.filesDataTable}" var="fileBean"> | |
| 436 <ice:column id="catCol"> | |
| 437 <ice:panelGroup block="true" id="panel1" styleClass="dvnAddFilesCatCol"> | |
| 438 <!-- note that the Javascript functions currently depends on the placement and ids of these fields (and the dropdown box; | |
| 439 changing them may require corresponding changes in the Javascript --> | |
| 440 <ice:selectBooleanCheckbox id="catCheckbox" onclick="updateCategory(this);"/> | |
| 441 <ice:inputText id="catTextField" size="28" value="#{fileBean.fileMetadata.category}" onfocus="deselectCategory(this);"/> | |
| 442 </ice:panelGroup> | |
| 443 <f:facet name="header" id="f1"> | |
| 444 <ice:panelGroup id="catColPanelGroup" styleClass="dvnAddFilesTableCategory"> | |
| 445 <ice:outputLabel id="catDesc" value="Category"/> | |
| 446 <!-- l.a. --> | |
| 447 <ice:selectOneMenu id="catDropdown" onchange="updateAllCheckedCategories(this);"> | |
| 448 <f:selectItems value="#{AddFilesPage.fileCategories}"/> | |
| 449 </ice:selectOneMenu> | |
| 450 <!-- l.a. --> | |
| 451 </ice:panelGroup> | |
| 452 </f:facet> | |
| 453 </ice:column> | |
| 454 <ice:column> | |
| 455 <f:facet name="header"> | |
| 456 <ice:outputLabel value="File Name"/> | |
| 457 </f:facet> | |
| 458 <ice:inputText id="input_filename" size="24" value="#{fileBean.fileMetadata.label}" required="true" | |
| 459 requiredMessage="This field is required." | |
| 460 validator="#{AddFilesPage.validateFileName}" /> | |
| 461 <!-- "this.form.submit();"/> | |
| 462 <f:param name="fileName" value="#{fileBean.fileMetadata.label}"/> --> | |
| 463 <ice:message for="input_filename" styleClass="errorMessage"/> | |
| 464 <!--<ice:outputText rendered="#{AddFilesPage.controlCardFilename != null}" value="Control Card: #{AddFilesPage.controlCardFilename}"/>--> | |
| 465 <ice:outputText rendered="#{fileBean.controlCardFileName != null}" value="Control Card: #{fileBean.controlCardFileName}"/> | |
| 466 </ice:column> | |
| 467 <ice:column> | |
| 468 <f:facet name="header"> | |
| 469 <ice:outputLabel value="Description"/> | |
| 470 </f:facet> | |
| 471 <ice:inputTextarea id="description_filename" styleClass="dvnTextareaAuto" cols="38" rows="2" | |
| 472 value="#{fileBean.fileMetadata.description}" /> | |
| 473 </ice:column> | |
| 474 <ice:column> | |
| 475 <f:facet name="header"> | |
| 476 <ice:outputLabel value="Size (bytes)"/> | |
| 477 </f:facet> | |
| 478 <ice:outputText size="25" value="#{fileBean.sizeFormatted}"/> | |
| 479 </ice:column> | |
| 480 <ice:column> | |
| 481 <f:facet name="header"> | |
| 482 <ice:outputLabel value="Remove"/> | |
| 483 </f:facet> | |
| 484 <ice:commandLink value="Remove" id="removeFile" actionListener="#{AddFilesPage.removeFile_action}"> | |
| 485 <f:param name="removeAction" value="#{AddFilesPage.filesDataTable.rowIndex}"/> | |
| 486 </ice:commandLink> | |
| 487 </ice:column> | |
| 488 </ice:dataTable> | |
| 489 </ice:column> | |
| 490 </ice:dataTable> | |
| 491 <ice:panelGroup block="true" styleClass="dvnFormPadding" rendered="#{AddFilesPage.emailRequested}"> | |
| 492 <ice:outputText styleClass="vdcTextStandout" value="NOTE:"/> | |
| 493 <ice:outputText id="email" escape="false" styleClass="warnMessage" | |
| 494 value="Subsettable files might take a long time to upload and be processed. We will send you an e-mail notification when the upload process starts and when it completes."/> | |
| 495 <br/> | |
| 496 <ice:outputText value="E-Mail Address:"/> | |
| 497 <ice:inputText id="textField3" size="50" value="#{AddFilesPage.ingestEmail}"> | |
| 498 <f:validator validatorId="EmailValidator"/> | |
| 499 </ice:inputText> | |
| 500 <br/> | |
| 501 <ice:outputText id="emailmany" escape="false" styleClass="warnMessage" | |
| 502 value="Separate multiple e-mail addresses with a comma (and no spaces)."/> | |
| 503 <ice:message for="textField3" id="validatorMessage" styleClass="errorMessage"/> | |
| 504 </ice:panelGroup> | |
| 505 <div class="dvnFormPadding dvnFormMargin"> | |
| 506 <ice:commandButton id="saveButton" value="Save" actionListener="#{AddFilesPage.openPopup}" disabled ="#{empty AddFilesPage.fileList}"/> | |
| 507 <ice:commandButton id="cancelButton" value="Cancel" immediate="true" action="#{AddFilesPage.cancel_action}"/> | |
| 508 </div> | |
| 509 </ice:form> | |
| 510 </div> | |
| 511 </div> | |
| 512 </div> | |
| 513 </ui:define> | |
| 514 </ui:composition> | |
| 515 </h:body> | |
| 516 </html> |
