EPrints Technical Mailing List Archive
Message: #00467
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: File icons in 3.3?
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: File icons in 3.3?
- From: <rchilliard@mun.ca>
- Date: Wed, 2 May 2012 13:20:42 +0000
I don't think that parameter ($c->{plugins}->{"Convert::ImageMagick::ThumbnailDocuments"}->{params}->{disable} = 1;) exists in 3.3? Did a quick grep and couldn't locate an instance in which it was referenced. Locally we've also tried setting parameters exposed in Convert::Thumbnails (via plugins.pl): $c->{plugins}->{'Convert::Thumbnails'}->{params}->{audio} = 0; $c->{plugins}->{'Convert::Thumbnails'}->{params}->{video} = 0; $c->{plugins}->{'Convert::Thumbnails'}->{params}->{image} = 0; to no avail - thumbnails were still being regenerated after an epadmin redo_thumbnails call. As a stopgap, we've shortcircuited the reference to the document thumbnails in Document.pm (sub icon_url), though this approach is not likely by-the-book: <snip, Document.pm:~1566> # size => "small","medium","preview" (small is default) # public => 0 : show thumbnail only on public docs # public => 1 : show thumbnail on all docs if poss. sub icon_url { my( $self, %opts ) = @_; $opts{public} = 1 unless defined $opts{public}; $opts{size} = "small" unless defined $opts{size}; # Disabling thumbnails, should fallthrough to icons, defaults to unknown.png # if( !$opts{public} || $self->is_public ) # { # my $thumbnail_url = $self->thumbnail_url( $opts{size} ); # # return $thumbnail_url if defined $thumbnail_url; # } <end snip> After the change, plus a reload of the repository config and regeneration of abstracts, the thumbnail icons were no longer referenced (though they're still around). Cheers, Casey ________________________________________ From: eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] on behalf of Centro de Documentación [cendocu@gmail.com] Sent: Friday, March 23, 2012 1:38 PM To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Re: File icons in 3.3? Hi, I disabled the ImageMagick plug-in and ran "epadmin redo_thumbnails archiveid" but I follow watching "cover page icons" instead of "files icons". Is there another trick? or Can I use the old (3.2.X) document namedsets file? Regards, Cristian On Wed, Mar 21, 2012 at 8:52 PM, Mark Gregson <mark.gregson@qut.edu.au> wrote: > We have the following in archive/blah/cfg/cfg.d/plugins.pl > $c->{plugins}->{"Convert::ImageMagick::ThumbnailDocuments"}->{params}->{disable} = 1; > > There could be more to it but try that first. > > Cheers > Mark > > Mark Gregson | Application and Development Team Leader > Library eServices | Queensland University of Technology > Level 2 | I Block | Kelvin Grove Campus | GPO Box 2434 | Brisbane 4001 > Phone: +61 7 3138 3782 | Web: http://eprints.qut.edu.au/ > ABN: 83 791 724 622 > CRICOS No: 00213J > > > > -----Original Message----- > From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Gunnar Wolf > Sent: Thursday, 22 March 2012 4:44 AM > To: eprints-tech@ecs.soton.ac.uk > Subject: [EP-tech] Re: File icons in 3.3? > > Centro de Documentación dijo [Wed, Mar 21, 2012 at 10:27:43AM -0300]: >> Hi, >> >> Can someone solve this issue? I prefer to show file icons insted of >> cover page icons. >> >> In general, cover pages aren't uniform in size and look. >> >> Thanks, >> >> Gunnar, >> >> To replace blank icon you should run: >> >> epadmin redo_mime_type repositoryid file >> epadmin redo_thumbnails repositoryid > > I agreee with Cristian's request here - We would also prefer to have a > file icon rather than a miniature cover page (which becomes > unrecognizable for anything). > > Cristian, thanks for the tip - However, this just regenerates the > thumbnails as they are, with the "other" file icon and not with an > icon that specifies the MIME type as it was before (and as it should > be for us). > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: http://www.eprints.org/tech.php/ > *** EPrints community wiki: http://wiki.eprints.org/ > > *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech > *** Archive: http://www.eprints.org/tech.php/ > *** EPrints community wiki: http://wiki.eprints.org/ *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/ This electronic communication is governed by the terms and conditions at http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php
- Follow-Ups:
- [EP-tech] Re: File icons in 3.3?
- From: Tim Brody <tdb2@ecs.soton.ac.uk>
- [EP-tech] Re: File icons in 3.3?
- References:
- [EP-tech] File icons in 3.3?
- From: Gunnar Wolf <gwolf@gwolf.org>
- [EP-tech] Re: File icons in 3.3?
- From: Centro de Documentación <cendocu@gmail.com>
- [EP-tech] Re: File icons in 3.3?
- From: Gunnar Wolf <gwolf@gwolf.org>
- [EP-tech] Re: File icons in 3.3?
- From: Mark Gregson <mark.gregson@qut.edu.au>
- [EP-tech] Re: File icons in 3.3?
- From: Centro de Documentación <cendocu@gmail.com>
- [EP-tech] File icons in 3.3?
- Prev by Date: [EP-tech] Re: Search Index Troubles
- Next by Date: [EP-tech] Re: File icons in 3.3?
- Previous by thread: [EP-tech] Re: File icons in 3.3?
- Next by thread: [EP-tech] Re: File icons in 3.3?
- Index(es):