X-Git-Url: http://jaekl.net/gitweb/?p=quanweb.git;a=blobdiff_plain;f=js%2Fsrc%2FSearchController.js;h=a4f4e4a72ace1bb3ade06e88610cb78dc8111d39;hp=6f48c6c828fc63ddb463f9a8fcd5ed2f5c897438;hb=cc857b1fd445a9b78946d37edb4b4796fd7a725e;hpb=4eb9b4e2e740117d26b2078591dc0ed5f9b4341a diff --git a/js/src/SearchController.js b/js/src/SearchController.js index 6f48c6c..a4f4e4a 100644 --- a/js/src/SearchController.js +++ b/js/src/SearchController.js @@ -5,7 +5,7 @@ var SearchController = (function () { var my = {}, booksModel = undefined; - const terms = ['aut', 'lan', 'ser', 'tit']; + const terms = ['aut', 'lan', 'lst', 'ser', 'tit']; // ============== // Public methods @@ -78,10 +78,14 @@ var SearchController = (function () { else { url += '&'; } - url += term + '=' + encodeURIComponent('%' + value + '%'); + if (term === 'lst') { + url += term + '=' + encodeURIComponent('' + value); + } + else { + url += term + '=' + encodeURIComponent('%' + value + '%'); + } } } - return url; }