Portal
Drupal installation notes
Create Postgres Database
bhladmin@bhl-alexandria:~$ sudo -u postgres psql postgres
postgres@bhl-alexandria:~$ CREATE ROLE "fedora" LOGIN PASSWORD 'fedora';
postgres@bhl-alexandria:~$ CREATE DATABASE "fedora" WITH ENCODING='UTF8' OWNER="fedora";
Apache configuration
We create new alias for drupal by editing apache virtual host configuration file :
/etc/apache2/sites-available/default
<Directory "/mnt/nfs-demeter/preingest/drupal-6.19/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ProxyPass /fedora !
Now we have to reload :
/etc/init.d/apache2 reload
Download Drupal
Download the last version of drupal :
wget http://ftp.drupal.org/files/projects/drupal-6.19.tar.gz
Unzip the downloaded archive :
tar xzf drupal-6.19.tar.gz
Create configuration file
Create settings.php file : in
drupal-6.19/sites/default folder, make a copy of default.settings.php file to settings.php
cp default.settings.php settings.php
Change the permission on
drupal-6.19/sites/default folder and make the
settings.php file writable.
chmod a+w sites/default
Drupal installation
We can now start the installation on
http://bhl-alexandria.nhm.ac.uk/fedora/. And we have to choose language, inform database information, set the site name and email from which the site will send out mail. You also set the username, email, and password of the first administrator account. Save and continue.
We can change permission on
drupal-6.19/sites/default folder and remove write permission on
settings.php file.
chmod a-w sites/default
We are ready to login and use our new Drupal site.
Islandora Drupal 7 module
BHLe portal will use drupal 7. For that, we decide to port islandora module to drupal 7.
On Drupal 6 module, Islandora use a bootstrap class to interact with fedora-commons. Now Islandora team create a new module (fedora-api) for that.
For the porting to drupal seven we have use the fedora_api module to replace the bootstrap class.
Acutally we port the Digital Repository module and the Islandora Book module. Theses modules are available on the
github bhle repository.
Reference :
Portal Internationalization
Although Drupal, as the portal, have been translated into most languages in the world, some parts (modules) still need to be translated manually (especially Islandora module).
How to install
- Enable Locale and Content Translation within Drupal Core package
- Add all needed languages in Administrator -> Site Configuration -> Languages
- In "My account", change the language except the default one (English), and browse any page of the will-be-translated module. (Notice: drupal will not trigger the translation function unless the module has been requested)
- Install and enable the latest version of Localization Client module, which provides on screen translation. See http://drupal.org/project/l10n_client
How to commit the translation
- After checking the translation for a specific language, export the .po file from Administrator -> Site Building -> Translate Interface
- Commit the .po files to Github and wait for the site administrator to import the translation work.