EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04393
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: [spam?] Re: How to set a field to be multilang
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: [spam?] Re: How to set a field to be multilang
- From: George Mamalakis <mamalos@eng.auth.gr>
- Date: Fri, 26 Jun 2015 17:27:57 +0300
Tim,
Now that I got illuminated (:-P) by the video regarding EPrints' virtual fields, I am trying to think how I could take advantage of them in order to use to solve my multilanguage-fields problem, and I think I'm a bit stuck. I'll speak my thoughts out loud and please correct me if I'm wrong. Let the target field be the "title". So, we need the title to be stored in more than one languages in the database, which should be "easily" accomplished using a multi-row field. Hence, multilang fields are a perfect candidate for this. We therefore create a new field, let's say ml_title (as you proposed) and store our values in it. Now, in order for EPrints not to break, we change the title field to be a virtual field and compose its output based on ml_title field. In the end, we'll have two fields for the title. The title field (of type virtualfield) that will be calculating its value each time it's called, and the ml_title field (of type multilang). Is that correct? Now that I've written my thoughts, I think I'm no more stuck and I see that your idea is brilliant and very easy!! :):). And if the above paragraph is not your idea, and it's even easier than that, then it'll be even more brilliant!! :):) Cheers again, I'll give it a try on Monday! Once again, nice work Adam and thanks Tim and all of you for your help! PS. It would be extremely beneficial if there were a guide as to how EPrints' internals work. Something that is a little be more explanatory than the "anatomy of a request (http://wiki.eprints.org/w/Anatomy_of_a_request)" and explain how the coders of EPrints really think of EPrints in their minds. On 25/06/2015 11:42 πμ, Timothy Miles-Board wrote:
-- George Mamalakis IT and Security Officer, Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki), PhD (Aristotle Univ. of Thessaloniki), MSc (Imperial College of London) School of Electrical and Computer Engineering Aristotle University of Thessaloniki phone number : +30 (2310) 994379 |
- References:
- [EP-tech] Re: How to set a field to be multilang
- From: Timothy Miles-Board <timothy.miles-board@ulcc.ac.uk>
- [EP-tech] Re: How to set a field to be multilang
- From: George Mamalakis <mamalos@eng.auth.gr>
- [EP-tech] Re: [spam?] Re: How to set a field to be multilang
- From: Alen Vodopijevec <alen@irb.hr>
- [EP-tech] Re: [spam?] Re: How to set a field to be multilang
- From: George Mamalakis <mamalos@eng.auth.gr>
- [EP-tech] Re: [spam?] Re: How to set a field to be multilang
- From: Timothy Miles-Board <timothy.miles-board@ulcc.ac.uk>
- [EP-tech] Re: How to set a field to be multilang
- Prev by Date: [EP-tech] Re: [spam?] Re: How to set a field to be multilang
- Next by Date: [EP-tech] Advanced Search for metadata vs full text records
- Previous by thread: [EP-tech] Re: [spam?] Re: How to set a field to be multilang
- Next by thread: [EP-tech] Re: [Solved] Re: [spam?] Re: How to set a field to be multilang
- Index(es):