source: main/trunk/model-sites-dev/waikato-edu/collect/README-science-activities.txt@ 33696

Last change on this file since 33696 was 33696, checked in by ak19, 4 years ago

Moved the individual READMEs into the top level too along with modifications. Corrected references to them in the top README file.

File size: 8.7 KB
Line 
1--------------------
2 README
3--------------------
4A. RECREATING THE science-activities GREENSTONE COLLECTION's import FOLDER'S CONTENTS FROM SCRATCH
5B. REBUILDING THE science-activities COLLECTION
6C. VIEWING THE COLLECTION WHEN IT'S ALREADY BEEN BUILT
7D. INFORMATION AND WARNINGS
8
9
10
11A. RECREATING THE science-activities GREENSTONE COLLECTION's import FOLDER'S CONTENTS FROM SCRATCH
12---------------------------------------------------------------------------------------------------
13ONLY if you ever want to REGENERATE the folders for ingesting into GS3 your crate folders, PDF/Word files and metadata, then:
14
150. Obtain the TT4.02 Science Resources Crates content from the Uni of Waikato Education Department. We do not have the permission to distribute it or make it public.
16But assuming the Education Dept. has given this content you in a zip format, follow the instructions below.
17
181. Extract the TT4.02_Science Resources_Crates.zip, which will create a folder called TT4.02_Science Resources_Crates.
19For example, extract it on the Desktop and your Windows desktop will now have a new folder called "TT4.02_Science Resources_Crates".
20If not already present, obtain the 14 .csv files labelled between A-1 to F-2 from the Education department and put them into the new TT4.02_Science Resources_Crates folder.
21
222. Next, move the file web/sites/waikato-edu/collect/science-activities/DATA-PREPARATION/procCrates.bat into the new TT4.02_Science Resources_Crates folder as well.
23
24In our example, your extracted TT4.02_Science Resources_Crates was on the Desktop, e.g. at C:\Users\You\Desktop\TT4.02_Science Resources_Crates
25Whatever the actual location, remember it and use it in the following. I will stick with the example of C:\Users\You\Desktop\TT4.02_Science Resources_Crates
26
27Double-click on the procCrates.bat script.
28
29Wait until the procCrates.bat script has finished processing the TT4.02_Science Resources_Crates folder contents. It should have created a folder called "import" in C:\Users\You\Desktop\TT4.02_Science Resources_Crates.
30
31[ONLY IF things didn't work out correctly in step a, then you can delete any folder called "import" that it produced and run the procCrates.bat script manually, to look for any issues.
32
33Open a DOS prompt:
34 first hold down the Windows key on the keyboard (located between Alt and Ctrl keys) and press the R key (R for run);
35 then a little dialog will pop up. Type "cmd" into its edit field and press enter and a DOS prompt will appear.
36
37In the DOS prompt, type:
38 cd C:\Users\You\Desktop\TT4.02_Science Resources_Crates
39(i.e. "cd" followed by the full path to the actual location of your extracted folder)
40
41Next type:
42 procCrates.bat
43
44Wait for the script to finish.
45]
46
473. ONLY if you now want to reingest and rebuild your collection with the contents of the new import folder, use a file browser to do the following:
48- Delete all except the top-level metadata.xml file in your Greenstone 3 installation's "web/sites/waikato-edu/collect/science-activities/import" folder.
49- Go into the "C:\Users\You\Desktop\TT4.02_Science Resources_Crates\import" folder. You should see subfolders A-1 to F-2.
50- MOVE all these into your Greenstone 3 installation's "web/sites/waikato-edu/collect/science-activities/import" folder, where you should already have the old solitary metadata.xml file at this level.
51
52To rebuild the science-activities collection, follow the instructions under "REBUILDING THE SCIENCE ACTIVITIES COLLECTION" below.
53
54
55
56B. REBUILDING THE science-activities COLLECTION
57------------------------------------------------
581. Run the GLI/Greenstone Librarian Interface application of your installed Greenstone.
592. In GLI, select File > Open. Choose your "science-activities" collection.
603. When this finishes opening, click on the Create tab in GLI.
614. Find the Build Collection button at the bottom and press it. This can take a long time, maybe 15 mins or more. Eventually it will finish building and you can press the Preview button also at the bottom of the Create pane to have it open a browser for you and show you the finished collection.
62
63
64
65C. VIEWING THE COLLECTION WHEN IT'S ALREADY BEEN BUILT BEFORE
66--------------------------------------------------------------
67You only have to rebuild a collection when you make changes to it or if it's never been built before.
68Otherwise, if a collection has already been built at some point and hasn't been modified since, you can preview it directly as follows.
69
70Start your Greenstone's installation's "Greenstone Server" application. Pressing this application's "Enter Library" button should open your default browser on your Greenstone DL home page. Visit your new science-activities collection, as it's prebuilt.
71
72
73
74D. INFORMATION AND WARNINGS
75----------------------------
76- I exported each crate's .csv file individually from Excel (by default it exports in ASCII encoding format, so I left it as such and let the procCrates.bat script deal with this).
77I did this by opening the "Crates (TT4.02).xlsx" file that was in the TT4.02_Science Resources_Crates.zip downloaded from your Google drive. Then I clicked on each sheet and did Save As > *.csv (the most basic CSV option).
78
79- the procCrates.bat now processes each crate's csv file and outputs additional metadata from before.
80In processing each csv file, it simplifies the Activity Name (handles &, ", ', etc) to make it more compatible as metadata for Greenstone.
81NOTE: I have had to change / (forward slash) to ; (semi-colon) as the / is used as a hierarchy separator by the browsing classifier code.
82
83- The collections in the "waikato-edu" Greenstone site make use of the custom Greenstone metadata set file "educationresources.mds".
84It can be found at waikato-edu/collect/science-activities/metadata/educationresources.mds (if you've already moved the waikato-edu site into your Greenstone 3 installation, it can be found within your Greenstone 3 installation directory at web/sites/waikato-edu/collect/science-activities/metadata/educationresources.mds).
85 * You can copy the educationresources.mds file into gli/metadata to re-use it for other collections you create from scratch.
86 * Alternatively, any collection created based on the science-activities collection will automatically inherit a copy of hte educationresources.mds Greenstone metadata set file.
87
88- I've modified web/sites/waikato-edu/siteConfig.xml with a single additional line to have a word icon for docx files too (not just for the old .doc files). The additional line is:
89 <replace macro="_icondocx_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
90
91- In GLI's Design tab, I configured the plugins used to build your collection, and set up the search indexes and browsing classifiers that should be available:
92 only one search Index on ActivityName, as you requested
93 and one browsing classifier that works with the newly introduced er.CrateHierarchy metadata
94- I used GLI's Format tab to set up the display of the search results and browsing classifier content.
95Basically, when you BROWSE to an activity, under the activity name you will see its document(s). For each document: you get an icon linked to the HTML version of each document (produced by Greenstone), an appropriate icon linking to the original document format (PDF or docx) and the FILENAME of the document, since the activity name of the browser is what the filename is found under.
96When you SEARCH for an activity name or part of an activity name, you once more get the HTML doc icon and source doc icon but this is then further followed by the ACTIVITY NAME and then the filename in brackets.
97
98Based on the changes made to GLI's Design and Format panels, a customised collectionConfig.xml is generated for this collection. When you create future collections through GLI, you can use "Base collection on" option in GLI's New Collection dialog to base those future collections on the design and formatting of this collection (make sure you assign the same metadata). Making this choice in GLI will automatically reuse the same collectionConfig.xml, inheriting all its configurations. The new collection thus created will also get to use the same metadata sets, including the custom one we prepared, "educationresources.mds".
99
100So all the hard work here went into procCrates.bat and into setting up the collection's configuration, which produced collectionConfig.xml.
101
102
103WARNINGS
104Beware not to change the encoding of procCrates.bat from ASCII to UTF-8 or other encodings. If you wish to edit this file, open it in Notepad++ and leave it's encoding in ASCII.
105
106------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.