<h3 class="center">BROWSE A to Z SUBSCRIBED E-JOURNALS</h3> Search by Keyword Search by subject, title... search filter by subscription year 2021-22 2020-21 2019-PY filter by publisher <ul> <li> Cambridge University Press</li> <li> EBSCO</li> <li> Emerald Insight</li> <li> Economic & Political Weekly</li> <li> Institute of Physics</li> <li> ISID</li> <li> IndiaStat</li> <li> EPWRF (India Time Series)</li> <li> JSTOR</li> <li> Oxford University Press</li> <li> Project MUSE</li> <li> ScienceDirect</li> <li> SpringerLink</li> <li> Taylor & Francis</li> <li> Wiley</li> </ul> Per Page: <a href="#" target="_blank" class="waves-effect waves-light btn btn-small blue darken-3">Cambridge University Press</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small red darken-3">EBSCO</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small teal darken-3">Emerald Insight</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small pink darken-3">EPW</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small red darken-3">EPWRF (ITS)</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small light-blue darken-3">Institute of Physics</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small blue darken-3">IndiaStat</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small indigo darken-3">ISID</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small red darken-4">JSTOR</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small indigo darken-3">Oxford University Press</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small orange darken-3">Project MUSE</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small indigo darken-3">ScienceDirect</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small blue darken-3">SpringerLink</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small light-blue darken-3">Taylor & Francis</a> <a href="#" target="_blank" class="waves-effect waves-light btn btn-small teal darken-3">Wiley</a> <h5 class="white blue-grey-text darken-4 z-depth-1" style="padding:7px 3px; border-radius:5px;"> Showing only first results! Refine the list from the filter section to get more results.</h5> <h3>Please Wait...</h3> <h3> No Result Found!</h3> $(document).ready(() => { let params = { filter: { $or: [{ year: '2021-22' }] }, sort: { title: 1 }, }; async function requestData(params = {}) { const response = await fetch('https://apilibrary.cuo.ac.in/api/collections/get/eresources?limit=100', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }); return response.json(); } $("#year_filter").on('change', function() { updateResults(updateParams()); }); $('input[type="checkbox"]').click(function() { updateResults(updateParams()); }); $("input[name=q]").on("input", function() { updateResults(updateParams()); }); function updateParams() { /*Initialize Variables*/ var params = {}; var sort = { "title": 1 }; params["sort"] = sort; var filter_year = []; var filter_publishers = []; var filter_keywords = []; var filter_regex = {}; var filter = {}; /*Compile Year Filter*/ filter_year.push({ "year": $("#year_filter").val() }); /*Compile Publisher*/ var publishers = $('input[type="checkbox"]:checked'); publishers.each(function(index) { filter_publishers.push({ "p_label": $(this).val() }); }); /*Compile Search*/ var q = $("input[name=q]").val(); filter_keywords.push({"title":{"$regex": q}}); filter_keywords.push({"subject":{"$regex": q}}); /*Add Year and Publishers Filter to Params*/ filter["$and"] = filter_year; if (publishers.length > 0) { filter["$or"] = filter_publishers; } if (q.trim().length > 2) { filter["$or"] = filter_keywords; } params["filter"] = filter; /*Return Filter Options*/ return params; } function updateResults(params = {}) { $('#norecord').hide(); $("#ejournals").html("<h3>Please Wait...</h3>"); requestData(params).then((data) => { const appendToContainer = function(htmlele, record) {console.log(record);}; const afterFilter = function(result, jQ) { $('#total_ejournals').text(result.length); if (result.length === 0) {$('#norecord').show();} else { $('#norecord').hide();} }; const FJS = FilterJS(data.entries, '#ejournals', { template: '#ejournal-template', callbacks: { afterFilter }, pagination: { container: '#pagination', visiblePages: 9, perPage: { values: [9, 18, 27], container: '#per_page', }, }, }); /*FJS.addCriteria({field: 'year',ele: '#year_filter'}); FJS.addCriteria({field: 'p_label',ele: '#publisher_criteria input:checkbox'});*/ window.FJS = FJS; }); } updateResults(params); setTimeout(function() {$("#per_page select").addClass('browser-default');}, 2000); }); <a href="%= url %" title="%= title %" target="blank" class="blue-grey-text darken-4"></a> <a href="%= url %" target="blank" class="btn-floating btn-small waves-effect waves-light teal right"> </a> .card{width:300px} .card-title a{font-size:1.2em;letter-spacing:1.2px;font-weight:500} .card-content{position:relative;height:100%} .card-title{text-align:center;line-height:1.5!important} ul.collection{border:none!important;margin:0!important;position:absolute;bottom:100px;left:15px} ul.collection li{font-size:12px!important;color:#0f356c} select{border:1px solid #607D8B} #subject_criteria{margin:0} #subject_criteria label{color:#000} #subject_criteria ul li{padding-bottom:10px} .small-btn{width:31px;height:24px;padding:5px;margin:0 1px;line-height:0} .flex-container{display:flex;flex-wrap:wrap;justify-content:space-around} .publishers a{margin:5px 0} .text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}