-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #522 from tim-moody/0.6.1-misc
mv es-blockly-games to iiab rsync storage in order to rename
- Loading branch information
Showing
14 changed files
with
103 additions
and
4,169 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Content | ||
|
||
While IIAB has a number of interactive applications, most of the value of the server derives from the content installed there. Much of this content can be installed through a GUI in the Admin Console. | ||
|
||
## Kiwix ZIMS | ||
|
||
ZIMS are a compressed form of content published by the WikiMedia Foundation, such as the Wikipedia. There are thousands of these across hundreds of languages and dozens of types of subject matter, and Kiwix attempts to publish a compressed version on a monthly basis. | ||
|
||
(Some of the larger ZIMS may not be published every month.) | ||
|
||
These ZIMS are deployed in /library/zims/content/ and are locally described by the metadata in /library/zims/library.xml. (Only installed ZIMs are included in this file.) | ||
|
||
### Catalogs | ||
|
||
The current catalog is https://library.kiwix.org/catalog/root.xml, which is downloaded by /opt/admin/cmdsrv/scripts/get_kiwix_catalog | ||
|
||
(The previous catalog was at https://ftp.nluug.nl/pub/kiwix/library/library_zim.xml, which is obsolescent and not used by IIAB.) | ||
|
||
get_kiwix_catalog downloads the catalog from Kiwix, parses it, and merges a small catalog of supplementary ZIMS maintained and hosted by IIAB. | ||
|
||
The IIAB ZIM catalog is at https://raw.githubusercontent.com/iiab-share/iiab-content/main/catalogs/iiab-zim-cat.json. | ||
|
||
This merged catalog is used to display the list of available ZIMS by language in the Admin Console under Install Content -> Get ZIM Files from Kiwix. | ||
|
||
The url attribute in the catalog tells CMDSRV where to get the file for download, either directly from Kiwix or from storage maintained by IIAB volunteers. It is always a single file. | ||
|
||
### DiY | ||
|
||
Creating your own ZIM is not trivial, but Kiwix provides tools such as zimwriterfs and mwoffliner for creating ZIMs. Google these for more information. | ||
|
||
https://github.com/iiab-share/iiab-content/tree/main/catalogs contains a subdirectory with a json file for each custom ZIM. | ||
|
||
https://github.com/iiab-share/iiab-content/blob/main/catalogs/mk-zim-cat-item.py can be used to create a catalog item json file, which can then be further edited by hand. | ||
|
||
https://github.com/iiab-share/iiab-content/blob/main/catalogs/mk-zim-cat.py rolls these catalog items up into the IIAB ZIM catalog. | ||
|
||
If you create a custom ZIM you should also create a corresponding Menu Item Definition in Admin Console. | ||
|
||
## OER2Go/RACHEL Modules | ||
|
||
Modules from OER2Go/RACHEL are deployed in /library/www/html/modules. While the majority are from OER2Go/RACHEL, others have been supplied by IIAB volunteers. | ||
|
||
### Catalogs | ||
|
||
RACHEL has discontinued the catalog at http://dev.worldpossible.org/cgi/json_api_v1.pl in favor of http://oer2go.org/cgi/json_api_v2.pl. But the latter is missing attributes used by the Admin Console, so we use an archived copy. | ||
|
||
When Admin Console is installed roles/cmdsrv/files/json/oer2go_catalog.json is copied to /etc/iiab/oer2go_catalog.json. | ||
|
||
IIAB volunteers also maintain supplementary modules under a catalog at https://github.com/iiab-share/iiab-content/blob/main/catalogs/iiab-module-cat.json. | ||
|
||
These two catalogs are merged when iiab-get-oer2go-cat is run and the merged catalog is stored as /etc/iiab/oer2go_catalog.json. So the oer2go portion of the catalog is refreshed any time there is an install and the iiab portion is refreshed whenever iiab-get-oer2go-cat is run. | ||
|
||
### Module Downloads | ||
|
||
The Admin Console presents a GUI based on the combined OER2Go and IIAB catalogs under Install Content -> Get OER2Go(RACHEL) Modules that allows the user to select a given module and cause it to be downloaded. | ||
|
||
Two means of download are supported, rsync and rclone. rclone is used for S3 storage, and rsync requires an rsync server. | ||
|
||
If a catalog item has a value for rclone, that url is used for the download; otherwise it must have a value for the rsync attribute, which will be used by CMDSRV for the download. | ||
|
||
There are currently several cloud storage locations maintained by IIAB volunteers from which modules can be downloaded. | ||
|
||
Note that whereas ZIMS are a single file, modules are a directory of files that are downloaded individually. This is done instead of placing the entire directory in a compressed file in order to save file space during the download. | ||
|
||
### DiY | ||
|
||
Any directory of files that can be rendered by a web server to be viewed with a browser can serve as a module. Note that the directory should contain all files required, and all links should be relative to that directory. | ||
|
||
Modules, located in /library/www/html/modules, are expected to have a catalog entry and be installable by all users. A directory of custom content that is not shared is expected to be deployed in the /library/www/html/local_content directory and need not have a catalog entry. | ||
|
||
To create a custom module place the required files in a directory under /library/www/html/modules. The module should have a name like ll-nnn where ll is a two character language code and nnn is a meaningful name. | ||
|
||
Then create a catalog fragment for this module using https://github.com/iiab-share/iiab-content/blob/main/catalogs/mk-mod-cat-item.py. It will be necessary to manually edit the resulting json file as not all fields can be automated. | ||
|
||
The module should have a unique module_id. By convention we have been using IIAB1XX where 1XX is the next 3 digit number after the last item in the catalog. | ||
|
||
Manually add the catalog fragment to https://github.com/iiab-share/iiab-content/blob/main/catalogs/iiab-module-cat.json. | ||
|
||
As was the case with custom ZIMS you will need to create a Menu Item Definition for your modules. | ||
|
||
## Document Version | ||
|
||
This document was last maintained on December 29, 2022. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters