-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: tind-master
Are you sure you want to change the base?
Conversation
remileduc
commented
Aug 19, 2016
- see https://tindtechnologies.atlassian.net/browse/IN3-189
- 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)" /> |
There was a problem hiding this comment.
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
245915a
to
19819b8
Compare
@remileduc and the filtering works too? |
👌 |
yes they do thanks to the big condition :p |
02ce83b
to
14b5ca2
Compare