1 Mojo Facets - server side facet browsing using Mojolicious and jQuery UI
6 Put JSON file from Simile Exhibit project in data/ with extension .js or .json
8 Alternative format is pipe (|) separated text files with extension .txt
9 First column is always header with field names
10 Multi-line values should be wrapped in ^multi-line-text^
12 If you save bounch of html files with table in directory with .html extension, they will
13 we all read as single data set, allowing easy analysys of search results, for example.
18 LANG=hr_HR.utf8 ./script/mojo_facets daemon --reload
24 ./script/mojo_facets daemon --listen 'http://*:4444' --reload
27 MASTER=http://localhost:4444 ./script/mojo_facets daemon --reload
30 Turning actions into changes:
32 There are two kinds of audit log in MojoFacets:
34 1. actions stored in /tmp/actions are clicks on user interface with parameters
36 2. changes are more structured, including old value and unique values from
37 edit of one value in dataset
39 If you want to create changes which can be applied again on original dataset or
40 any other dataset which has same unique values you can use helper script:
42 $ ./script/actions-to-changes /data/mojo_facets/*
45 Modify your data using perl snippets
47 Experimental REPL console supports perl snippets which get $row hash which is one
48 element from your dataset. All values are repetable, so you always have to create
49 array of values if you are creating new columns, even for single value.
51 * generate new columns with number of elements in some other column
53 $row->{author_count} = [ $#{ $row->{autor} } + 1 ];
55 * generate century column from year
57 foreach my $year ( @{ $row->{Year} } ) {
58 push @{ $row->{century} }, int($year/100)+1;
61 * modify existing column
63 foreach ( @{ $rec->{'Cited Author'} } ) {
65 $_ = uc $_; # assigment is needed to modify value!
68 Code examples are stored in public/code
70 They use Column name.description.pl notatition so only snippets which have applicable