OK.
I think I have found a solution that will work "out of the box" for
genealogy servers and that can be easily modified for local use.
1. Add libjs-jquery and libjs-jquery-placeholder to the Depends of
geneweb binary package
2. Move the link to jquery-placeholder located in hd/etc/welcome.txt to
hd/etc/js.txt (there is already a "%include.js" in welcome.txt). This
way, all links to jquery-related libraries will be made through one
single file : js.txt. The same approach is considered for upstream
geneweb 7 that is currently in development.
3. Modify the content of hd/etc/js.txt to :
<script language="javascript" type="text/javascript"
src="/javascript/jquery/jquery.min.js"></script>
<script language="javascript" type="text/javascript"
src="/javascript/jquery-placeholder/jquery.placeholder.js"></script>
This will be the default configuration for genealogy servers, that
will be located in /usr/share/geneweb/etc/js.txt
4. For local use, one could copy this js.txt to either
/var/lib/geneweb/etc/ or /var/lib/geneweb/etc/MYBASE/ and change its
content to:
<script language="javascript" type="text/javascript"
src="file:///usr/share/javascript/jquery/jquery.min.js"></script>
<script language="javascript" type="text/javascript"
src="file:///usr/share/javascript/jquery-placeholder/jquery.placeholder.js"></script>
Steps 2 and 3 could be implemented using a package patch. Step 4 must be
done manually by the user after install but will not be overwritten by
packages updates.
Make sense?
Le 2016-03-26 02:31, Christian PERRIER a écrit :
I have no idea about fixing this for both uses, but if we have to
choose, I'd go for the "web server" choice. I always designed the
package for usability as a web server service, including for the
localhost, indeed.