Inspire next 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.

Alters: https://github.com/jirikuncar/invenio/pull/242
Isn't it used for select box in admin view?

On 22 Jul 2014, at 21:05, "Yoan Blanc" <notifications@github.com<mailto:notifications@github.com>> wrote:


In invenio/modules/search/models.py:

> @@ -159,7 +159,10 @@ class Collection(db.Model):
>      """Represents a Collection record."""
>
>      def __repr__(self):
> -        return "%s(%s)" % (self.__class__.__name__, self.id)
> +        collection_name = self.name
> +        if self.id == 1:
> +            collection_name += ' (default)'


Translatable __repr__?

—
Reply to this email directly or view it on GitHub<https://github.com/inveniosoftware/invenio/pull/1982/files#r15248737>.