About Constitution Web Application
What is This Application
Constitution is a web application that makes available
online the Constitution of the Republic of Albania. Some of the
features of this application are:
-
The content of the document (the constitution) is fully
separated from the representation.
-
The content of the documents is well structured, with sections
and subsections stored in separate folders and subfolders.
-
The application generates the representation (HTML pages)
dynamicly, on the fly, by reading the content from
the files and folders and formating it. This means that
if you modify the content, the modifications will apear online
immediately.
-
Since this dynamic generation of HTML pages has a price on
performance, the application supports page caching. So, if a
requested page does not exist in the cache, the application
generates it and stores it in cache; next time it will not
regenerate it but will just retrive it from the cache.
-
The application supports multiple languages. So, if you are
reading a certain part of the document in a certain language,
and you switch the language, the application will display the
same part of the document in the other language.
-
There is no limit in the number of languages that the application
supports. With very litle efforts you can add another language, if
you have the content in this language.
-
The application has search capability. If you search for a given
word it returns all the parts of the document (articles) where
this word is found.
-
The application offers the document for download in other useful
formats, such as: plain text, latex, postscript, pdf,
long html (all the document in one page), and DocBook (XML).
It has tools to generate these formats automatically from the
stored content.
The above features were about viewing the content of the document
by the public. There is also another useful feature of the application:
-
It supports online editing of the content (document) by
authorized people. When an editor enters the edit
mode what he sees is almost identical to the view
mode and he can browse through various parts and
sections of the document in the same way. But in addition,
there is also an "Edit" button, which opens the part of the
document that is being viewed, in edit mode. The editor can
add new sections and subsections (called nodes) or can
delete them, can change the title of a section, can modify
the text of a section, etc. The document can even be empty
and the editor can build it online from the scatch. All
this editing is done online, through a web interface, and
the editor can be any non-technical people who doesn't need
to know how the application stores the content.
The application is built using
phpWebApp
framework. Its code is well organized, structured and clean, and it
can be easily modified for other types of documents (other then a
constitution).
Download
Installation
You must download and install the
phpWebApp
framework, since it is built using it. Then you just untar
kushtetuta.tar.gz in the DocumentRoot, and maybe you will also
need to modify any constant in config/const.Paths.php. Read also
the README file.
Licence
Copyright (C) 2003 Dashamir Hoxha
This program is
free software;
you can redistribute it and/or modify it under the terms of the
GNU General Public License
as published by the
Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Dashamir Hoxha
INIMA
Rr."Lek Dukagjini", Nr.3
Tirana/Albania