https://github.com/bccampus/opentextbooks
Uses APIs from Equella, LimeSurvey and Piwik to display books and book reviews
https://github.com/bccampus/opentextbooks
book-reviews equella limesurvey open-textbooks piwik sitemap textbook
Last synced: 5 months ago
JSON representation
Uses APIs from Equella, LimeSurvey and Piwik to display books and book reviews
- Host: GitHub
- URL: https://github.com/bccampus/opentextbooks
- Owner: BCcampus
- Created: 2014-09-05T19:16:29.000Z (about 11 years ago)
- Default Branch: dev
- Last Pushed: 2021-04-28T21:36:47.000Z (over 4 years ago)
- Last Synced: 2024-04-14T21:49:44.520Z (over 1 year ago)
- Topics: book-reviews, equella, limesurvey, open-textbooks, piwik, sitemap, textbook
- Language: PHP
- Homepage:
- Size: 5.64 MB
- Stars: 3
- Watchers: 14
- Forks: 6
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.txt
Awesome Lists containing this project
README
# Open Textbooks
[](https://travis-ci.com/BCcampus/opentextbooks)The application is currently hosted on open.bccampus.ca, open.campusmanitoba.ca, openlibary.ecampusontario.ca and is built and maintained to support the [Open Textbook Project](https://open.bccampus.ca/2016/06/01/the-b-c-open-textbook-project-celebrates-another-milestone-151-open-textbooks/) by [BCcampus](https://bccampus.ca/)
- [books](https://open.bccampus.ca/find-open-textbooks/)
- [stats](https://open.bccampus.ca/open-textbook-stats)
- [sitemap](https://open.bccampus.ca/wp-content/opensolr/opentextbooks/sitemap.php)The application is embedded in a WordPress environment, and while there are WP integrations, there are **zero** WordPress dependencies. It can be used as a standalone app.
## Requirements
- PHP version > 7### Will be useful if you also have any instances of:
- an instance of LimeSurvey
- an instance of Matomo
- an instance of WordPress
- an instance of Equella## Functionality
This application can consume API's from
1. [Equella](https://github.com/equella/Equella) to display books from a collection OR
2. [DSpace](http://dspace.org/) to display books from a collection
2. [LimeSurvey](https://www.limesurvey.org/) to display book reviews
3. [Matomo Analytics](https://matomo.org/) to access book statisticsIt also
1. creates Google Scholar metadata for each book
2. generates a sitemap of all textbooks which integrates with [Better WordPress Google XML Sitemaps](https://wordpress.org/plugins/bwp-google-xml-sitemaps/)
3. pulls data from [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
4. waxes your neckbeard :neckbeard:## Purpose
Built to support the wide dissemination of open textbooks.## Quick Start (developers)
Uses [yarn](https://yarnpkg.com/en/) to build front end dependencies and [composer](https://getcomposer.org/) to build php dependencies. Once you've cloned the repo, you'll need to build:
- `yarn && yarn build`
- `composer install`### THEN:
- rename `config/environments/env.sample.php` to `.env.mydomain.com.php`
- add config files per domain (ie. `.env.localhost.php`, `.env.myotherdomain.com.php`)
- modify config values to connect your instances of LimeSurvey, Wordpress, Equella and Matomo
- to test how the app will behave with a configuration file that is different than the domain you're testing with, use the override in `env.php` at the root of the site.
- ensure the web server user (apache, _www) has write permissions to `cache` directory and all subdirectories (`cache/webform`, `cache/analytics`, etc)## Copyright and License
Unless otherwise noted, this code is copyright (c) 2012-2016 Brad Payne, released under a [GPLv3 license](https://www.gnu.org/licenses/gpl.html), or any later versionOtherwise noted:
- PHP Class `Cache` licensed under BSD, (compatible with GPL)
- PHP Class `SitemapAbstract` Licensed under GPLv3, or any later version
- Bootstrap licensed under MIT, (compatible with GPL)
- Table Sorter is dual licensed, MIT and GPL