From a59a3ed7047fc9935dda4de650c2766f57beae2f Mon Sep 17 00:00:00 2001 From: Tabish Shaikh <2016ucs0014@iitjammu.ac.in> Date: Tue, 7 Jan 2020 19:42:23 +0530 Subject: [PATCH 1/2] removed preset:children --- openlibrary/templates/home/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlibrary/templates/home/index.html b/openlibrary/templates/home/index.html index 4be033799ce..23d15cd1561 100644 --- a/openlibrary/templates/home/index.html +++ b/openlibrary/templates/home/index.html @@ -16,7 +16,7 @@ $:render_template("home/custom_ia_carousel", title="Romance", key="romance", query="subject:(romance)", sorts=["loans__status__last_loan_date+desc"], limit=18, test=test) - $:render_template("home/custom_ia_carousel", title="Kids", key="children", query="preset:children", sorts=["loans__status__last_loan_date+desc"], limit=18, test=test) + $:render_template("home/custom_ia_carousel", title="Kids", key="children", query="subject:(Juvenile Fiction)", sorts=["loans__status__last_loan_date+desc"], limit=18, test=test) $:render_template("home/custom_ia_carousel", title="Thrillers", key="thrillers", query="preset:thrillers", sorts=["downloads+desc"], limit=18, test=test) From 7d304c0460b2b14a271a7a2bc0d25a1bcc3b23a5 Mon Sep 17 00:00:00 2001 From: Tabish Shaikh <2016ucs0014@iitjammu.ac.in> Date: Tue, 7 Jan 2020 19:42:37 +0530 Subject: [PATCH 2/2] added subject juvenile fiction --- openlibrary/plugins/openlibrary/home.py | 1 - 1 file changed, 1 deletion(-) diff --git a/openlibrary/plugins/openlibrary/home.py b/openlibrary/plugins/openlibrary/home.py index 8271dee2382..ff7ce08eae9 100644 --- a/openlibrary/plugins/openlibrary/home.py +++ b/openlibrary/plugins/openlibrary/home.py @@ -28,7 +28,6 @@ CAROUSELS_PRESETS = { 'preset:thrillers': '(creator:"Clancy, Tom" OR creator:"King, Stephen" OR creator:"Clive Cussler" OR creator:("Cussler, Clive") OR creator:("Dean Koontz") OR creator:("Koontz, Dean") OR creator:("Higgins, Jack")) AND !publisher:"Pleasantville, N.Y. : Reader\'s Digest Association" AND languageSorter:"English"', - 'preset:children': '(creator:("parish, Peggy") OR creator:("avi") OR title:("goosebumps") OR creator:("Dahl, Roald") OR creator:("ahlberg, allan") OR creator:("Seuss, Dr") OR creator:("Carle, Eric") OR creator:("Pilkey, Dav"))', 'preset:comics': '(subject:"comics" OR creator:("Gary Larson") OR creator:("Larson, Gary") OR creator:("Charles M Schulz") OR creator:("Schulz, Charles M") OR creator:("Jim Davis") OR creator:("Davis, Jim") OR creator:("Bill Watterson") OR creator:("Watterson, Bill") OR creator:("Lee, Stan"))', 'preset:authorsalliance_mitpress': '(openlibrary_subject:(authorsalliance) OR collection:(mitpress) OR publisher:(MIT Press) OR openlibrary_subject:(mitpress)) AND (!loans__status__status:UNAVAILABLE)' }