-
Notifications
You must be signed in to change notification settings - Fork 25
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
ui: Implement global and organisations view #419
Conversation
b901175
to
7af75cf
Compare
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.
- View homepage: make the link name to global view more precise: RERO ILS global
- Autocomplete: suggestions must base on the view"s documents
- Autocomplete: link to MEF persons are broken
- From an admin page, link is broken to a public page
- When I logout from an institution view, I land on the homepage of the global view
- Authenticated patrons
- are not able to access any pages of the institution"s views
- are not able to login to their institution"s view (only to global view)
- Admin options (we need to find and choose a solution)
- Links from admin pages to public pages are broken (for instance using the main search bar)
- Admin options are displayed on view of Org 2 for a librarian of Org 1: it is confusing
85a1239
to
094214d
Compare
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.
Previous problems are solved! 👍
(except admin options displayed on view of Org 2 for a librarian of Org 1)
Two additional problems observed
- Autocomplete: suggestions for persons must base on the view"s documents
- Person detailed view: links to documents must base on the view"s documents
80da728
to
4143047
Compare
4143047
to
d25fc70
Compare
d25fc70
to
f486ad9
Compare
|
||
|
||
def document_items_filter(org_pid, items): | ||
"""Items filter for organisation document.""" |
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.
can be more concise with the use of filter: http://book.pythontips.com/en/latest/map_filter.html#filter
@@ -752,3 +757,9 @@ def organisation_pid(self): | |||
"""Get organisation pid for item.""" | |||
library = Library.get_record_by_pid(self.library_pid) | |||
return library.organisation_pid | |||
|
|||
@property | |||
def organisation_view(self): |
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.
organisation_viewcode?
|
||
|
||
blueprint = Blueprint( | ||
'item', | ||
__name__, | ||
url_prefix='/item', |
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.
why is it different than mef_person blueprint?
rero_ils/modules/organisations/mappings/v6/organisations/organisation-v0.0.1.json
Outdated
Show resolved
Hide resolved
* Adds new parameter on url to implement view Co-Authored-by: Bertrand Zuchuat <[email protected]>
f486ad9
to
1f8b43b
Compare
Co-Authored-by: Bertrand Zuchuat [email protected]
How to Test
script/bootstrap
script/setup
http://localhost:5000
http://localhost:5000/aoste