-
Notifications
You must be signed in to change notification settings - Fork 26
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
frontend: refactor layout #107
Conversation
45a9321
to
e82cfe7
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.
Some links have to be updated:
- from the patrons brief and detailed view to the circulation module, and when possible use a
url_for
.
rero_ils/modules/utils.py
Outdated
# waive the privileges and immunities granted to it by virtue of its status | ||
# as an Intergovernmental Organization or submit itself to any jurisdiction. | ||
|
||
"""Utilities for reroils-record-editor.""" |
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.
Change Docstring.
Header menu: Blue on blue is not good. we can't see well. Change with white color. |
Header: The logo is smaller than before |
Header menu: The "menu" menu is not the right term, because it contains languages. Change with "Languages" or other and extract help to another place. |
Homepage: The white writing on the image has changed. Characters too small. |
Layout: With the admin menu, the whole presentation is shifted to the right. |
Homepage: The red banner with the development text is too small. |
rero_ils/modules/admin.py
Outdated
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2017 RERO. |
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.
Copyright (C) 2018 RERO.
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.
@@ -1,9 +1,9 @@ | |||
<ul class="re-list"> | |||
<li ng-controller="recordController" ng-init="rec=record" ng-repeat="record in vm.invenioSearchResults.hits.hits track by record.id"> | |||
<div class="col-xs-1"> | |||
<div class="col-xs-2"> | |||
<icon-thumbnail class="thumb-brief" identifiers="{{ record.metadata.identifiers }}" type="{{ record.metadata.type }}" config="{{ config }}"></icon-thumbnail> |
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.
record.metadata.identifiers
not defined for new records
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.
That was a bug from 2eb9bde
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.
@rerowep But does this issue affect the brief view rendering?
rero_ils/modules/documents_items/templates/rero_ils/detailed_view_documents_items.html
Outdated
Show resolved
Hide resolved
rero_ils/modules/admin.py
Outdated
# waive the privileges and immunities granted to it by virtue of its status | ||
# as an Intergovernmental Organization or submit itself to any jurisdiction. | ||
|
||
"""reroils record editor.""" |
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.
remove reroils term. Change with "Record editor."
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2017 RERO. |
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.
Copyright (C) 2018 RERO.
# waive the privileges and immunities granted to it by virtue of its status | ||
# as an Intergovernmental Organization or submit itself to any jurisdiction. | ||
|
||
"""reroils translation json utils.""" |
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.
remove reroils term. Change with "Translation json utils."
<base href="/items/circulation"> | ||
{%- extends 'admin/master.html' %} | ||
{%- block head_meta %} | ||
<base href="/admin/circulation"> |
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.
url_for ?
"""Angular circulation application.""" | ||
return render_template('rero_ils/circulation_ui.html') | ||
|
||
|
||
def item_view_method(pid, record, template=None, **kwargs): | ||
r"""Display default view. |
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.
r before " ?
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.
@Garfield-fr It seems to be a way to allow \
in Docstrings.
@@ -0,0 +1,9 @@ | |||
{# -*- coding: utf-8 -*- | |||
|
|||
This file is part of Invenio. |
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.
This file is part of RERO ILS.
{# -*- coding: utf-8 -*- | ||
|
||
This file is part of Invenio. | ||
Copyright (C) 2015-2018 CERN. |
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.
Copyright (C) 2018 RERO.
{% extends 'invenio_theme/page.html' %} | ||
{# -*- coding: utf-8 -*- | ||
|
||
This file is part of Invenio. |
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.
This file is part of RERO ILS.
@@ -0,0 +1,69 @@ | |||
{# -*- coding: utf-8 -*- | |||
|
|||
This file is part of Invenio. |
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.
This file is part of RERO ILS.
{# -*- coding: utf-8 -*- | ||
|
||
This file is part of Invenio. | ||
Copyright (C) 2015-2018 CERN. |
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.
Copyright (C) 2018 RERO.
"""Evaluate if the resource can be created.""" | ||
adm = current_app.extensions['invenio-admin'].admin | ||
|
||
def get_admin_view(record_type, menus): |
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.
def ident isn't good
adm = current_app.extensions['invenio-admin'].admin | ||
|
||
def get_admin_view(record_type, menus): | ||
""".""" |
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.
Missing docstring
|
||
|
||
def admin_permission_factory(admin_view): | ||
""".""" |
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.
Missing docstring
Needs max width or responsive image width. |
* BETTER: css and js bundles * BETTER: include reroils-record-editor in the app * BETTER: editor views based on Invenio-Admin * NEW: professional sidebar * BETTER: refactor header layout * BETTER: reduce the number of search jinja templates * FIX: closes rero#109 Co-Authored-by: Johnny Mariéthoz <[email protected]> Co-Authored-by: Igor Milhit <[email protected]> Signed-off-by: Igor Milhit <[email protected]>
Co-Authored-by: Johnny Mariéthoz [email protected]
Co-Authored-by: Igor Milhit [email protected]
Note:
Tests:
pipenv run pip uninstall reroils-record-editor
andpipenv run pip install -e .[all]
./scripts/bootstrap
,./scripts/setup
,./scripts/server
or adapt your ownhttps://localhost:5000