EPrints Technical Mailing List Archive

Message: #03281


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Browse view by document language.


Thanks for your reply, but I actually that was one of the few other options I already tried.

It produces a slightly different error, but still no view list.

Error:
------------------------------------------------------------------
---------------- EPrints System Error ----------------------------
------------------------------------------------------------------
Dataset eprint does not have a field 'document'
------------------------------------------------------------------
EPrints System Error inducing stack dump
 at /usr/share/eprints3/bin/../perl_lib/EPrints.pm line 146
        EPrints::abort() called at /usr/share/eprints3/bin/../perl_lib/EPrints/Utils.pm line 674
        EPrints::Utils::field_from_config_string('EPrints::DataSet=HASH(0x37d5a58)', 'document.language') called at /usr/share/eprints3/bin/../perl_lib/EPrints/Update/Views.pm line 2137
        EPrints::Update::Views::menus_fields('EPrints::Update::Views=HASH(0x33049a0)') called at /usr/share/eprints3/bin/../perl_lib/EPrints/Update/Views.pm line 2053
        EPrints::Update::Views::fieldlist_sizes('EPrints::Update::Views=HASH(0x33049a0)', 'ARRAY(0x6213ea0)', 0) called at /usr/share/eprints3/bin/../perl_lib/EPrints/Update/Views.pm line 2238
        EPrints::Update::Views::update_view_by_path('EPrints::Update::Views=HASH(0x33049a0)', 'on_write', 'CODE(0x33046d0)', 'langid', 'en', 'do_menus', 1, 'do_lists', 1, ...) called at bin/generate_views line 204


Any other ideas? I would really love to let my visitors be able to browse or sort by language

On 17-07-2014 11:49, John Salter wrote:

**I haven’t tried this, it’s a guess**

‘document.language’ might work..?

 

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Jacob Wenzel
Sent: 17 July 2014 09:59
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Browse view by document language.

 

I want to create a new browse view based by document language, but I can't figure out what field to call, and I can't find any references in the documentation. I keep getting variations of the error: Dataset eprint does not have a field 'language'

My code looks like this:

        {
               id => "doclang",
                menus => [
            {
                fields => [ "language" ],
                        new_column_at => [10,10],
            }
        ],
            order => "-date/title",
             variations => [
            "creators_name;first_letter",
            "date",
            "projects",
            "DEFAULT" ],
        },

I have also tried document.language, and a few other options, that seemed logical.

Which field should I call? I found an old thread on the subject with a hack that might work, but the thread also mentioned, that the feature was on the road map, so I guess it would be implemented by know.

Help would be greatly appreciated.

--

Med venlig hilsen/Best regards

JACOB WENZEL
Projektleder

ENERGIAKADEMIET
Strandengen 1
8305 SAMSØ
+45 60 61 15 97
jw@energiakademiet.dk
www.energiakademiet.dk



*** 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/
*** EPrints developers Forum: http://forum.eprints.org/