EPrints Technical Mailing List Archive
Message: #04901
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: search for 2-character-string
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: search for 2-character-string
- From: "Field A.N." <af05v@ecs.soton.ac.uk>
- Date: Mon, 12 Oct 2015 10:13:48 +0100
You could subclass a new metafield type, with a new get_search_conditions function function. See: https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/MetaField/Int.pm#L137 ...for how a bit of text is converted into a search value. I know this isn't a full answer, but it should get you started. -- Adam Field Business Relationship Manager and Community Lead EPrints Services +44 (0)23 8059 8814 On 9 Oct 2015, at 17:30, Thomas Lauke wrote: > Hi Adam, > >> But how to use regular expressions or something similar? > can you imagine any hack to overcome the contradicting properties of 'text' resp. 'id' fields? > 'id' type allows search 'as is' without ignoring anything, but _no_ search patterns; > 'text' type allows search by search patterns, but ignores any pattern less than 3 characters long :( > > Any idea? > Thomas > *** 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/
- References:
- [EP-tech] Re: search for 2-character-string
- From: Thomas Lauke <th.lauke@arcor.de>
- [EP-tech] Re: search for 2-character-string
- Prev by Date: [EP-tech] Re: Bazaar Improvements
- Next by Date: [EP-tech] Re: citation modification
- Previous by thread: [EP-tech] Re: search for 2-character-string
- Next by thread: [EP-tech] Updating a compound multiple field
- Index(es):