search: facets per collection

Allows to configure independently facets for every collection

Flask-Admin module available at /admin/facetcollectionview/

Matching fixtures for demosite: https://github.com/inveniosoftware/invenio-demosite/pull/21

There is no need to recreate DB. Instead of loading the fixtures - which are the default configuration, you can add facets by the Flask-Admin module. The facets added to the default collection with id '1' will be displayed in other collections which doesn't have the facets set defined.

You need to run the updater to update your DB.

Alters: https://github.com/jirikuncar/invenio/pull/242
1: D200 One-line docstring should not occupy 3 lines
29:1: F401 'iteritems' imported but unused
158: D203 Expected 1 blank line *before* class docstring, found 0
161: D102 Docstring missing
165: D102 Docstring missing
169: D102 Docstring missing
174:17: E128 continuation line under-indented for visual indent
176:17: E128 continuation line under-indented for visual indent
178:17: E128 continuation line under-indented for visual indent
180:17: E128 continuation line under-indented for visual indent
183:38: E128 continuation line under-indented for visual indent
185:17: E128 continuation line under-indented for visual indent
186:17: E128 continuation line under-indented for visual indent
187:17: E128 continuation line under-indented for visual indent
190:17: E128 continuation line under-indented for visual indent
193:17: E128 continuation line under-indented for visual indent
194:17: E128 continuation line under-indented for visual indent
195:17: E128 continuation line under-indented for visual indent
198:17: E128 continuation line under-indented for visual indent
203: D102 Docstring missing
219: D102 Docstring missing
223: D102 Docstring missing
237: D102 Docstring missing
245: D102 Docstring missing
254: D102 Docstring missing
259: D102 Docstring missing
262:13: E125 continuation line with same indent as next logical line
268:13: E128 continuation line under-indented for visual indent
269:13: E128 continuation line under-indented for visual indent
270:13: E128 continuation line under-indented for visual indent
271:13: E128 continuation line under-indented for visual indent
272:13: E128 continuation line under-indented for visual indent
274:13: E128 continuation line under-indented for visual indent
275:13: E128 continuation line under-indented for visual indent
282:13: E128 continuation line under-indented for visual indent
283:13: E128 continuation line under-indented for visual indent
290:13: E128 continuation line under-indented for visual indent
291:13: E128 continuation line under-indented for visual indent
292:13: E128 continuation line under-indented for visual indent
293:13: E128 continuation line under-indented for visual indent
294:13: E128 continuation line under-indented for visual indent
297:9: E128 continuation line under-indented for visual indent
299:9: E128 continuation line under-indented for visual indent
303:1: E128 continuation line under-indented for visual indent
304:13: E128 continuation line under-indented for visual indent
322:13: E128 continuation line under-indented for visual indent
323:13: E128 continuation line under-indented for visual indent
324:13: E128 continuation line under-indented for visual indent
328:13: E126 continuation line over-indented for hanging indent
339: D200 One-line docstring should not occupy 3 lines
347:17: E128 continuation line under-indented for visual indent
353: D102 Docstring missing
382:13: E126 continuation line over-indented for hanging indent
392:21: E128 continuation line under-indented for visual indent
397:5: E303 too many blank lines (2)
438:5: E303 too many blank lines (2)
439:13: E126 continuation line over-indented for hanging indent
442:33: E502 the backslash is redundant between brackets
443:17: E131 continuation line unaligned for hanging indent
460: D401 First line should be imperative: 'Retund', not 'Retunds'
481:1: E303 too many blank lines (3)
481: D203 Expected 1 blank line *before* class docstring, found 0
481: D204 Expected 1 blank line *after* class docstring, found 0
485:17: E128 continuation line under-indented for visual indent
486:13: E128 continuation line under-indented for visual indent
488:17: E128 continuation line under-indented for visual indent
490:17: E128 continuation line under-indented for visual indent
494: D102 Docstring missing
498: D102 Docstring missing
511: D203 Expected 1 blank line *before* class docstring, found 0
511: D204 Expected 1 blank line *after* class docstring, found 0
539: D203 Expected 1 blank line *before* class docstring, found 0
539: D204 Expected 1 blank line *after* class docstring, found 0
543:17: E128 continuation line under-indented for visual indent
544:13: E128 continuation line under-indented for visual indent
546:17: E128 continuation line under-indented for visual indent
548:13: E128 continuation line under-indented for visual indent
551: D203 Expected 1 blank line *before* class docstring, found 0
551: D204 Expected 1 blank line *after* class docstring, found 0
555:17: E128 continuation line under-indented for visual indent
557:17: E128 continuation line under-indented for visual indent
559:17: E128 continuation line under-indented for visual indent
561:17: E128 continuation line under-indented for visual indent
563:17: E128 continuation line under-indented for visual indent
564:17: E128 continuation line under-indented for visual indent
565:17: E128 continuation line under-indented for visual indent
567:17: E128 continuation line under-indented for visual indent
570: D203 Expected 1 blank line *before* class docstring, found 0
570: D204 Expected 1 blank line *after* class docstring, found 0
574:17: E128 continuation line under-indented for visual indent
579: D203 Expected 1 blank line *before* class docstring, found 0
579: D204 Expected 1 blank line *after* class docstring, found 0
583:17: E128 continuation line under-indented for visual indent
585:17: E128 continuation line under-indented for visual indent
587:17: E128 continuation line under-indented for visual indent
589:17: E128 continuation line under-indented for visual indent
593: D203 Expected 1 blank line *before* class docstring, found 0
593: D204 Expected 1 blank line *after* class docstring, found 0
597:17: E128 continuation line under-indented for visual indent
602: D401 First line should be imperative: 'Return', not 'Returns'
602: D202 No blank lines allowed *after* function docstring, found 1
602: D400 First line should end with '.', not 'x'
615: D203 Expected 1 blank line *before* class docstring, found 0
615: D204 Expected 1 blank line *after* class docstring, found 0
619:17: E128 continuation line under-indented for visual indent
621:17: E128 continuation line under-indented for visual indent
623:17: E128 continuation line under-indented for visual indent
625:17: E128 continuation line under-indented for visual indent
627:17: E128 continuation line under-indented for visual indent
628:13: E128 continuation line under-indented for visual indent
630:17: E128 continuation line under-indented for visual indent
632:17: E128 continuation line under-indented for visual indent
635: D203 Expected 1 blank line *before* class docstring, found 0
635: D204 Expected 1 blank line *after* class docstring, found 0
639:17: E128 continuation line under-indented for visual indent
641:17: E128 continuation line under-indented for visual indent
644: D102 Docstring missing
651: D203 Expected 1 blank line *before* class docstring, found 0
651: D204 Expected 1 blank line *after* class docstring, found 0
655:17: E128 continuation line under-indented for visual indent
656:17: E128 continuation line under-indented for visual indent
657:17: E128 continuation line under-indented for visual indent
659:17: E128 continuation line under-indented for visual indent
660:17: E128 continuation line under-indented for visual indent
661:17: E126 continuation line over-indented for hanging indent
664:17: E128 continuation line under-indented for visual indent
665:18: E128 continuation line under-indented for visual indent
669:13: E128 continuation line under-indented for visual indent
680: D203 Expected 1 blank line *before* class docstring, found 0
680: D204 Expected 1 blank line *after* class docstring, found 0
684:17: E128 continuation line under-indented for visual indent
686:17: E128 continuation line under-indented for visual indent
688:17: E128 continuation line under-indented for visual indent
690:17: E128 continuation line under-indented for visual indent
692:17: E128 continuation line under-indented for visual indent
695: D203 Expected 1 blank line *before* class docstring, found 0
698: D102 Docstring missing
703:17: E128 continuation line under-indented for visual indent
706:17: E128 continuation line under-indented for visual indent
714: D102 Docstring missing
725: D203 Expected 1 blank line *before* class docstring, found 0
725: D204 Expected 1 blank line *after* class docstring, found 0
727: D102 Docstring missing
731:17: E128 continuation line under-indented for visual indent
732:17: E128 continuation line under-indented for visual indent
737: D203 Expected 1 blank line *before* class docstring, found 0
737: D204 Expected 1 blank line *after* class docstring, found 0
748: D203 Expected 1 blank line *before* class docstring, found 0
748: D204 Expected 1 blank line *after* class docstring, found 0
756: D102 Docstring missing
767: D401 First line should be imperative: 'Return', not 'Returns'
772: D203 Expected 1 blank line *before* class docstring, found 0
772: D204 Expected 1 blank line *after* class docstring, found 0
776:17: E128 continuation line under-indented for visual indent
778:17: E128 continuation line under-indented for visual indent
780:17: E128 continuation line under-indented for visual indent
784: D102 Docstring missing
792: D401 First line should be imperative: 'Return', not 'Returns'
797: D203 Expected 1 blank line *before* class docstring, found 0
797: D204 Expected 1 blank line *after* class docstring, found 0
801:17: E128 continuation line under-indented for visual indent
806: D203 Expected 1 blank line *before* class docstring, found 0
806: D204 Expected 1 blank line *after* class docstring, found 0
810:17: E128 continuation line under-indented for visual indent
812:17: E128 continuation line under-indented for visual indent
813:17: E128 continuation line under-indented for visual indent
815:17: E128 continuation line under-indented for visual indent
819: D203 Expected 1 blank line *before* class docstring, found 0
819: D204 Expected 1 blank line *after* class docstring, found 0
823:17: E128 continuation line under-indented for visual indent
825:17: E128 continuation line under-indented for visual indent
827:17: E128 continuation line under-indented for visual indent
829:17: E128 continuation line under-indented for visual indent
831:17: E128 continuation line under-indented for visual indent
833:17: E128 continuation line under-indented for visual indent
836:17: E128 continuation line under-indented for visual indent
838:17: E128 continuation line under-indented for visual indent
840:17: E128 continuation line under-indented for visual indent
843: D400 First line should end with '.', not 's'
854: D102 Docstring missing
891:1: W391 blank line at end of file