[EP-tech] Re: search for 2-character-string

Field A.N. af05v at ecs.soton.ac.uk
Mon Oct 12 10:13:48 BST 2015


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/




More information about the Eprints-tech mailing list