<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Jacob,<br>
      <br>
      OK - "documents.language" should work in a search configuration
      (on EPrints 3.3+) but perhaps this doesn't work for "views".<br>
      <br>
      One reason this may not work is conceptual (and this complements
      Alan's reply): you are rendering a list of "EPrint" objects but
      "documents.language" is a switch/field on the "Document" objects.
      Since there's a 1-to-n relationships between EPrint and Document
      objects, the software will be confused as to how to render the
      alternative languages (since the alternative languages are, in
      fact, part of the same EPrint object).<br>
      <br>
      Is it that you want to only show the documents in Danish on your
      "view"?<br>
      <br>
      Seb<br>
      <br>
      <br>
      On 17/07/14 14:45, Jacob Wenzel wrote:<br>
    </div>
    <blockquote cite="mid:53C7D37E.6060000@energiakademiet.dk"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Thank you for clearing that out. I also tried
      "documents.language", but it produced the same error.<br>
      <br>
      But why don't you think it will work? Not that I would be likely
      to understand a complicated explanation, but I would really love
      to have that option on my repository.<br>
      <br>
      If it is indeed impossible, do I have any other options for
      letting my visitors sort the documents without searching.<br>
      <br>
      I'm not keen on making a full translation of EPrints into Danish,
      and furthermore most Danes speak English as well, so I wouldn't
      want hide the English documents from my Danish visitors, just let
      them be able to sort them.<br>
      <br>
      Thank you both for your feedback!<br>
      <br>
      <div class="moz-cite-prefix">On 17-07-2014 15:23, Sebastien
        Francois wrote:<br>
      </div>
      <blockquote
cite="mid:EMEW3|f7e964863b6ea4451a7a0ef74ea252dfq6GEMv14eprints-tech-bounces|ecs.soton.ac.uk|53C7CE4E.7040905@ecs.soton.ac.uk"
        type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">John was close, but it's
          "documents" (now I'm not sure what you're trying to achieve
          will work)<br>
          <br>
          Seb<br>
          <br>
          On 17/07/14 11:36, Jacob Wenzel wrote:<br>
        </div>
        <blockquote cite="mid:53C7A722.808@energiakademiet.dk"
          type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          Thanks for your reply, but I actually that was one of the few
          other options I already tried.<br>
          <br>
          It produces a slightly different error, but still no view
          list.<br>
          <br>
          Error:<br>
          <font color="#3366ff">------------------------------------------------------------------<br>
            ---------------- EPrints System Error
            ----------------------------<br>
------------------------------------------------------------------<br>
            Dataset eprint does not have a field 'document'<br>
------------------------------------------------------------------<br>
            EPrints System Error inducing stack dump<br>
            &nbsp;at /usr/share/eprints3/bin/../perl_lib/EPrints.pm line 146<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EPrints::abort() called at
            /usr/share/eprints3/bin/../perl_lib/EPrints/Utils.pm line
            674<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            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<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            EPrints::Update::Views::menus_fields('EPrints::Update::Views=HASH(0x33049a0)')



            called at
            /usr/share/eprints3/bin/../perl_lib/EPrints/Update/Views.pm
            line 2053<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            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<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            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</font><br>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">*** Options: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>