[index] [options] [help]
See the Contact page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

[EP-tech] Textarea on summary page?

From: <A.G.Jippes AT UTwente.nl>
Date: Tue, 1 May 2007 12:49:19 +0200


Threading:      • This Message
             Re: [EP-tech] Textarea on summary page? from cjg AT ecs.soton.ac.uk

*** EPrints technical list - http://software.eprints.org/tech.php/
*** EPrints community wiki - http://wiki.eprints.org/

Hi,

In our graduate essay repository large abstracts are used. Can I
restrict the number of rows of the abstract on the summary page?
(something like the 'input_rows' property in 'eprints_fields.pl' would
be nice)

Regards,

  Arnoud.


Re: [EP-tech] Textarea on summary page?

From: Christopher Gutteridge <cjg AT ecs.soton.ac.uk>
Date: Tue, 01 May 2007 13:15:38 +0100


Threading: [EP-tech] Textarea on summary page? from A.G.Jippes AT UTwente.nl
      • This Message
             RE: [EP-tech] Textarea on summary page? from A.G.Jippes AT UTwente.nl

*** EPrints technical list - http://software.eprints.org/tech.php/
*** EPrints community wiki - http://wiki.eprints.org/

How about putting it in an iframe so that it scrolls?
http://www.w3schools.com/tags/tag_iframe.asp

But to make it easier, use a data url so you don't need a second page.

I've made a nice example here:
http://lemur.ecs.soton.ac.uk/~cjg/iframe.html

(view the source, luke)


A.G.Jippes AT UTwente.nl wrote:
> *** EPrints technical list - http://software.eprints.org/tech.php/
> *** EPrints community wiki - http://wiki.eprints.org/
>
> Hi,
>
> In our graduate essay repository large abstracts are used. Can I
> restrict the number of rows of the abstract on the summary page?
> (something like the 'input_rows' property in 'eprints_fields.pl' would
> be nice)
>
> Regards,
>
>   Arnoud.
>
>   

-- 
Christopher Gutteridge -- http://www.ecs.soton.ac.uk/people/cjg

Lead Developer, EPrints Project, http://eprints.org/

Web Projects Manager, School of Electronics and Computer Science,
University of Southampton. 


RE: [EP-tech] Textarea on summary page?

From: <A.G.Jippes AT UTwente.nl>
Date: Tue, 1 May 2007 16:55:47 +0200


Threading: Re: [EP-tech] Textarea on summary page? from cjg AT ecs.soton.ac.uk
      • This Message
             Re: [EP-tech] Textarea on summary page? from cjg AT ecs.soton.ac.uk

*** EPrints technical list - http://software.eprints.org/tech.php/
*** EPrints community wiki - http://wiki.eprints.org/

> But to make it easier, use a data url
> so you don't need a second page.

Hmm, so I guess this needs some hacking of eprint_render.pl

But I wonder how iframes would influence the accessibility. At least a
fall back link to the abstract for non-iframes supporting browsers would
be needed..

Would a CSS <div> solution with overflow not be better? Or is this not
yet matured (I would hate to get into cross-browser development issues
again)

  Arnoud.



Re: [EP-tech] Textarea on summary page?

From: Christopher Gutteridge <cjg AT ecs.soton.ac.uk>
Date: Tue, 01 May 2007 16:16:33 +0100


Threading: RE: [EP-tech] Textarea on summary page? from A.G.Jippes AT UTwente.nl
      • This Message
             RE: [EP-tech] Textarea on summary page? from A.G.Jippes AT UTwente.nl

This is a multi-part message in MIME format.
Nah, overflow's pretty mature. You could use that.

A.G.Jippes AT UTwente.nl wrote:
> *** EPrints technical list - http://software.eprints.org/tech.php/
> *** EPrints community wiki - http://wiki.eprints.org/
>
>   
>> But to make it easier, use a data url
>> so you don't need a second page.
>>     
>
> Hmm, so I guess this needs some hacking of eprint_render.pl
>
> But I wonder how iframes would influence the accessibility. At least a
> fall back link to the abstract for non-iframes supporting browsers would
> be needed..
>
> Would a CSS <div> solution with overflow not be better? Or is this 
not
> yet matured (I would hate to get into cross-browser development issues
> again)
>
>   Arnoud.
>
>
>   

-- 
Christopher Gutteridge -- http://www.ecs.soton.ac.uk/people/cjg

Lead Developer, EPrints Project, http://eprints.org/

Web Projects Manager, School of Electronics and Computer Science,
University of Southampton. 


ATTACHMENT: message.html!


RE: [EP-tech] Textarea on summary page?

From: <A.G.Jippes AT UTwente.nl>
Date: Wed, 2 May 2007 08:25:58 +0200


Threading: Re: [EP-tech] Textarea on summary page? from cjg AT ecs.soton.ac.uk
      • This Message
             RE: [EP-tech] Textarea on summary page? from A.G.Jippes AT UTwente.nl

*** EPrints technical list - http://software.eprints.org/tech.php/
*** EPrints community wiki - http://wiki.eprints.org/

Ok, I constrained long abstracts with CSS overflow and max-height. Needs more 
testing, but works in all my browsers:
 
* Added in /cfg/static/style/auto/zzz_local.css
 
.ep_block_scroll {
  overflow: auto;
  width: auto;
  max-height: 10em;
  margin: 0.25em auto 0.25em auto;
  text-align: left;
}
 
* Changed  class to "ep_block_scroll" for abstract in 
/cfg/cfg.d/eprint_render.pl
 
* generate_static and generate_abstracts
 
(might need a workaround for the overflow bug in IE6)
 
  Arnoud.



RE: [EP-tech] Textarea on summary page?

From: <A.G.Jippes AT UTwente.nl>
Date: Wed, 2 May 2007 10:48:36 +0200


Threading: RE: [EP-tech] Textarea on summary page? from A.G.Jippes AT UTwente.nl
      • This Message

*** EPrints technical list - http://software.eprints.org/tech.php/
*** EPrints community wiki - http://wiki.eprints.org/

> (might need a workaround for the overflow bug in IE6)

It does :(

To get this working in IE6 (which is still used a lot), I had to add
this to the CSS:

/* IE6 workaround */

* html .ep_block_scroll {
	width: 100%;
	height: 15em;
}


[index] [options] [help]