Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invenio-communities: add facets for collections #8

Open
wants to merge 15 commits into
base: tind-master
Choose a base branch
from

Conversation

remileduc
Copy link

remileduc added 14 commits July 12, 2016 13:32
- we can manage each community with these permissions:
  - create
  - delete
  - manage the team
  - read
  - edit
  - curate
- possibility to add / remove users to the community
- no more owner of the community: only different permissions
- we now have a link to community team management in "my communities"
- added possibility to make a community public from the edition
- better javascript bundle
- added the panel my communities in the new pages
- we can now suggest a record from a URL /communities/suggest/
- https://tindtechnologies.atlassian.net/browse/IN3-56
- fixed JS error on loading page
- bad name of function, conflict with the one in invenio_theme for facets
- added flash message when a record is accepted / rejected
- use of namedtuple for the /team/ (more beautiful than inner class)
- see https://tindtechnologies.atlassian.net/browse/IN3-65
- rebased on
- rm logo in edit and new
- added buttons in community box in index
- icons in mycommunities box
- hide text when no action create
- change collection to community in the edit page
- add button communities in the header
- remove delete action from team management
- more specific flash messages when suggest a record

- see https://tindtechnologies.atlassian.net/browse/IN3-65
- add URL to tindeposit
- fix issue when admin and can't see all the communities
- see https://tindtechnologies.atlassian.net/browse/IN3-178
- add URL to tindeposit
- fix issue when admin and can't see all the communities
- see https://tindtechnologies.atlassian.net/browse/IN3-178
<ul class="list-unstyled terms" ng-controller="FacetsShowMoreController">
<li ng-repeat="subitem in item[subkey].buckets | limitTo: facetResults">
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox-{{subitem.key}}" class="include-facet" type="checkbox" ng-checked="handler[subkey].indexOf(subitem.key) > -1" ng-click="!((handler[key].indexOf(item.key) > -1) !== (handler[subkey].indexOf(subitem.key) > -1)) && handleClick(key, item.key); handleClick(subkey, subitem.key)" />
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you know, angular is here to make simple and beautiful JS code (I love JS frameworks...)

so, globally, what it does... We have facets and subfacets, named "Volume" (top collection) and "Issue" (sub-collection). If you click on an issue facet, you want to search for this issue in the given volume.

So, if we have:

  • Volume 1, Issue a
  • Volume 1, Issue b
  • Volume 2, Issue a

and you click on the first one, you want to search for issue a in volume 1, and not all issue a.

in the case volume 1 is already checked, we don't uncheck it, so we don't call the function "handleClick". Otherwise we do.
that's all :p

@remileduc remileduc force-pushed the remileduc/communities/integrate-facets branch from 245915a to 19819b8 Compare August 19, 2016 14:19
@andrewm89
Copy link

@remileduc and the filtering works too?

@andrewm89
Copy link

👌

@remileduc
Copy link
Author

yes they do thanks to the big condition :p

@remileduc remileduc force-pushed the tind-master branch 2 times, most recently from 02ce83b to 14b5ca2 Compare September 22, 2016 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants