RE: [IUG] BUT_ as text


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I've been playing with this and thought I would share the results. It
generally works (sort of), but there are some gotcha's.

1) If you use a style sheet to make the text navigation links "fancy",
you may have problems with MSIE. The solution is to be sure that you do
something like display: none; in the style for the images (as is implied
by class="hidden" in the original post).

2) If you use a style sheet to make the text display against a different
background or with borders you may run into problems when the text
wraps. The solution is to use white-space: nowrap; Using <nobr> as III
does with their predefined text won't work since the images end up
outside it (besides, it's tacky since it's not valid HTML).

3) If you have a multilanguge catalog, the text you use will display as
the navigation links in both languages (i.e. your Spanish users will see
English text). I can't see anyway to define different versions for each
language.

4) Since the alt text used by III will be included in the trailing
image, a screen reader will render both the text you inserted and the
alt text for the image. This is a major BAD. If you used this
technique to change the III defined "Search Again" to "Another Search",
a blind user would hear the link described as "Another Search Search
Again".

I'll also mention in passing that the navigationRow div isn't used on
all OPAC pages, so text used for the links won't have your style applied
all the time (for example, on the Limit/Sort or Export pages).

Gene Spesard






Leo Eugene Spesard
Support Systems Analyst, Senior
Digital Library & Information Systems Team
University of Arizona Library
E-mail: spesardl at u dot library dot Arizona dot EDU
Phone: (520) 626-5516, Fax: (520) 621-8276


The opinions or statements expressed herein are my own and should not be
taken as a position, opinion, or endorsement of the University of
Arizona.


-----Original Message-----
From: innopac-bounces at innopacusers dot org
[mailto:innopac-bounces at innopacusers dot org] On Behalf Of Jamieson, Steve
Sent: Saturday, February 11, 2006 11:31 AM
To: IUG INNOPAC List
Subject: RE: [IUG] BUT_ as text

Here's one possible "kludge" that I'm recreating from a memory of
something I saw once but can't remember where, and I don't think this
will produce any invalid code...

The key is that the system, I believe, takes whatever you put in
BUT_WHATEVER and slaps it in the src property of an img tag.

BUT_WHATEVER=whatever.gif

Yields

<img src="whatever.gif" alt="some alt text" border="0" />

The trick is to make the value of BUT_WHATEVER terminate the beginning
of the generated img tag, display whatever it is you want, and then
begin a new img tag that will be terminated by the end of the generated
img tag.

For example...

BUT_WHATEVER=spacer.gif" class="hidden" />Anything you want (even
html)<img class="hidden" src="spacer.gif

Which would produce...

<img src="spacer.gif" class="hidden" />Anything you want (even html)<img
class="hidden" src="spacer.gif" alt="some alt text" border="0" />

Where spacer.gif should be a 1x1 px transparent GIF (for non-CSS
browsers) and the stylesheet should set .hidden {display:none;} (which
will hide those extra images in CSS compliant browsers).

I haven't tried this myself, so I make no guarantee that it will work in
practice.

Steve Jamieson
Reference & Systems Librarian
Covenant Theological Seminary Library



-----Original Message-----
From: innopac-bounces at innopacusers dot org
[mailto:innopac-bounces at innopacusers dot org] On Behalf Of Bob Duncan
Sent: Thursday, January 26, 2006 4:40 PM
To: peloquin at austincc dot edu; IUG INNOPAC List
Subject: Re: [IUG] BUT_ as text

At 09:38 PM 01/26/2006 +0000, Margaret wrote:
>Perhaps I'm missing something here or misunderstanding what you need,
>but if there is no graphic available, text will appear where the button
would go.
>So, simply deleting the supplied graphic would cause the text rather
>than the button to appear.
>
>"Kreymer, Oleg" <Oleg dot Kreymer at metmuseum dot org> said:
>
> > Is there a way to make BUT_ weboption display as text, not an image?


What happens if you delete the supplied graphic is
browser-dependent---some browsers will display the alt text; some will
display a broken image placeholder. Better to delete (or make inactive)
the wwwoption itself, in which case the default navigational text should
appear regardless of browser.

If Oleg was asking if one can specify text instead of an image for a
BUT_ wwwoption, I think the answer is you can, but you probably
shouldn't. BUT_ wwwoptions want a path to a file; you can kludge the
code to get text instead, but you end up with invalid HTML, and since
it's a kludge there's nothing that says it won't break in a future
release.

But the good news is that if you want text instead of images and are
happy with the III default text, recent releases of the WebOPAC have the
navigational links appearing within their own div element so the text
can be styled differently than the rest of the WebOPAC text.

Bob Duncan


~!~!~!~!~!~!~!~!~!~!~!~!~
Robert E. Duncan
Systems Librarian
Editor, IT Communications
Lafayette College
Easton, PA 18042
duncanr at lafayette dot edu
http://www.library.lafayette.edu/


--
This message was distributed through the Innovative Users Group INNOPAC
list Public replies: INNOPAC at innopacusers dot org Update your subscription
options: http://innopacusers.org/mailman/listinfo/innopac

--
This message was distributed through the Innovative Users Group INNOPAC
list
Public replies: INNOPAC at innopacusers dot org
Update your subscription options:
http://innopacusers.org/mailman/listinfo/innopac