-
Notifications
You must be signed in to change notification settings - Fork 65
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
Issue 601: Keep search parameters in resource module #621
Issue 601: Keep search parameters in resource module #621
Conversation
This patch fixes the previously existing behavior that was broken: When going back from a resource detail to the index page using the Home menu link or using the back button of the browser, the search parameters and results are kept.
- Remove debug log
I have just tested it on Chrome. It works for almost all the search exept for "fund" and "relationship". |
- Keep fund parameter
Fix the Get Statistics button on a resource page using an absolute URL (/reports/report.php) instead of a relative URL (../reports/report.php) which assumes that coral is installed in the root directory.
- Use subscriptionEndDate
In common/configuration.ini: [settings] open_new_windows = Y/N By default, the links are opened in a new window/tab.
Currently, resources can be filtered with the following relationship criteria: - All: all resources are displayed (child, parent, or no relationship) - Parent: only parent resources are displayed - Child: only child resources are displayed This patch adds the following criteria: - None: only resources that are neither parent nor child are displayed (ie: only resources with no relationship) Test plan: - Perform a search on the resources index page, with 'None' in the Relationship dropdown list. - Check that only the resources with no relationship are displayed.
- Keep relationship parameter
Thanks for the feedback @sbouis ! |
I'm merging this. |
Tested after the rebase, on both Chrome and Firefox, and works as intended! Great work! |
Background, see Issue #601
This patch fixes the previously existing behavior that was broken:
When going back from a resource detail to the index page using the Home menu
link or using the back button of the browser, the search parameters and results
are kept.
This patch is not very pretty code-wise, so if anyone has a better solution, they're welcome to make another patch.
If not, this can be a quickfix for the time being.