Some re-workings on the SourcePage Citations section: Look at the Drop Down menu options using Basic-Blue and Visually style sheets.

svn: r18839
This commit is contained in:
Rob G. Healey 2012-02-09 08:57:53 +00:00
parent d16fda5337
commit dc00fd982a
6 changed files with 14 additions and 12 deletions

View File

@ -4527,13 +4527,13 @@ class SourcePage(BasePage):
# if the menu layout if DropDown, then add these items to the web page?
if self.navigation == "DropDown":
# add DropDown Citations Style Sheet
# add Animated Drop Down Citations Style Sheet
fname = "/".join(["styles", "narrative-citations.css"])
url = self.report.build_url_fname(fname, None, self.up)
head += Html("link", href = url, type = "text/css", media = "screen", rel = "stylesheet")
# add javascript code to handle if the user's browser is IE6?
fname = "/".join(["js", "jQuery-1.7.1.js"])
fname = "/".join(["js", "jquery-1.7..min.js"])
url = self.report.build_url_fname(fname, None, self.up)
head += Html("script", src = url, type = "text/javascript", language = "javascript", inline = True)
@ -7128,9 +7128,9 @@ class NavWebReport(Report):
fname = CSS["DropDown-Citations"]["filename"]
self.copy_file(fname, "narrative-citations.css", "styles")
# copy jquery javascript files for use in the Drop Down Citations section...
# copy jquery javascript file for use in the Drop Down Citations section...
fname = CSS["DropDown-Citations"]["javascript"]
self.copy_file(fname, "jQuery-1.7.1.js", "js")
self.copy_file(fname, "jquery-1.7.min.js", "js")
# copy narrative-maps Style Sheet if Place or Family Map pages are being created?
if (self.placemappages or self.familymappages):

View File

@ -1,9 +1,10 @@
# This is the src/plugins/webstuff level Makefile for Gramps
# $Id$
# We could use GNU make's ':=' syntax for nice wildcard use,
# but that is not necessarily portable.
# If not using GNU make, then list all .py files individually
# $Id$
DATAFILES = \
blank.gif \
crosshairs.png \

View File

@ -8,7 +8,8 @@
DATAFILES = \
jquery-1.3.2.min.js \
jquery-ui-1.7.2.custom.min.js \
jQuery-1.7.1.js
jquery-1.7.min.js \
jquery-1.7.1.js
pkgdatadir = $(datadir)/@PACKAGE@/plugins/webstuff/js

File diff suppressed because one or more lines are too long

View File

@ -134,10 +134,10 @@ def load_on_reg(dbstate, uistate, plugin):
["DropDown-Menus", 0, "Drop Down Menus",
path_css("Web_DropDown-Menus.css"), None, [], [] ],
# WebKit/ Html5/ CSS3 Drop Down Citations Style Sheet
# WebKit/ Html5/ CSS3 Animated DropDown Citations Style Sheet
["DropDown-Citations", 0, "Drop Down Citations",
path_css("Web_DropDown-Citations.css"), None, [],
path_js("jQuery-1.7.1.js") ],
path_js("jquery-1.7.min.js") ],
# GeoView style sheet with its image
["GeoView", 0, "GeoView",
@ -149,10 +149,6 @@ def load_on_reg(dbstate, uistate, plugin):
path_img("gramps-geo-mainmap.png"),
path_img("gramps-geo-marriage.png")], [] ],
# WebKit/ Html5/ CSS3 Drop Down Source/ Citations Style Sheet
["Source-Citations", 0, "",
path_css("Web_Source-Citations.css"), None, [], [] ],
# no style sheet option
["No style sheet",1, _("No style sheet"), [], None, [], [] ],