diff --git a/bower.json b/bower.json index 7d80a87..8613854 100644 --- a/bower.json +++ b/bower.json @@ -18,7 +18,8 @@ "tests" ], "dependencies": { - "jquery-1.11.3.min": "http://code.jquery.com/jquery-1.11.3.min.js" + "jquery-1.11.3.min": "http://code.jquery.com/jquery-1.11.3.min.js", + "jQuery.dotdotdot": "~1.7.3" }, "moduleType": [ "amd", diff --git a/css/main.min.css b/css/main.min.css index e7e9bc8..c4a9e5b 100644 --- a/css/main.min.css +++ b/css/main.min.css @@ -1 +1 @@ -button,html,input,select,textarea{color:#222}html{font-size:1em;line-height:1.4}textarea{resize:vertical}.browsehappy{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.jumbotron.istex-header{padding-bottom:0;padding-top:1px;background-color:#fff;color:#fff;background-image:url(../img/istex-logo.svg);background-size:20% 50%;background-repeat:no-repeat;background-position:center}.jumbotron.istex-header h1{font-weight:700;text-align:center}#logoIA{text-align:center}.container{height:100%}.form-group{max-width:250px}.pager li{font-size:20px}#searchFieldRow{text-align:center}#searchField{max-width:250px}#advancedSearchTitle{text-align:center}#tableResult span.glyphicon{font-size:20px}#pageNumber{text-align:center}#header{border-radius:0;margin-bottom:0}#accordion .panel-heading{background-color:#226a8c;border-radius:0}#accordion .panel{border-radius:0;border:0}.loading{height:16px}.truncate{width:42px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.truncate:hover{overflow:visible;white-space:normal}#result th{text-align:center}#footer{text-align:center}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid gray}.ui-slider .ui-slider-range{background:none repeat scroll 0 0 gray}.text-istex-blue{color:#458ca5}a.text-istex-blue:hover{color:#366d81}.text-istex-green{color:#c4d733}a.text-istex-green:hover{color:#a3b423}.text-istex-orange{color:#ffb465}a.text-istex-orange:hover{color:#ff9b32}.text-istex-violet{color:#5b59b7}a.text-istex-violet:hover{color:#45439a}.text-istex-yellow{color:#ffd965}a.text-istex-yellow:hover{color:#ffcc32}.bg-istex-blue{background-color:#458ca5}a.bg-istex-blue:hover{background-color:#366d81}.vertical-middle{vertical-align:middle}.inline-block{display:inline-block}.inline-push-left-1{margin-left:1em}.inline-push-left-2{margin-left:2em}.inline-push-left-3{margin-left:3em}.inline-push-left-4{margin-left:4em}.link-external:after{font-size:85%;position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e164"}.label-istex-documentation{background-color:#f1c40f;background:linear-gradient(135deg,#eaa800 0,#f1c40f 100%);color:#333;text-shadow:#AAA 1px 1px 2px}.qtip{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05);padding:9px;border-radius:3px;max-width:none;border-radius:6px;border:2px solid #428bca;background-color:#EDEDED}@media (min-width:768px){#request-tooltip{max-width:698px}}@media (min-width:992px){#request-tooltip{max-width:918px}}@media (min-width:1200px){#request-tooltip{max-width:1118px}}#request-tooltip-content{font-family:"Lucida Console",Monaco,monospace}#request-tooltip-content>p>mark{white-space:nowrap}.qtip-content{padding:0}.istex-tooltip{display:none;max-width:350px;font-size:14px;line-height:20px}.istex-tooltip>h5{display:inline-block;font-family:inherit;font-weight:500;line-height:1.1;color:inherit;margin-top:10px;margin-bottom:10px;font-size:18px;color:#fff;background-color:#428bca}.istex-tooltip>p{font-size:12px}.istex-tooltip>.references{font-size:85%}.istex-tooltip>.references>h6{margin-bottom:5px}.istex-tooltip hr{margin-top:10px;margin-bottom:10px;border-top-color:#999}.istex-tooltip .query-chunk{font-size:18px}.istex-tooltip .query-chunk:after,.istex-tooltip .query-chunk:before{content:"..."}.istex-tooltip .query-chunk>mark bg-corpus,.istex-tooltip .query-chunk>mark[data-ng-bind*=corpus]{background-color:#b3d4df}.istex-tooltip .query-chunk>mark[data-ng-bind*=copyrightDate]{background-color:#d4e26a}.istex-tooltip .query-chunk>mark[data-ng-bind*=pubDate]{background-color:#ffe9a7}.istex-tooltip .query-chunk>mark[data-ng-bind*=searchKeys]{background-color:#a1a0d6}.istex-tooltip .query-chunk>mark[data-ng-bind*=title]{background-color:#ffe6cb}.istex-tooltip .query-chunk>mark[data-ng-bind*=author]{background-color:#92bce0}.istex-tooltip .query-chunk>mark[data-ng-bind*=subject]{background-color:#a3d7a3}.bg-corpus{background-color:#b3d4df}.bg-copyrightDate{background-color:#d4e26a}.bg-pubDate{background-color:#ffe9a7}.bg-searchKeys{background-color:#a1a0d6}.bg-title{background-color:#ffe6cb}.bg-author{background-color:#92bce0}.bg-subject{background-color:#a3d7a3}.bg-stats{background-color:#c7e6c7}.amount{border:0;padding-top:0;padding-left:0} \ No newline at end of file +html,button,input,select,textarea{color:#222}html{font-size:1em;line-height:1.4}textarea{resize:vertical}.browsehappy{margin:.2em 0;background:#ccc;color:#000;padding:.2em 0}.jumbotron.istex-header{padding-bottom:0;padding-top:1px;background-color:white;color:white;background-image:url(../img/istex-logo.svg);background-size:20% 50%;background-repeat:no-repeat;background-position:center}.jumbotron.istex-header h1{font-weight:bold;text-align:center}#logoIA{text-align:center}.container{height:100%}.form-group{max-width:250px}.pager li{font-size:20px}#searchFieldRow{text-align:center}#searchField{max-width:250px}#advancedSearchTitle{text-align:center}#tableResult span.glyphicon{font-size:20px}#pageNumber{text-align:center}#header{border-radius:0;margin-bottom:0}#accordion .panel-heading{background-color:#226a8c;border-radius:0}#accordion .panel{border-radius:0;border:0}.loading{height:16px}.truncate{width:42px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.truncate:hover{overflow:visible;white-space:normal}#result th{text-align:center}#footer{text-align:center}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid gray}.ui-slider .ui-slider-range{background:none repeat scroll 0 0 gray}.text-istex-blue{color:#458ca5}a.text-istex-blue:hover{color:#366d81}.text-istex-green{color:#c4d733}a.text-istex-green:hover{color:#a3b423}.text-istex-orange{color:#ffb465}a.text-istex-orange:hover{color:#ff9b32}.text-istex-violet{color:#5b59b7}a.text-istex-violet:hover{color:#45439a}.text-istex-yellow{color:#ffd965}a.text-istex-yellow:hover{color:#ffcc32}.bg-istex-blue{background-color:#458ca5}a.bg-istex-blue:hover{background-color:#366d81}.vertical-middle{vertical-align:middle}.inline-block{display:inline-block}.inline-push-left-1{margin-left:1em}.inline-push-left-2{margin-left:2em}.inline-push-left-3{margin-left:3em}.inline-push-left-4{margin-left:4em}.link-external:after{font-size:85%;position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e164"}.label-istex-documentation{background-color:#f1c40f;background:linear-gradient(135deg, #eaa800 0, #f1c40f 100%);color:#333;text-shadow:#aaa 1px 1px 2px}.qtip{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);padding:9px;border-radius:3px;max-width:none;border-radius:6px;border:2px solid #428bca;background-color:#ededed}@media (min-width:768px){#request-tooltip{max-width:698px}}@media (min-width:992px){#request-tooltip{max-width:918px}}@media (min-width:1200px){#request-tooltip{max-width:1118px}}#request-tooltip-content{font-family:"Lucida Console",Monaco,monospace}#request-tooltip-content>p>mark{white-space:nowrap}.qtip-content{padding:0}.istex-tooltip{display:none;max-width:350px;font-size:14px;line-height:20px}.istex-tooltip>h5{display:inline-block;font-family:inherit;font-weight:500;line-height:1.1;color:inherit;margin-top:10px;margin-bottom:10px;font-size:18px;color:#fff;background-color:#428bca}.istex-tooltip>p{font-size:12px}.istex-tooltip>.references{font-size:85%}.istex-tooltip>.references>h6{margin-bottom:5px}.istex-tooltip hr{margin-top:10px;margin-bottom:10px;border-top-color:#999}.istex-tooltip .query-chunk{font-size:18px}.istex-tooltip .query-chunk:before,.istex-tooltip .query-chunk:after{content:"..."}.istex-tooltip .query-chunk>mark[data-ng-bind*="corpus"],.istex-tooltip .query-chunk>mark bg-corpus{background-color:#b3d4df}.istex-tooltip .query-chunk>mark[data-ng-bind*="copyrightDate"]{background-color:#d4e26a}.istex-tooltip .query-chunk>mark[data-ng-bind*="pubDate"]{background-color:#ffe9a7}.istex-tooltip .query-chunk>mark[data-ng-bind*="searchKeys"]{background-color:#a1a0d6}.istex-tooltip .query-chunk>mark[data-ng-bind*="title"]{background-color:#ffe6cb}.istex-tooltip .query-chunk>mark[data-ng-bind*="author"]{background-color:#92bce0}.istex-tooltip .query-chunk>mark[data-ng-bind*="subject"]{background-color:#a3d7a3}.bg-corpus{background-color:#b3d4df}.bg-copyrightDate{background-color:#d4e26a}.bg-pubDate{background-color:#ffe9a7}.bg-searchKeys{background-color:#a1a0d6}.bg-title{background-color:#ffe6cb}.bg-author{background-color:#92bce0}.bg-subject{background-color:#a3d7a3}.bg-stats{background-color:#c7e6c7}.amount{border:0;padding-top:0;padding-left:0}#tableResult>tr>td>h4{max-height:1.2em;overflow:hidden}.abstract{max-height:5.6em}/*# sourceMappingURL=main.min.css.map */ \ No newline at end of file diff --git a/css/main.min.css.map b/css/main.min.css.map index e287b55..f072056 100644 --- a/css/main.min.css.map +++ b/css/main.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["../less/istex/main.less","../less/istex//home/parentin/workspace/istex-api-demo/less/vendor/bootstrap-3.1.0/less/mixins.less","../less/istex//home/parentin/workspace/istex-api-demo/css/bootstrap.min.css"],"names":[],"mappings":"AAOA,KAAM,OAAQ,MAAO,OAAQ,SAC3B,WAEF,KACE,aAAA,CACA,gBAMF,SACE,gBAMF,aACE,aAAA,CACA,eAAA,CACA,UAAA,CACA,eAEF,UAAU,cACR,gBAAA,CACA,eAAA,CACA,sBAAA,CACA,WAAA,CACA,2CAAA,CACA,uBAAA,CACA,2BAAA,CACA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FE,iBAKF,QAHmC,iBAGnC,iBAFE,iBAKJ,QAHqC,kBAGrC,iBAFI,kBAGJ,yBACE,YAAa,kCACb,wBAAE,EAAI,MACJ,mBAGJ,cACE,UAEF,eACE,YAAA,CACA,eAAA,CAGA,cAAA,CACA,iBAEA,cAAE,IACA,oBAAA,CEvNi9H,mBAAA,CAAoB,eAAA,CAAgB,eAAA,CAAgB,aAAA,CAA0f,eAAA,CAAgB,kBAAA,CAAkO,cAAA,CAAosB,UAAA,CAAW,yBF2Nl8K,cAAE,GACA,eAEF,cAAE,aE9Nk8J,cFgOl8J,cAFA,YAEG,IACD,kBAnBN,cAsBE,IACE,eAAA,CACA,kBAAA,CACA,sBAzBJ,cA2BE,cACE,eACA,cAFF,aAEG,QAAQ,cAFX,aAEY,OACR,QAAS,MAGT,cANJ,aAKI,KACC,yBADH,cALF,aAKI,KAgDL,CA/C+B,UAyB9B,yBAtBI,cATJ,aAKI,KAIC,gCAyBL,yBAtBI,cAZJ,aAKI,KAOC,0BAyBL,yBAtBI,cAfJ,aAKI,KAUC,6BAyBL,yBAtBI,cAlBJ,aAKI,KAaC,wBAyBL,yBAtBI,cArBJ,aAKI,KAgBC,yBAyBL,yBAtBI,cAxBJ,aAKI,KAmBC,0BAyBL,yBAnBF,WACE,yBAEF,kBACE,yBAEF,YACE,yBAEF,eACE,yBAEF,UACE,yBAEF,WACE,yBAEF,YACE,yBAEF,UACE","file":"main.min.css","sourceRoot":"../less/istex"} \ No newline at end of file +{"version":3,"sources":["../less/istex/main.less","../less/istex//home/parentin/workspace/istex-api-demo/less/vendor/bootstrap-3.1.0/less/mixins.less","../less/istex//home/parentin/workspace/istex-api-demo/css/bootstrap.min.css"],"names":[],"mappings":"AAOA,KAAM,OAAQ,MAAO,OAAQ,SAC3B,WAEF,KACE,aAAA,CACA,gBAMF,SACE,gBAMF,aACE,aAAA,CACA,eAAA,CACA,UAAA,CACA,eAEF,UAAU,cACR,gBAAA,CACA,eAAA,CACA,sBAAA,CACA,W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,CACA,wBAAA,CACA,yBAMA,QAHmC,iBAGnC,iBAFE,iBAKF,QAHmC,iBAGnC,iBAFE,iBAKJ,QAHqC,kBAGrC,iBAFI,kBAGJ,yBACE,YAAa,kCACb,wBAAE,EAAI,MACJ,mBAGJ,cACE,UAEF,eACE,YAAA,CACA,eAAA,CAGA,cAAA,CACA,iBAEA,cAAE,IACA,oBAAA,CEvNi9H,mBAAA,CAAoB,eAAA,CAAgB,eAAA,CAAgB,aAAA,CAA0f,eAAA,CAAgB,kBAAA,CAAkO,cAAA,CAAosB,UAAA,CAAW,yBF2Nl8K,cAAE,GACA,eAEF,cAAE,aE9Nk8J,cFgOl8J,cAFA,YAEG,IACD,kBAnBN,cAsBE,IACE,eAAA,CACA,kBAAA,CACA,sBAzBJ,cA2BE,cACE,eACA,cAFF,aAEG,QAAQ,cAFX,aAEY,OACR,QAAS,MAGT,cANJ,aAKI,KACC,yBADH,cALF,aAKI,KA6DL,CA5D+B,UAyB9B,yBAtBI,cATJ,aAKI,KAIC,gCAyBL,yBAtBI,cAZJ,aAKI,KAOC,0BAyBL,yBAtBI,cAfJ,aAKI,KAUC,6BAyBL,yBAtBI,cAlBJ,aAKI,KAaC,wBAyBL,yBAtBI,cArBJ,aAKI,KAgBC,yBAyBL,yBAtBI,cAxBJ,aAKI,KAmBC,0BAyBL,yBAnBF,WACE,yBAEF,kBACE,yBAEF,YACE,yBAEF,eACE,yBAEF,UACE,yBAEF,WACE,yBAEF,YACE,yBAEF,UACE,yBAEF,QACE,QAAA,CACA,aAAA,CACA,eAGF,YAAa,GAAK,GAAK,IACrB,gBAAA,CACA,gBAEF,UACE","file":"main.min.css","sourceRoot":"../less/istex"} \ No newline at end of file diff --git a/index.html b/index.html index 417ea2a..7293700 100644 --- a/index.html +++ b/index.html @@ -26,6 +26,7 @@ + @@ -149,133 +150,136 @@
-
-
- - -
-
-
Éditeur
-

Cette facette permet de préciser un unique corpus éditeur sur lequel va porter la requête.

-
-
- ISTEX API Documentation: -
- +
+ +
+ +
-
-
-
Morceau de la requête généré par la facette:
-

- -

+
+
Éditeur
+

Cette facette permet de préciser un unique corpus éditeur sur lequel va porter la requête.

+ +
+
+
Morceau de la requête généré par la facette:
+

+ +

+
-
-
- - -
-
-
Titre
-

Ce champ permet la recherche sur le titre.

-
-
- ISTEX API Documentation: -
- +
+ +
-
-
-

Morceau de la requête généré par le champ:

-

- -

+
+
Titre
+

Ce champ permet la recherche sur le titre.

+
+
+ ISTEX API Documentation: +
+ +
+
+
+

Morceau de la requête généré par le champ:

+

+ +

+
-
-
- - -
-
-
Éditeur
-

Cette facette permet de préciser un auteur sur lequel va porter la requête.

-
-
- ISTEX API Documentation: -
- +
+ +
-
-
-
Morceau de la requête généré par le champ:
-

- -

+
+
Éditeur
+

Cette facette permet de préciser un auteur sur lequel va porter la requête.

+
+
+ ISTEX API Documentation: +
+ +
+
+
+
Morceau de la requête généré par le champ:
+

+ +

+
-
-
- - -
-
-
Mot clef/sujet
-

Ce champ permet de préciser un sujet sur lequel va porter la requête.

-
-
- ISTEX API Documentation: -
- +
+ +
-
-
-
Morceau de la requête généré par le champ:
-

- -

+
+
Mot clef/sujet
+

Ce champ permet de préciser un sujet sur lequel va porter la requête.

+
+
+ ISTEX API Documentation: +
+ +
+
+
+
Morceau de la requête généré par le champ:
+

+ +

+
-
- + + +
@@ -791,6 +795,7 @@ + diff --git a/js/controllers/searchPageController.js b/js/controllers/searchPageController.js index c0d9412..5f2fc6d 100644 --- a/js/controllers/searchPageController.js +++ b/js/controllers/searchPageController.js @@ -266,7 +266,7 @@ var tableLine = "{{#hits}}

" + "{{#titleClic}}{{#fulltext}}{{{mimetype}}} {{{uri}}} {{/fulltext}} \"{{title}}\"{{/titleClic}}" + "

" + - "

" + + "

" + "{{#abstr}}{{abstract}}{{/abstr}}" + "

" + "
" + diff --git a/js/main.js b/js/main.js index 5852350..f922826 100755 --- a/js/main.js +++ b/js/main.js @@ -130,11 +130,10 @@ }); }); - /** - * Toolip pour les icons des fichiers - */ $(document).on("resultsLoaded", function (e) { + + // Toolip pour les icons des fichiers $(".downloadFilesTable").find('a').each(function () { var $this = $(this), $thisImg = $this.children("img"), @@ -163,11 +162,13 @@ } }); }); + // ellipse sur les abstracts + $("#tableResult").find(".abstract, h4").dotdotdot(); }); - - }); + + //require.config({ // paths: { // 'piwik': '//piwik.inist.fr/piwik' @@ -178,24 +179,22 @@ globalSearchPage = searchPage; globalSearchPageController = searchPageController; - $("#advancedSearchForm").on("input", ":input", function () { - $("#searchButton").click(); - }); - $("#searchform").submit(function (event) { event.preventDefault(); search(searchPage, searchPageController); }); - $("#advancedSearchForm input").keypress(function (e) { - if ((e.which && e.which === 13) || (e.keyCode && e.keyCode === 13)) { - $("#searchButton").click(); - return false; - } - - return true; + $("#advancedSearchForm").submit(function (event) { + event.preventDefault(); + $("#searchform").submit(); }); + $("#advancedSearchForm").on("input", ":input", function (event) { + $("#searchform").submit(); + }); + + + $("#prev").click(function (e) { e.preventDefault(); searchPage.currentPage = searchPage.currentPage - 1; diff --git a/less/istex/main.less b/less/istex/main.less index 44f5fb7..7b65ba6 100644 --- a/less/istex/main.less +++ b/less/istex/main.less @@ -295,4 +295,12 @@ border:0; padding-top:0; padding-left:0; +} + +#tableResult > tr > td > h4 { + max-height: 1.2em; + overflow: hidden; +} +.abstract{ + max-height: 5.6em; } \ No newline at end of file