MOREL
MOREL generates web sites from bibliographic collections. The MOREL sites gather book covers, excerpts, bibliographic clues, metadata and digital downloads from items stored in the Zotero reference manager.
Works are organized by dynamic lists, which automatically group the works according to common characteristics:
- authors
- city of publication
- imprint or publisher
- nationality of authors
- edition date
- digital repository.
MOREL also has a search engine that allows you to find works directly.
Instructions to install the theme
Install
Local (using command line)
- Fork the repository — that is, create a copy in your GitHub account.
- Open your system’s terminal in the folder on your local computer where you will be working on the site. Mac and Linux have native terminals. For Windows, use WSL (Windows Subsystem for Linux).
- Run:
$ git clone https://github.com/[your_username]/morel-theme-generatorto clone the repository.
- Run:
$ cd morel-theme-generatorto move to the repository folder.
- Run:
bundle updateto update the theme and its dependencies. If you don’t have Ruby on your system, follow the instructions in Jekyll
- Run:
ruby serve-local.rbto launch the test site locally.
Customize
You now have a ready-made site with sample content from the MOREL site Afro Latin American Writers in Translation (ALAWiT).
To fill it with your site’s information, follow these steps:
- Open
_config.ymland change:- The
titleto your site’s. - The
taglineto your site’s. - The
emailand/or social media accounts to your site’s. - The
jotformlink (create your free account at https://www.jotform.com/).
- The
- Open the file
_about/site-description.mdand write a description for your site. The<!-- more -->line separates what appears in the footer across all pages from the longer description that appears on theaboutpage only. For this to work you have to complete the final step of this section. - Replace the logo, pattern and avatar files by adding a file to:
assets/img/tema/logo.pngassets/img/tema/avatar.jpgassets/img/tema/trama.pngassets/img/tema/add.jpg
- Open the
podcast.mdfile and change the title and tagline of your podcast or blog. - The
_postsfolder has the MOREL posts. Delete the MOREL posts and create your own with Jekyll nomenclature. If you don’t want to add any podcast posts or episodes to your site, change in_config.ymlthepodcastvalue tofalse - Commit the changes and wait for the customized site to deploy. If you are using GitHub in the web browser, just wait the site to deploy. If you are working locally, push the changes to see them online, or test them locally with
ruby serve-local.rb
Generating the content from Zotero
Local (using command line)
-
Open Zotero and review the guide at the end of this instructions to make the fields 100 % readable for MOREL.
-
Export your Zotero collection as a
.csvfile. If you don’t know how to do it follow the instructions here. -
Name your
.csvfilebooks_zotero.csvand place it inside theassets/datafolder. - Run:
python3 -m venv assets/envto create the Python environment.
- Run:
source assets/env/bin/activateto activate the Python environment.
- Run:
pip install -r requirements.txtto install the dependencies.
- Run:
python3 assets/env/src/cleanup_output.pyto delete the sample content.
- Run:
python3 assets/env/src/morel-generate.pyto generate your content
- Run:
ruby serve-local.rbto activate the local server for browsing.
- Open the browser and go to the link provided by the local server (usually it’s http://127.0.0.1:4000).
- Browse your custom site!
Zotero Fields
MOREL items are added in the same way that items are added in any Zotero library. In its current version, MOREL can only process items of type book. Since not all the fields needed for MOREL are available for the book content type, some considerations must be made:
- Excerpt: the fragment from each MOREL record corresponds to the
notesof Zotero (see the documentation about Zotero notes). In its current version, MOREL only accepts one excerpt per book. - Cover: the cover is a jpg file that is added as an
attachmentto the Zotero item (see the Zotero attachments documentation).