Skip to content

django platform to explore TEI verbatims, documents & speakers within structured qualitative studies

License

Unknown and 2 other licenses found

Licenses found

Unknown
COPYING
Unknown
LICENSE.CECILL-C
LGPL-3.0
LICENSE.LGPL
Notifications You must be signed in to change notification settings

romerobu/reanalyse

 
 

Repository files navigation

Reanalyse

To understand how the reanalyse project works, you'll need to read carefully:

  • this readme.md file
  • the ./templates/content/method_content_fr.html page, included in the site
  • the ./reanalyseapp/globalvars.py file, explaining the technical part of codes

Installation

git source

$ sudo aptitude install git
$ mkdir /var/opt/reanalyse
$ git clone https://github.com/medialab/reanalyse.git reanalyse

java for SOLR

$ sudo aptitute install default-jre
$ sudo aptitude install apache2-threaded-dev
$ apxs2 -iac mod_xsendfile.c

haystack + django_tables2 (not used anymore ?)

$ sudo pip install django-haystack
$ sudo pip install django-tables2

lxml

$ sudo aptitude install python-dev
$ sudo aptitude install python-lxml

pythonsolr

$ hg clone https://bitbucket.org/cogtree/python-solr
$ sudo pyton python-solr/setup.py install

python-magic (used to detect file mimetype)

$ sudo easy_install python-magic

apache > django conf

$ vi /apache/reanalyse.conf
$ vi /apache/django.wsgi

absent directories

  • ./settingsprivate.py

  • ./download/

  • ./logs/

  • ./solrdataindex/

  • ./upload/

    $ vi settingsprivate.py

    $ mkdir logs upload download solrdataindex

    $ sudo chown -R www-data:www-data solr log upload download

Postgresql

remplacer ident par md5 pour local désactiver les autres host

$ sudo vi /etc/postgresql/8.4/main/pg_hba.conf

check port 5432 postgresql conf

$ sudo vi /etc/postgresql/8.4/main/postgresql.conf

create db and user

$ sudo su - postgres
$ psql
$ postgres=# create user reanalyse with password 'password';
$ postgres=# CREATE DATABASE reanalyse WITH OWNER=reanalyse;
$ postgres=# grant all privileges on database reanalyse to reanalyse;
$ postgres=# \q

sync django db

$ python manage.py syncdb

apache conf

$ sudo ln -s /var/opt/reanalyse/apache/reanalyse.conf /etc/apache2/sites-available/
$ sudo a2ensite reanalyse.conf
$ sudo service apache2 reload

Static Html Pages

files are stored within the ./template/content/ dir

django Internationalization how-to

within template

{% load i18n %}
...
{% comment %}Translators: Login page title{% endcomment %}
<title>{% trans 'Login Page' %}</title>

within view

from django.utils.translation import ugettext as _
...
mystring = _('congratulations')

translation

$ sudo apt-get install gettext

from django project root, do:

$ sudo django-admin.py makemessages --ignore ./upload --ignore ./media --ignore ./solr -a

manually translate file ./locale/fr/LC_MESSAGES/django.po

$ django-admin.py compilemessages

solr is based on the default conf (from example), except for

  • ./solr/solr/conf/schema.xml defining how models are indexed
  • ./solr/solr/conf/solrconfig.xml defines:
  • datadir = ./../solrdataindex/ (temp files)
  • < maxFieldLength > 2147483647 < /maxFieldLength > (in case of big files)
  • ./solr/etc/jetty.xml if you want to change webserver port
  • ./solr/solr/conf/*_fr.txt : stopwords, synonyms, protwords, etc...

Normalisation process

Alt text

more about icons for paraverbal

the normalisation process is described within the "Method" page in the website ./templates/content/method_content_fr.html

to add more icons, please refer to the comments within the ./reanalyseapp/globalvars.py file

django models & views

Alt text

About

django platform to explore TEI verbatims, documents & speakers within structured qualitative studies

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
COPYING
Unknown
LICENSE.CECILL-C
LGPL-3.0
LICENSE.LGPL

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 38.9%
  • HTML 34.4%
  • Python 11.4%
  • CSS 10.4%
  • XSLT 2.3%
  • Java 2.1%
  • Other 0.5%