Literature management plug-in system and method based on browser extension and storage medium
Through the browser-based literature management plug-in system, the DOI and ISBN in web pages are automatically detected and imported, and the cumbersome and inefficient literature management in the existing technology is solved, achieving an efficient, accurate and convenient literature management experience.
Patent Information
- Application Number
- CN202510257837.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-06-20
AI Technical Summary
When existing literature management tools interact with web content, users need to manually identify and import DOI or ISBN of the literature. The process is cumbersome and error-prone, especially when facing a large number of literature, which reduces work efficiency.
It provides a literature management plug-in system based on browser extension, including front-end module, back-end module and local service module, which automatically detects and marks DOI and ISBN in web pages, interacts with local service modules through asynchronous communication, querys the document status and realizes automatic import of documents.
Improves the efficiency of literature management, reduces the time for users to operate manually, improves accuracy, enhances the user experience, and makes it easier for users to manage and use literature in the local library.
Smart Images

Figure CN120179313A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of document management, and particularly relates to a document management plug-in system, method and storage medium based on browser extension. Background Art
[0002] With the rapid development of Internet technology, the digital degree of academic research and knowledge sharing has been continuously improved. Researchers and students need to frequently obtain document information from web pages, online databases and other digital resources in their daily work, and organize, store and manage it. For this reason, document management tools such as Zotero have emerged, which can help users efficiently collect, organize and cite document resources.
[0003] However, there are some deficiencies in the existing document management tools in terms of interacting with web page content. For example, when browsing web pages, users need to manually identify the DOI (Digital Object Identifier) or ISBN (International Standard Book Number) of documents and manually import them into the document management tools. This process is not only cumbersome but also error-prone, especially when dealing with a large number of documents, which greatly reduces work efficiency. In addition, when the number of documents is large, it is necessary to manually check whether the documents in the web page already exist in the document management tools, which greatly increases the workload of document management.
[0004] Therefore, in document management, it is urgent to develop a new tool to realize the interaction between the browser and the document management software, so that the process of adding documents to the document management software based on the DOI or ISBN information in the web page is more efficient and convenient. Summary of the Invention
[0005] Aiming at the problems of the existing technology, the present invention provides a document management plug-in system, method and storage medium based on browser extension.
[0006] A document management plug-in system based on browser extension includes:
[0007] A front-end module, configured to: automatically detect and mark DOIs and ISBNs in web pages, communicate with background scripts to obtain document status information, and provide an interactive interface for users to import and open documents;
[0008] A background module, configured to: listen for message requests from the front-end module, communicate with the local service module to obtain document status and process import requests;
[0009] A local service module, configured to: process requests from the background module, query document information in the local document management software database, and call the document management software API to implement document addition.
[0010] Preferably, the literature management software is Zotero.
[0011] Preferably, the front-end module includes the following components:
[0012] content.js, which is used to automatically detect and label DOIs and ISBNs in web pages, communicate with background scripts to obtain literature status information, and provide an interactive interface for users to import and open literature;
[0013] styles.css, which is used to define the styles of elements inserted in web pages;
[0014] popup.html and popup.js, which are used to implement the interface and logic processing of pop-up windows, including: displaying the function description and usage guide of the plug-in system, and displaying the running status of the local service module and the literature management software.
[0015] Preferably, content.js automatically detects DOIs and ISBNs in web pages through regular expressions or text matching algorithms.
[0016] Preferably, content.js implements caching of query results.
[0017] Preferably, the background module includes the following components:
[0018] background.js, which is used to listen for message requests from the front-end module, communicate with the local service module to obtain literature status and process import requests;
[0019] manifest.json, as a configuration file, defines the permissions, scripts, and resources of the plug-in system.
[0020] Preferably, the local service module includes the following components:
[0021] flask_script.py, which is used to process requests from the background module, query literature information in the local literature management software database, call the literature management software API to add literature; provide an interface to ensure communication between the plug-in system and the literature management software.
[0022] Preferably, the front-end module and the background module interact through asynchronous communication.
[0023] The present invention also provides a literature management method based on browser extensions, which is implemented by applying the above-mentioned literature management plug-in system based on browser extensions, and includes the following steps:
[0024] The front-end module automatically detects and labels DOIs and ISBNs in web pages;
[0025] The front-end module receives user operation requests through the user interaction interface and sends the requests to the back-end module;
[0026] The back-end module receives the requests from the front-end module, communicates with the local service module, and obtains literature status information or processes literature import requests;
[0027] The local service module queries literature information or performs literature import operations through interaction with the literature management software database;
[0028] The operation result is fed back to the front-end module and presented to the user through the user interaction interface.
[0029] The present invention also provides a computer-readable storage medium, on which there is stored: a computer program for implementing the above-mentioned literature management plug-in system based on browser extension, or a computer program for implementing the above-mentioned literature management method based on browser extension.
[0030] In the present invention, the meanings of the components are as follows:
[0031] content.js: A JavaScript script running in the web page context, used to directly interact with the web page content, perform operations such as modifying the DOM and obtaining data, and is usually used for browser extensions or script injection.
[0032] styles.css: A CSS style sheet file used to define the visual styles of the web page or application, including fonts, colors, layouts, etc., to enhance the aesthetics and consistency of the user interface.
[0033] popup.html: An HTML file that defines the structure and content of the browser extension popup window, and is usually used to display the function entry or interaction interface of the extension.
[0034] popup.js: A JavaScript file used to provide interaction logic for popup.html, such as handling button click events, communicating with background scripts, etc., to enhance the functionality of the popup window.
[0035] background.js: A JavaScript script that runs continuously in the browser background, used to handle the core logic of the extension, such as event listening, data storage, communicating with the web page or popup window, etc.
[0036] manifest.json: A JSON-formatted configuration file used to define the basic information of the browser extension (such as name, version, permissions, etc.) and the scopes and functions of each component, and is the "configuration blueprint" of the extension.
[0037] flask_script.py: A Python script, commonly used in the development of web applications based on the Flask framework, responsible for defining routes, handling requests, running the server, etc., and is the core part of the backend logic.
[0038] The present invention provides a method capable of quickly identifying DOI and ISBN information in web pages, displaying whether they are in the local library, and providing automatic positioning of local documents and automatic import of documents into document management software (such as Zotero). The technical solution of the present invention has the following beneficial technical effects:
[0039] 1. Improve document management efficiency: By using the document management tools and methods of the present invention, users do not need to manually search for documents in the Zotero local library. The document management tool can quickly determine whether a document is in the local library. For documents existing in the local library, it can locate their positions; for documents not in the local library, it can import the document information. This document management method greatly saves users' time and energy.
[0040] 2. High accuracy: The present invention conducts document comparison and judgment based on DOI or ISBN. The uniqueness of DOI or ISBN ensures the accuracy of judgment and avoids misjudgment caused by factors such as similar document titles.
[0041] 3. Enhance user experience: The automatic positioning function of the plugin provides great convenience for users, enabling them to more easily manage and use documents in the local library.
[0042] In summary, the document management plugin system and method provided by the present invention have the advantages of high efficiency, accuracy, and convenience, and have good application prospects.
[0043] Obviously, based on the above content of the present invention, according to the common technical knowledge and customary means in the art, without departing from the above basic technical idea of the present invention, various other forms of modification, substitution, or change can be made.
[0044] The following is a further detailed description of the above content of the present invention through specific embodiments in the form of examples. However, this should not be understood as limiting the scope of the above subject matter of the present invention to the following examples. All technologies implemented based on the above content of the present invention belong to the scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is an example diagram of the web page interface display when the document exists in the Zotero database in Example 1;
[0046] Figure 2 It is an example diagram of the plugin system providing an interactive button to open the document on the web page interface when the document exists in the Zotero database in Example 1;
[0047] Figure 3 It is an example diagram shown on the web interface when the literature in Example 1 does not exist in the Zotero database;
[0048] Figure 4 It is an example diagram of the plug-in system providing an interactive button for importing literature on the web interface when the literature in Example 1 does not exist in the Zotero database. Detailed implementation manners
[0049] It should be specifically noted that the algorithms for steps such as data acquisition, transmission, storage, and processing that are not specifically described in the embodiments, as well as the hardware structures and circuit connections that are not specifically described, can all be implemented through the content publicly available in the prior art.
[0050] Example 1 Literature management plug-in system and method based on browser extension
[0051] The system of this embodiment includes:
[0052] A front-end module, configured to: automatically detect and mark DOIs and ISBNs in web pages, communicate with background scripts to obtain literature status information, and provide an interactive interface for users to import and open literature;
[0053] A background module, configured to: listen for message requests from the front-end module, communicate with the local service module to obtain literature status and process import requests;
[0054] A local service module, configured to: process requests from the background module, query literature information in the local literature management software database, and call the literature management software API to implement the addition of literature.
[0055] The method for literature management through this system includes the following steps:
[0056] The front-end module automatically detects and marks DOIs and ISBNs in web pages; the marking methods include but are not limited to: highlighting DOIs and ISBNs, or setting status tags near DOIs and ISBNs for display.
[0057] The front-end module receives user operation requests through the user interaction interface and sends the requests to the background module;
[0058] The background module receives the requests from the front-end module, communicates with the local service module to obtain literature status information or process literature import requests;
[0059] The local service module queries literature information or performs literature import operations through interaction with the literature management software database;
[0060] Feedback the operation result to the front-end module and display it to the user through the user interface.
[0061] In this embodiment, the literature management tool Zotero is taken as an example, and the component composition of each module is as follows:
[0062] 1. The front-end module includes the following components:
[0063] content.js: mainly responsible for the processing and interaction of web page content, including:
[0064] Automatically detect and label DOI and ISBN.
[0065] Communicate with the background script to obtain the literature status information.
[0066] Provide an interactive interface for users to import and open literature.
[0067] styles.css: defines the styles of the elements inserted by the plugin in the web page to ensure visual consistency.
[0068] popup.html and popup.js: the interface and logic processing of the plugin pop-up window, including:
[0069] Display the function description and usage guide of the plugin.
[0070] Display the running status of the local service and Zotero.
[0071] 2. The background module includes the following components:
[0072] background.js: as the background script of the plugin, responsible for:
[0073] Listen for message requests from content.js.
[0074] Communicate with the local Flask service to obtain the literature status and process import requests.
[0075] manifest.json: the configuration file of the plugin, which defines information such as the permissions, scripts, and resources of the plugin.
[0076] 3. The local service module includes the following components:
[0077] flask_script.py: a local server based on the Flask framework, and its main functions include:
[0078] Process HTTP requests from the plugin and query the literature information in the local Zotero database.
[0079] Receive import requests and call the Zotero API to implement the addition of literature.
[0080] Provide a simple interface to ensure secure and efficient communication between the plugin and Zotero.
[0081] As a preferred method, in different situations, the element styles inserted by the plugin system of this embodiment in the web page of the browser are as Figures 1 to 4 shown.
[0082] As a preferred method, the implementation of some specific technologies in this embodiment is as follows:
[0083] content.js identifies DOIs and ISBNs through regular expressions, considering various possible writing forms. Through string normalization processing, the influence of whitespace characters, case, and invalid symbols is eliminated. Caching of query results is implemented in content.js, and a cache expiration time is set, which can reduce duplicate queries and improve performance.
[0084] The front-end module and the back-end module interact through asynchronous communication. By using asynchronous functions and Promises, it is ensured that the interface will not freeze during the query and import processes, improving the user experience.
[0085] Comprehensive exception handling and logging are added in flask_script.py for easy debugging and maintenance. User-friendly error prompts are provided in the plugin through content.js to guide users to perform corresponding operations.
[0086] The permissions of the plugin and the accessible domains are strictly limited in manifest.json to ensure user data security. Content Security Policy (CSP) is used to prevent the execution of insecure scripts.
[0087] In summary, by adopting the system and method of this embodiment, the following functions can be achieved:
[0088] 1. Automatically identify academic identifiers: During the process of browsing the web page, the plugin can automatically detect DOIs and ISBN identifiers in the web page and mark them, facilitating users to identify and manage.
[0089] 2. Real-time check the literature status: By interacting with the local Zotero library, it is checked in real-time whether the detected identifiers already exist in the user's Zotero literature library and are distinguished by different marks.
[0090] 3. One-click import of literature: For literature not in the Zotero library, users can click the button provided by the plugin to import the corresponding literature information into Zotero with one click, supporting the quick addition of the simplest information.
[0091] 4. Quick access to existing literature: For literature that already exists in the Zotero library, the plugin provides a shortcut to directly open Zotero and locate the corresponding literature, improving the user's work efficiency.
[0092] 5. Status indication and interaction feedback: The plugin provides real-time service status indication, prompting the user about the running status of the local Flask service and Zotero, ensuring the normal use of the functions.
[0093] Thus, the present invention provides an efficient, accurate, and convenient literature management plugin system and method, which has good application prospects.
Claims
1. A document management plug-in system based on browser extension, characterized in that: include: The front-end module is configured to: automatically detect and annotate DOI and ISBN in web pages, communicate with the back-end script to obtain document status information, and provide users with an interactive interface for importing and opening documents; The backend module is configured to: monitor message requests from the frontend module and communicate with the local service module to obtain document status and process import requests; The local service module is configured to: process requests from the background module, query the document information in the local document management software database, and call the document management software API to add documents.
2. The document management plug-in system based on browser extension according to claim 1, characterized in that: The document management software is Zotero.
3. The document management plug-in system based on browser extension according to claim 1 or 2, characterized in that: The front-end module includes the following components: content.js, which is used to automatically detect and annotate DOI and ISBN on web pages, communicate with background scripts to obtain document status information, and provide users with an interactive interface for importing and opening documents; styles.css, used to define the styles of elements inserted in the web page; popup.html and popup.js are used to implement the interface and logic processing of the popup window, including: displaying the function description and usage guide of the plug-in system, and displaying the running status of the local service module and the document management software.
4. The document management plug-in system based on browser extension according to claim 3, characterized in that: The content.js automatically detects DOI and ISBN in web pages through regular expressions or text matching algorithms.
5. The document management plug-in system based on browser extension according to claim 3, characterized in that: The content.js implements caching of query results.
6. The document management plug-in system based on browser extension according to claim 1 or 2, characterized in that: The backend module includes the following components: background.js, used to listen to message requests from the front-end module and communicate with the local service module to obtain document status and process import requests; manifest.json, as a configuration file, defines the permissions, scripts, and resources of the plugin system.
7. The document management plug-in system based on browser extension according to claim 1 or 2, characterized in that: The local service module includes the following components: flask_script.py is used to process requests from the background module, query the document information in the local document management software database, call the document management software API to add documents; and provide an interface to ensure communication between the plug-in system and the document management software.
8. The document management plug-in system based on browser extension according to claim 1, characterized in that: The front-end module and the back-end module interact with each other through asynchronous communication.
9. A document management method based on browser extension, characterized in that: The document management plug-in system based on browser extension according to any one of claims 1 to 8 is implemented, comprising the following steps: The front-end module automatically detects and annotates DOI and ISBN on the web page; The front-end module receives user operation requests through the user interaction interface and sends the requests to the back-end module; The backend module receives the request from the frontend module, communicates with the local service module, obtains document status information or processes document import requests; The local service module queries document information or performs document import operations by interacting with the document management software database; The operation results are fed back to the front-end module and displayed to the user through the user interaction interface.
10. A computer-readable storage medium, characterized in that: Stored thereon are: a computer program for implementing the browser extension-based document management plug-in system described in any one of claims 1 to 8, or a computer program for implementing the browser extension-based document management method described in claim 9.