Coder Social home page Coder Social logo

leidenuniversitylibrary / library-search-plugin-public Goto Github PK

View Code? Open in Web Editor NEW
24.0 14.0 12.0 2.53 MB

The Library Search Plugin plugin allows users (students, researchers, etc.) to search your library's catalogue, Google Scholar, WorldCat, or PubMed, without having to navigate to the respective websites first! It also comes with a neat context menu that allows users to select text, right-click, and search!

License: GNU General Public License v3.0

JavaScript 8.88% HTML 5.46% CSS 85.65%
library primo exlibris search plugin chrome-extension code4lib library-catalogue

library-search-plugin-public's Issues

_config.yml

Thanks for the nice devday presentation today! The plugin was indeed easy to get started with :) Just one issue I encountered when loading the package into Chrome ("Load unpacked"):

screen shot 2018-08-23 at 18 15 55

Removing the file resolved the problem. Is it used for anything?

Privacy Permission Justifications in the Google Web Store Developer Dashboard

How did you answer the Google Web Store's required Privacy permission justifications for:

ContextMenu
Tabs
Storage

And, is searching an external website considered using remote code?

I have been trying to update to manifest version 3, but it will not let me publish until I answer these questions.

Thank you!

web store help

Remove jquery

For future maintainability we want to stop using jquery in favor of pure Javascript. Translate the scripts present in the js folder.

Select All/Deselect All option for check-form

Thanks so much for making your code available. In the past, we had adapted it to allow a select all/deselect all option with this in the popuphtml

Select / Deselect All

And this in the options.js

$('#selectAll').click(function() {
if(this.checked) {
$(':checkbox').each(function() {
this.checked = true;
});
} else {
$(':checkbox').each(function() {
this.checked = false;
});
}
});

$(document).ready(function () {
//SEARCHBOX STUFF
$('#selectAll').click(function() {
if(this.checked) {
$(':checkbox').each(function() {
this.checked = true;
});
} else {
$(':checkbox').each(function() {
this.checked = false;
});
}
});

before listing all the selection ids.

Now that you are using Bootstrap's form-check, I am not sure how to add in a functioning select all/deselect all. Any help you can provide would be really appreciated.

Katie Utschig
SWITCH Library Consortium

Update Bootstrap to 5.1.*

The plugin still uses bootstrap version 4.*. While not a problem, we should allocate some resources to pushing the plugin to and updated version.

Duplicate IDs error

When opening the plugin's popup.html, the console outputs an error mentioning duplicate IDs. This is because options.js repeatedly calls the "context menu" options, every time the popup is opened by the user.

  1. Move the context menu options from options.js to a new file called background.js.
  2. in manifest.json, call background.js instead of popup.html in the "background" section of the json.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.