Changeset 34263
- Timestamp:
- 2020-07-11T23:32:49+12:00 (4 years ago)
- Location:
- main/trunk/gli
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/classes/dictionary.properties
r32515 r34263 532 532 ExportAsPrompt.MappingXML_Tooltip:Use a mapping file for converting the exported files. 533 533 # 534 #***** Export Metadata to CSV ***** 535 ExportMeta.ChooseMetaCSVFile: Export metadata from GLI to a new CSV file or add to existing 536 # 534 537 #***** Inherited Metadata ***** 535 538 ExtractedMetadata.Message:The selected file or folder contains extracted metadata, but it is currently hidden. To view extracted metadata go to the "File" menu and select "Preferences". In the "General" properties sheet select "View Extracted Metadata", then click "Ok". … … 781 784 Menu.File_Exit:Exit 782 785 Menu.File_ExportAs:Export... 786 Menu.File_ExportMeta:Export metadata... 783 787 Menu.File_New:New... 784 788 Menu.File_Open:Open... -
main/trunk/gli/lib/README.txt
r31649 r34263 37 37 - logging: appears to be from commons-logging. 38 38 - not sure where the 4 other subfolders of commons (beanutils, collections, digester, httpclient) are from. See commit message of http://trac.greenstone.org/log/gli/trunk/lib/apache.jar?rev=14319 for ideas. 39 39 - csv: ADDED 11/07/2020 from commons-csv-1.8.jar 40 40 41 41 Essentially, in commit 29729, the entire contents of GS3 web-lib's xml-apis.jar and xercesImpl.jar have been added to apache.jar after unzipping it, replacing earlier versions already present. The "javax" and "licence" toplevel folders of apache.jar are proper additions, deriving from xml-apis.jar. All other contents of apache.jar have been left as they were. … … 45 45 UPDATING apache.jar 46 46 --------------------------- 47 Create a folder in gli/lib called apache. 48 Copy apache.jar from gli/lib into gli/lib/apache. 49 Then go into the new apache folder and unjar (unzip) the apache.jar there: 50 > cd apache 51 > jar -xvf apache.jar 47 52 48 After unzipping apache.jar, its contents were updated to use the later xerces and xml-apis as described above. 53 54 After unzipping apache.jar, its contents were updated to use the later xerces and xml-apis as described in the sections above. 49 55 50 56 How to recreate the apache.jar: 51 57 > cd gli/lib/apache 52 58 > jar -cvf apache.jar * 59 > jar -tvf apache.jar 60 (to check the contents of the jar file just created) 53 61 54 The apache.jar file gets generated inside gli/lib/apache, move it into gli/lib . Then commit it.62 The apache.jar file gets generated inside gli/lib/apache, move it into gli/lib replacing any older versions. Then commit it. 55 63 56 64 Further changes to makejar.sh/bat, to mention the new javax subfolder, since it may also need to be unzipped from apache.jar along with the other contained libraries, so that xml-apis' javax too can be included in GLI.jar when this is generated, in case there is any dependence on javax in the rest of xml-apis' classes. -
main/trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r34247 r34263 67 67 import org.greenstone.gatherer.util.Utility; 68 68 69 import org.greenstone.gatherer.metadata.MetadataToCSV; 69 70 70 71 /** The GUIManager is in charge of creating the Gatherer window frame then filling it with the goodness of the view panes. GUIManager not only creates these panes, but allows some messaging between them. Furthermore GUIManager includes functionality from menu driven choices, simply as it was easier to put it here once and have it accessible from all pane children. */ … … 197 198 eap.destroy(); 198 199 eap = null; 200 } 201 else if (esrc == menu_bar.file_exportmeta) { 202 String currCollName = Gatherer.c_man.getCollection().getName(); 203 String collection_directory_path = CollectionManager.getCollectionDirectoryPath(currCollName); 204 205 String importDir = collection_directory_path + File.separator + "import"; 206 File selectedFile = MetadataToCSV.chooseMetaCSVFile(importDir, this); 207 if(selectedFile != null) { 208 MetadataToCSV toCSV = new MetadataToCSV(collection_directory_path, selectedFile); 209 //toCSV.printOrderedCollectionMeta(); 210 toCSV.exportGLIMetaToCSV(new File(importDir, "metadata.csv")); 211 } 199 212 } 200 213 else if (esrc == menu_bar.file_exit) { -
main/trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java
r30701 r34263 69 69 public JMenuItem file_exit = null; 70 70 public JMenuItem file_exportas = null; 71 public JMenuItem file_exportmeta = null; 71 72 public JMenuItem file_new = null; 72 73 public JMenuItem file_open = null; … … 122 123 file_exportas.setEnabled(!Gatherer.isGsdlRemote); 123 124 file_exportas.setComponentOrientation(Dictionary.getOrientation()); 125 126 file_exportmeta = new JMenuItem(Dictionary.get("Menu.File_ExportMeta")); 127 file_exportmeta.addActionListener(Gatherer.g_man); 128 file_exportmeta.setEnabled(!Gatherer.isGsdlRemote); 129 file_exportmeta.setComponentOrientation(Dictionary.getOrientation()); 124 130 125 131 file_new = new JMenuItem(Dictionary.get("Menu.File_New")); … … 148 154 file.add(file_delete); 149 155 file.add(file_exportas); 156 file.add(file_exportmeta); 150 157 // these currently don't work. better to just disable them? 151 158 if (!Gatherer.GS3) {
Note:
See TracChangeset
for help on using the changeset viewer.