forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* origin/rc: Add optional includes for Studio Use custom search filter generator to show course tiles for discovery search Fix search filter generator to search over all courses instead of none if no course provided Push version of Submit & Compare xblock to 0.7.0 Add an optional include to the bottom of the instructor dashboard
- Loading branch information
Showing
12 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
## mako | ||
<%page expression_filter="h" args="online_help_token"/> | ||
<%namespace name='static' file='static_content.html'/> | ||
<%static:optional_include_mako file="header-pre.html" is_theming_enabled="True" /> | ||
<%include file="${static.get_template_path(relative_path='navigation/navigation.html')}" args="online_help_token=online_help_token" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
27 changes: 27 additions & 0 deletions
27
openedx/stanford/lms/lib/courseware_search/lms_filter_generator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" | ||
Custom override of SearchFilterGenerator to use course tiles for | ||
discovery search. | ||
""" | ||
from search.filter_generator import SearchFilterGenerator | ||
|
||
from branding_stanford.models import TileConfiguration | ||
from lms.lib.courseware_search.lms_filter_generator import LmsSearchFilterGenerator | ||
|
||
|
||
class TileSearchFilterGenerator(LmsSearchFilterGenerator): | ||
""" | ||
SearchFilterGenerator for LMS Search. | ||
""" | ||
|
||
def field_dictionary(self, **kwargs): | ||
""" | ||
Return field filter dictionary for search. | ||
""" | ||
field_dictionary = super(TileSearchFilterGenerator, self).field_dictionary(**kwargs) | ||
if not kwargs.get('user'): | ||
# Adds tile courses for discovery search | ||
course_tiles_ids = TileConfiguration.objects.filter( | ||
enabled=True, | ||
).values_list('course_id', flat=True).order_by('-change_date') | ||
field_dictionary['course'] = list(course_tiles_ids) | ||
return field_dictionary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ xblock-image-modal==0.4.2 | |
-e git+https://github.com/Stanford-Online/xblock-free-text-response@release/v0.4.0#egg=xblock-free-text-response==0.4.0 | ||
-e git+https://github.com/Stanford-Online/[email protected]#egg=grademebutton | ||
-e git+https://github.com/edx-solutions/xblock-ooyala.git@32d52edaa820dbdbf846d8a84f6bccbf0b9c8218#egg=xblock_ooyala_player-master | ||
-e git+https://github.com/Stanford-Online/xblock-submit-and-compare.git@release/0.6.2#egg=xblock-submit-and-compare | ||
-e git+https://github.com/Stanford-Online/xblock-submit-and-compare.git@release/0.7.0#egg=xblock-submit-and-compare==0.7.0 | ||
-e git+https://github.com/Stanford-Online/xblock-mufi.git@release/0.2.1#egg=xblock_mufi-master | ||
-e git+https://github.com/Stanford-Online/edx-analytics-data-api-client.git@1b8260ce8dd6edb999fffc46b09f77c83f87e1f9#egg=edx-analytics-data-api-client | ||
-e git+https://github.com/Stanford-Online/xblock-inline-dropdown.git@release/0.2#egg=inline_dropdown | ||
|