Changeset 17132
- Timestamp:
- 2008-09-04T11:16:50+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r14045 r17132 159 159 plugoutMap.put("DSpace","dublin-core.xml"); 160 160 plugoutMap.put("MARCXML","doc.xml"); 161 plugoutMap.put("METS","doctxt.xml,docmets.xml"); 161 plugoutMap.put("GreenstoneMETS","doctxt.xml,docmets.xml"); 162 plugoutMap.put("FedoraMETS","doctxt.xml,docmets.xml"); 162 163 plugoutMap.put("GA","doc.xml"); 163 164 165 // this is the order we want them to appear in the list 166 String [] saveas_formats = {"GA", "GreenstoneMETS", "FedoraMETS", "MARCXML", "DSpace"}; 164 167 cancel_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 165 168 … … 178 181 179 182 180 // Save As181 ArrayList saveas_formats = new ArrayList(plugoutMap.keySet());182 183 183 184 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs") … … 185 186 //saveas_label.setPreferredSize(LABEL_SIZE); 186 187 187 saveas_combobox = new JComboBox(saveas_formats.toArray());188 saveas_combobox = new JComboBox(saveas_formats); 188 189 saveas_combobox.setOpaque(false); 189 190 saveas_combobox.setToolTipText(Dictionary.get("ExportAsPrompt.SaveAs_Tooltip")); … … 334 335 } 335 336 else{ 336 if (saveas.e quals("METS")){337 if (saveas.endsWith("METS")){ 337 338 convert_xml_pane.add(convert_xml_pane2); 338 339 } … … 448 449 command_parts_list.add(export_dir); 449 450 450 if (!export_type.e quals("METS") && xsl_file1 !=null){451 if (!export_type.endsWith("METS") && xsl_file1 !=null){ 451 452 command_parts_list.add("-xsltfile"); 452 453 command_parts_list.add(xsl_file1.getPath()); … … 477 478 478 479 479 if (export_type.e quals("METS") && xsl_file1 !=null){480 if (export_type.endsWith("METS") && xsl_file1 !=null){ 480 481 command_parts_list.add("-xslt_txt"); 481 482 command_parts_list.add(xsl_file1.getPath()); 482 483 } 483 484 484 if (export_type.e quals("METS") && xsl_file2 !=null){485 if (export_type.endsWith("METS") && xsl_file2 !=null){ 485 486 command_parts_list.add("-xslt_mets"); 486 487 command_parts_list.add(xsl_file2.getPath()); … … 575 576 details = Dictionary.get("ExportAsPrompt.Failed_Details", args); 576 577 } 577 SimpleResultDialog result_dialog = new SimpleResultDialog(t itle, label, details);578 SimpleResultDialog result_dialog = new SimpleResultDialog(this, title, label, details); 578 579 result_dialog.setVisible(true); // Blocks 579 580 result_dialog.dispose(); … … 840 841 } 841 842 842 if (!saveas.e quals("METS")){843 if (!saveas.endsWith("METS")){ 843 844 844 845 convert_xml_checkbox1.setText(Dictionary.get("ExportAsPrompt.ApplyXSL",(String)plugoutMap.get(saveas)));
Note:
See TracChangeset
for help on using the changeset viewer.