summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-11-29 18:43:36 +0000
committerRalph Amissah <ralph@amissah.com>2010-11-29 18:45:22 +0000
commit371dfc5c468e44a329543322a968285b40f62253 (patch)
treea99a1177aec9c98c95812065ea5c8e5b7f5b0d6f
parenthtml & css: ocn (object numbers) now link to themselves (diff)
downloadsisu-371dfc5c468e44a329543322a968285b40f62253.zip
sisu-371dfc5c468e44a329543322a968285b40f62253.tar.xz
epub: ocn (object numbers) now link to themselves
* jumps to top of viewer
-rw-r--r--CHANGELOG_v23
-rw-r--r--data/doc/sisu/v2/CHANGELOG3
-rw-r--r--lib/sisu/v2/epub_format.rb6
3 files changed, 11 insertions, 1 deletions
diff --git a/CHANGELOG_v2 b/CHANGELOG_v2
index ef79bea..0647cd4 100644
--- a/CHANGELOG_v2
+++ b/CHANGELOG_v2
@@ -27,6 +27,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.9.orig.tar.gz
places that object at the top of the browser and provides its url
(requested, Ben Armstrong (live-manual))
+ * epub, ocn (object numbers) now link to themselves, clicking on one
+ places that object at the top of the viewer
+
%% 2.7.8.orig.tar.gz (2010-10-25:43/1)
http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.8.orig.tar.gz
af9dac02064ea03c61d6eecd0882a9f1be6f83d37fdddcf8e45832b9def52140 2750397 sisu_2.7.8.orig.tar.gz
diff --git a/data/doc/sisu/v2/CHANGELOG b/data/doc/sisu/v2/CHANGELOG
index 6a96149..11b6e85 100644
--- a/data/doc/sisu/v2/CHANGELOG
+++ b/data/doc/sisu/v2/CHANGELOG
@@ -27,6 +27,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.9.orig.tar.gz
places that object at the top of the browser and provides its url
(requested, Ben Armstrong (live-manual))
+ * epub, ocn (object numbers) now link to themselves, clicking on one
+ places that object at the top of the viewer
+
%% 2.7.8.orig.tar.gz (2010-10-25:43/1)
http://www.jus.uio.no/sisu/pkg/src/sisu_2.7.8.orig.tar.gz
af9dac02064ea03c61d6eecd0882a9f1be6f83d37fdddcf8e45832b9def52140 2750397 sisu_2.7.8.orig.tar.gz
diff --git a/lib/sisu/v2/epub_format.rb b/lib/sisu/v2/epub_format.rb
index 761d771..e016b01 100644
--- a/lib/sisu/v2/epub_format.rb
+++ b/lib/sisu/v2/epub_format.rb
@@ -82,7 +82,7 @@ module SiSU_EPUB_Format
else
ocn_class='ocn'
@ocn.gsub(/^(\d+|)$/,
- %{<label class="#{ocn_class}">\\1</label>})
+ %{<label class="#{ocn_class}"><a href="#o\\1" class="lnk#{ocn_class}">\\1</a></label>})
end
end
def name
@@ -142,6 +142,10 @@ module SiSU_EPUB_Format
color: #003399;
text-decoration: underline;
}
+ a.lnkocn:link {
+ color: #777777;
+ text-decoration: none;
+ }
div {
margin-left: 0;
margin-right: 0;