Ignore:
Timestamp:
2019-11-15T22:09:56+13:00 (4 years ago)
Author:
ak19
Message:

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

File:
1 moved

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/waikato-edu/collect/README-science-activities.txt

    r33693 r33696  
    22  README
    33--------------------
     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
    48
    5 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.
     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.
    616But assuming the Education Dept. has given this content you in a zip format, follow the instructions below.
    717
    8 1. Extract the TT4.02_Science Resources_Crates.zip, which will create a folder called TT4.02_Science Resources_Crates.zip
    9 For example, extract it on the Desktop and your Windows desktop will now have a new folder TT4.02_Science Resources_Crates.
     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.
    1021
    11 2. Next, move the files procCrates.bat and all 14 of the .csv files (A-1 to F-2) into the new TT4.02_Science Resources_Crates folder
     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.
    1223
    13 3. Move the "sciencea.gs3coll" folder into your Greenstone 3.09rc1 installation's "web\sites\localsite\collect" folder.
     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
    1426
    15 4. Move the siteConfig.xml file  into your Greenstone 3.09rc1 installation's "web\sites\localsite" folder, thereby replacing the existing file there.
     27Double-click on the procCrates.bat script.
    1628
    17 5. Start 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.
     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.
    1830
    19 --------------------
    20 TO REGENERATE THE MATERIALS FOR YOUR COLLECTION AND TO REBUILD THAT COLLECTION:
    21 4. ONLY if you ever want to REGENERATE the folders for ingesting into GS3 your crate folders, PDF/Word files and metadata, then:
     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.
    2232
    23 In our example, your extracted TT4.02_Science Resources_Crates was on the Desktop, e.g. C:\Liang\Desktop\TT4.02_Science Resources_Crates
    24 Whatever the actual location, remember it and use it in the following. I will stick with the example of C:\Liang\Desktop\TT4.02_Science Resources_Crates
    25 
    26 a. Open a DOS prompt:
     33Open a DOS prompt:
    2734    first hold down the Windows key on the keyboard (located between Alt and Ctrl keys) and press the R key (R for run);
    2835    then a little dialog will pop up. Type "cmd" into its edit field and press enter and a DOS prompt will appear.
    2936
    3037In the DOS prompt, type:
    31     cd C:\Liang\Desktop\TT4.02_Science Resources_Crates
     38    cd C:\Users\You\Desktop\TT4.02_Science Resources_Crates
    3239(i.e. "cd" followed by the full path to the actual location of your extracted folder)
    3340
    34 b. type:
     41Next type:
    3542    procCrates.bat
    36    
    37 c. Wait until it finishes. It should have created a folder called "import" in C:\Liang\Desktop\TT4.02_Science Resources_Crates.
    3843
    39 d. ONLY if you now want to reingest and rebuild your collection with these new folders, use a file browser to do the following:
    40 - Delete all but the top-level metadata.xml file in your Greenstone 3.09 (rc1) installation's "web\sites\localsite\collect\sciencea\import" folder.
    41 - Go into the "C:\Liang\Desktop\TT4.02_Science Resources_Crates\import" folder. You should see subfolders A-1 to F-2.
    42 - MOVE all these into your Greenstone 3.09 (rc1) installation's "web\sites\localsite\collect\sciencea\import" folder, where you should already have the old solitary metadata.xml file at this level.
     44Wait for the script to finish.
     45]
    4346
    44 e. Run the GLI/Greenstone Librarian Interface application of your installed Greenstone.
    45 In GLI, select File > Open. Choose your "Science Activities (sciencea)" collection.
    46 When this finishes opening, click on the Create tab in GLI.
    47 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.
     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.
    4851
    49 --------------------
    50 INFORMATION:
    51 - 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 procCrates.bat below deal with this).
     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).
    5277I 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).
    5378
     
    5681NOTE: I have had to change / (forward slash) to ; (semi-colon) as the / is used as a hierarchy separator by the browsing classifier code.
    5782
    58 - I've modified the Education Resources metadata set to have an extra field called CrateHierarchy, which makes it easier to produce the book nodes.
    59 The educationresources.mds (metadata set file) lives inside your web\sites\localsite\collect\sciencea\metadata folder. You can copy it into gli\metadata to re-use it for other collections.
    60 - I've modified web\sites\localsite\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:
     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:
    6189    <replace macro="_icondocx_" scope="metadata" text="&lt;img src='interfaces/default/images/imsword.gif' border='0'/&gt;" resolve="false"/>
    6290
     
    72100So all the hard work here went into procCrates.bat and into setting up the collection's configuration, which produced collectionConfig.xml.
    73101
    74 --------------------
    75 BEWARE:
     102
     103WARNINGS
    76104Beware 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.
    77105
Note: See TracChangeset for help on using the changeset viewer.