Skip to content

Commit

Permalink
rename feed to explore
Browse files Browse the repository at this point in the history
  • Loading branch information
adrtod committed Dec 5, 2017
1 parent eafcf8a commit fc6c9dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The difference between bookmarks and likes is that liked papers are fed
into the recommendation engine.

## Recommendations.
Recommendations are available through the "Feed" page and are updated
Recommendations are available through the "Explore" page and are updated
every two minutes. On that page recommended papers are preceded by
trending papers which shows some of the most popular papers.

Expand Down
12 changes: 6 additions & 6 deletions src/ml4u-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
<div class="userdiv">[[username]]</div>
</div>
<iron-selector selected="[[page]]" attr-for-selected="name" class="drawer-list" role="navigation">
<a name="feed" href="/feed"><iron-icon icon="icons:list"></iron-icon><span class="menu-category-keyword">Feed</span></a>
<a name="explore" href="/explore"><iron-icon icon="icons:list"></iron-icon><span class="menu-category-keyword">Explore</span></a>
<a name="schedule" href="/schedule"><iron-icon icon="icons:today"></iron-icon><span class="menu-category-keyword">Schedule</span></a>
<template is="dom-if" if="{{loggedIn}}">
<a name="library" href="/library"><iron-icon icon="icons:book"></iron-icon><span class="menu-category-keyword">Library</span></a>
Expand Down Expand Up @@ -291,10 +291,10 @@
fallback-selection="view404"
role="main">

<ml4u-page-feed trending-object={{trending}} name="feed" selected-item={{selectedItem}}
<ml4u-page-explore trending-object={{trending}} name="explore" selected-item={{selectedItem}}
profile-secret=[[profileSecret]] username="{{username}}" user-likes="[[userLikes]]"
profile-data="{{profileData}}" logged-in=[[loggedIn]]
profile-recommendations={{profileRecommendations}}></ml4u-page-feed>
profile-recommendations={{profileRecommendations}}></ml4u-page-explore>

<ml4u-page-schedule route=[[subroute]] iron-route-hash="[[ironRouteHash]]"
selected-item={{selectedItem}} popup-display-session={{popupDisplaySession}}
Expand Down Expand Up @@ -424,11 +424,11 @@
currentLoggedIn = this.loggedIn;
if(currentLoggedIn) {
if (currentPage == "login" || currentPage == "register" || currentPage == "reset")
this.page = "feed";
this.page = "explore";
}
else {
if (currentPage == "library")
this.page = "feed";
this.page = "explore";
}
},

Expand Down Expand Up @@ -496,7 +496,7 @@
},

_routePageChanged: function(page) {
this.page = page || 'feed';
this.page = page || 'explore';

if (!this.$.drawer.persistent) {
this.$.drawer.close();
Expand Down
2 changes: 1 addition & 1 deletion src/ml4u-page-about.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h1>Bookmarks and Likes</h1>
<p>The difference between bookmarks and likes is that liked papers are fed into the recommendation engine.</p>
<hr/>
<h1>Recommendations</h1>
<p>Recommendations are available through the "Feed" page and are updated every two minutes. On that page recommended papers are preceded by trending papers which shows some of the most popular papers.</p>
<p>Recommendations are available through the "Explore" page and are updated every two minutes. On that page recommended papers are preceded by trending papers which shows some of the most popular papers.</p>
<p>The recommendation engine is based on the <a href="http://www.cs.columbia.edu/~blei/papers/WangBlei2011.pdf" target="_blank">collaborative topic regression (CTR) model</a> of C. Wang and D. Blei.</p>
<hr/>
<h1>Why are we building it?</h1>
Expand Down
8 changes: 4 additions & 4 deletions src/ml4u-page-feed.html → src/ml4u-page-explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="import" href="ml4u-components/ml4u-research-paper-card.html">
<link rel="import" href="ml4u-db-provider.html">

<dom-module id="ml4u-page-feed">
<dom-module id="ml4u-page-explore">
<template>
<style include="shared-styles">
:host {
Expand Down Expand Up @@ -84,7 +84,7 @@

<script>
Polymer({
is: 'ml4u-page-feed',
is: 'ml4u-page-explore',
properties: {
loggedIn: {
type: Number,
Expand Down Expand Up @@ -323,7 +323,7 @@
console.log(item_t);
//if (object.hasOwnProperty(property)) {
if( (item_t.title && item_t.title.toLowerCase().includes(searchString))
|| (item_t.description && item_t.description.toLowerCase().includes(searchString))
|| (item_t.description && item_t.description.toLowerCase().includes(searchString))
|| (this.findInAuthors(item_t, searchString))
|| (this.findInLabels(item_t, searchString))
) {
Expand Down Expand Up @@ -391,7 +391,7 @@
},
ready: function() {
console.log('user likes', this.userLikes);
console.log('secret from page feed', this.profileSecret);
console.log('secret from page explore', this.profileSecret);
}
});
</script>
Expand Down

0 comments on commit fc6c9dc

Please sign in to comment.