On Aug 30, 2007, at 3:12 AM, blanchet wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
David Huynh a écrit :
blanchet wrote:
Hello,
Cool. Thank you for your reply. I have to precise
(1) Yes I don't want the title of the tab to change when I clic on
"sorted by". The code source is still
<title>Publications</title> but what appears in the tab title is
"Publication {group as sorted} - mozilla firefox".
Add the following script after you include exhibit-api.js,
SimileAjax.History.formatHistoryEntryTitle = function(actionLabel) {
return SimileAjax.History._plainDocumentTitle;
};
Sorry. How do I include this script? Like this ?
<script
src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"
type="text/javascript"></script>
<script SimileAjax.History.formatHistoryEntryTitle = function
(actionLabel) {
return SimileAjax.History._plainDocumentTitle;
};></script>
It doesn't work.
Neither like this
<script
src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"
type="text/javascript"></script>
SimileAjax.History.formatHistoryEntryTitle = function(actionLabel) {
return SimileAjax.History._plainDocumentTitle;
};
Like this:
<script
src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"
type="text/javascript"></script>
<script>
SimileAjax.History.formatHistoryEntryTitle = function(actionLabel) {
return SimileAjax.History._plainDocumentTitle;
};
</script>
Very close with the first one. All scripts go within "<script>
script goes here </script>" tags, unless you're linking to an
external one, as in the case of the exhibit-api.js script.
(2) Unfortunately I don't have div.exhibit-views-header. I used
the html
source here
http://simile.mit.edu/wiki/Exhibit/
How_to_make_a_publications_exhibit
and there is no div.exhibit-views-header too.
Just add it yourself.
It's just regular CSS stuff.
I mean I don't have <div class="exhibit-views-header"> in the HTML
code
copied form
http://simile.mit.edu/wiki/Exhibit/How_to_make_a_publications_exhibit
Whatever I have already put it in my style.css and it doesn't change
anything.
The <div class="exhibit-views-header"> is dynamically generated after
the page loads, so it wouldn't be in the HTML code that you copied.
Anyway, I looked at your web page and I think I see the problem. Try
loading your stylesheet after the exhibit script. I think what's
happening is the style of that div is getting set to "display:none"
in your stylesheet, but then when the exhibit script is loaded, it
overwrites that setting. So try moving
<link rel="stylesheet" href="style.css" type="text/css" />
below
<script src="exhibit/src/webapp/api/exhibit-api.js" type="text/
javascript"></script>
Hope this helps,
Gabe
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general