See the Mailing Lists 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.
Re: [EP-tech] Order of Divisions Tree
From: Alfons Wittmann <alfons.wittmann AT ku-eichstaett.de>
Date: Fri, 26 Sep 2008 18:18:51 +0200
| Threading: | ↑ [EP-tech] views for thesis only from Ranju.Upadhyay AT nuim.ie • This Message → Re: [EP-tech] Order of Divisions Tree from Helge.Knuettel AT bibliothek.uni-regensburg.de |
*** ↵ http://www.eprints.org/tech.php/id/%3CEMEW-k8PHIr502a609a7d0ceb1a03b0e333aa59445e-48DD0B6B.5080308%40ku-eichstaett.de%3E *** EPrints community wiki - http://wiki.eprints.org/ Have a look at http://article.gmane.org/gmane.comp.web.eprints.devel/9278 n.b.: this only affects views, not the divisions or subjects tree in Edit (don't know how to do that)! You don't have to change "sub get_children" in /opt/eprints3/perl_lib/EPrints/DataObj/Subject.pm, you can overwrite this method only for one certain archive in e.g. /opt/eprints3/archives/<archiveid>/cfg/cfg.d/zzz_local.pl , like this: sub EPrints::DataObj::Subject::get_children { my( $self ) = AT _; if( $self->{session}->{subjects_cached} ) { my $subjectid = $self->get_value( "subjectid" ); return AT {$self->{session}->{subject_child_map}->{$subjectid}}; } my $searchexp = EPrints::Search->new( session=>$self->{session}, dataset=>$self->{dataset}, custom_order=>"subjectid" ); $searchexp->add_field( $self->{dataset}->get_field( "parents" ), $self->get_value( "subjectid" ) ); my $searchid = $searchexp->perform_search(); my AT children = $searchexp->get_records(); $searchexp->dispose(); return( AT children ); } Don't know if this is ok, but for me it works. Alfons Andrea Merkle schrieb am 26.09.2008 16:23: > perhaps easy. Anyway it takes me too long to find an answer to: > > How to turn off displaying the divisions tree in an alphabetic order? > > Could anybody help? -- Universitätsbibliothek Eichstätt-Ingolstadt EDV-Referat Tel: 08421/93-1486 - Fax: 08421/93-1791 Universitätsallee 1 EMail: alfons.wittmann AT ku-eichstaett.de 85071 Eichstätt http://www.ku-eichstaett.de/Bibliothek/
[index] [prev] [next] [options] [help]




