[librecat-dev] Make a report question

Patrick Hochstenbach Patrick.Hochstenbach at UGent.be
Tue Aug 30 16:03:38 CEST 2016


sort_field("tags", uniq:1)
join_field(tags, ",")
do marc_each()
  if marc_match(590,'(?i)enron’)  #< case insensitive regex match
select exists(regex_match) # select only those with a match

$ catmandu convert MARC to CSV —fix myfixes.fix < data.mrc

> On 30 Aug 2016, at 15:35, Sergio Letuche <code4libuserx at gmail.com> wrote:
> Hello community,
> How could i run a fix, that would return a JSON file,and a  CSV, of the following:
> Return for each marc record, the 001 value, and the values of first the whole tag, sorted by number (perhaps use of unique?) and secondly, the discrete values of a certain tag subfield.
> that have certain data, but with a clever regex, that would not only match 
> Enron, but also the control characters that may also be in such a phrase, the like occurrences of this word, or phrase, in order to be able to correctly make the regex,
>  ## if there is a 590 AND it has the word "Enron"...
>   13     if ($field and $field->as_string() =~ /Enron/i) {
> Best
> _______________________________________________
> librecat-dev mailing list
> - send list mails to librecat-dev at lists.uni-bielefeld.de
> - to unsubscribe or change options, visit https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
> - project website: http://librecat.org/

Patrick Hochstenbach - digital architect
University Library Ghent
Sint-Hubertusstraat 8 - 9000 Ghent - Belgium
patrick.hochstenbach at ugent.be
+32 (0)9 264 7980

More information about the librecat-dev mailing list