-
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
assets: move to webpack #1537
assets: move to webpack #1537
Conversation
b4aa9a2
to
c60c897
Compare
ffec4a4
to
3ef3d6f
Compare
6cee8b0
to
40fcec9
Compare
rero_ils/filter.py
Outdated
to_return = '<script {tags} src="{value}"></script>'.format( | ||
value=value, | ||
tags=tags | ||
) | ||
if _type == 'css': | ||
to_return = '<link {tags} href="{value}" rel="stylesheet">'.format( | ||
value=value, | ||
tags=tags | ||
) | ||
return to_return |
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.
if _type == 'css':
return '<link {tags} href="{value}" rel="stylesheet">'.format(
value=value,
tags=tags
)
return '<script {tags} src="{value}"></script>'.format(
value=value,
tags=tags
)
It seems "dummy" to intitialize a variable and override it just after
<figure class="mb-0 thumb"> | ||
<img class="img-responsive border border-light" | ||
src="{{record | get_cover_art}}" | ||
onerror="this.src='{{url_for("static", filename="images/icon_%s.png" % record.type) }}'" > |
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.
👍😇
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.
It was your idea! Thanks.
rero_ils/modules/documents/utils.py
Outdated
url, headers={'referer': flask_request.host_url}) | ||
|
||
if response.status_code != 200: | ||
current_app.logger.warning( |
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.
It will log a looooooooot of message isn't it ? Maybe warning
level isn't the best for this message ? info/debug ?
var sPageURL = window.location.search.substring(1), | ||
sURLVariables = sPageURL.split('&'), | ||
sParameterName, | ||
i; |
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.
Mmmm.... strange construction, I would trust you
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.
Me too, I found this code on the web and seems work.
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.
Commit message approved.
rero_ils/config.py
Outdated
@@ -197,13 +182,14 @@ def _(x): | |||
#: Template for error pages. | |||
THEME_ERROR_TEMPLATE = 'rero_ils/page_error.html' | |||
#: RERO-ils search endpoint (i.e /search/documents) | |||
RERO_ILS_THEME_SEARCH_ENDPOINT = '/search/documents' | |||
# RERO_ILS_THEME_SEARCH_ENDPOINT = '/search/documents' |
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.
Do you actually want to comment this, or do you want to remove it?
rero_ils/theme/__init__.py
Outdated
@@ -1,7 +1,7 @@ | |||
# -*- coding: utf-8 -*- | |||
# | |||
# RERO ILS | |||
# Copyright (C) 2020 RERO | |||
# Copyright (C) 2019 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.
Why are you going in the past? I know, 2020 is an awful year, but still.
/* | ||
|
||
RERO ILS | ||
Copyright (C) 2019 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) 2019 RERO | |
Copyright (C) 2020 RERO |
/* | ||
|
||
RERO ILS | ||
Copyright (C) 2019 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) 2019 RERO | |
Copyright (C) 2020 RERO |
@@ -1,7 +1,7 @@ | |||
/* | |||
|
|||
RERO ILS | |||
Copyright (C) 2020 RERO | |||
Copyright (C) 2019 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) 2019 RERO | |
Copyright (C) 2020 RERO |
icon for ill request form is missing in the user "tool" menu |
There is an issue about that: #1179 |
After the merge of previous PR to use Angular 11, brief and detailed views take too much space in width. There is a class |
I saw that it is not possible to do a request in the pro interface. The modal to enter patron barcode and choose pickup is not displayed. That makes several cypress tests fail. |
* Removes npm utils from the bootstrap script. * Removes angularjs translations extraction. * Moves all theme related files into a specific directory. * Removes all bundles files. * Removes useless INVENIO_SEARCH_UI configuration variables. * Includes the angular application with a custom manner: it does not make sense to use `invenio-assets` for an already optimized bundle. * Removes js to store the last visited html tab, closes rero#1394. * Removes angularjs dependency. * Use simple code to generate thumbnails in the document detailed view. * Reduces the docker image size by cleaning several cache files. * Closes rero#713. Signed-off-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
I don't think it is related to this issue. This happens on the search list view, not in the circulation. |
Unable to reproduce. |
unable to reproduce |
make sense to use
invenio-assets
for an already optimized bundle.Why are you opening this PR?
Dependencies
How to test?
Code review check list