Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a library book retrieval method and a library book retrieval system so as to solve the problems in the background art.
The invention is realized in such a way that a library book searching method comprises the following steps:
receiving book retrieval information input by a user through a user terminal;
matching the book retrieval information with a book database, and outputting a plurality of book names;
receiving book name selection information, generating a book cabinet number and a book cabinet position corresponding to the selected book name, and generating a shared position map, wherein the position and the book cabinet position of the user terminal are displayed in the shared position map;
detecting the distance between the user terminal and the position of the bookcase through a shared position map, generating a prompt color when the distance is smaller than a set distance value, and generating prompt lamp display information, so that the prompt lamps on the bookcase pointed by the bookcase number display the prompt color;
and receiving a book searching cancellation command or a book searching completion command, so that the display information of the prompting lamp is invalid.
As a further scheme of the invention: the step of matching the book retrieval information with a book database and outputting a plurality of book names specifically comprises the following steps:
matching book retrieval information with all key entries in a book database to obtain the matching degree of the book retrieval information and each key entry, wherein the book database contains the key entries of all books in the library, each book name corresponds to one key entry, and each key entry corresponds to one or more key words;
and judging the obtained matching degree, and when the matching degree is larger than a set matching value, determining the book name corresponding to the key term, and displaying the book name on the user terminal.
As a further scheme of the invention: the step of receiving book name selection information and generating a book cabinet number and a book cabinet position corresponding to the selected book name specifically comprises the following steps:
receiving book name selection information, wherein the book name selection information comprises book names selected by users;
the method comprises the steps of inputting book names into a related information base, wherein the related information base contains all book names, each book name corresponds to a book cabinet number, and each book cabinet number corresponds to a book cabinet position;
and outputting the book cabinet number and the book cabinet position corresponding to the book name.
As a further scheme of the invention: when the distance is smaller than a set distance value, generating a prompt color specifically includes:
when the distance is smaller than a set distance value, detecting whether a prompting lamp on a bookcase pointed by the bookcase number works or not;
when working, calling the color displayed by the indicator lamp on the bookcase, and determining the color displayed as the indicator color;
when the book cabinet is not in operation, the color which is displayed by the indicator lights on other book cabinets within the setting range of the book cabinet is called, and the indicator color is determined according to the color which is displayed by the indicator lights on other book cabinets.
As a further scheme of the invention: the step of determining the prompt color according to the color being displayed by the prompt lamps on other bookcases specifically comprises the following steps:
determining whether colors being displayed by the indicator lights on other bookcases cover all color types;
when all the color types are not covered, optionally one color type which is not being displayed is a prompt color;
when all the color types are covered, the color type with the least number being displayed is determined as the cue color.
Another object of the present invention is to provide a library book retrieval system, the system comprising:
the retrieval information receiving module is used for receiving book retrieval information input by a user through the user terminal;
the book name output module is used for matching the book retrieval information with the book database and outputting a plurality of book names;
the shared position map module is used for receiving book name selection information, generating book case numbers and book case positions corresponding to the selected book names, and generating a shared position map, wherein the position and the book case positions of the user terminals are displayed in the shared position map;
the system comprises a prompting lamp display module, a prompting lamp display module and a display module, wherein the prompting lamp display module is used for detecting the distance between a user terminal and the position of a bookcase through a shared position map, generating prompting colors when the distance is smaller than a set distance value, and generating prompting lamp display information so that prompting lamps on the bookcase pointed by the bookcase number display the prompting colors;
and the book searching ending module is used for receiving a book searching cancellation command or a book searching completion command so that the display information of the prompting lamp is invalid.
As a further scheme of the invention: the book name output module comprises:
the book database comprises key terms of all books in the library, each book name corresponds to one key term, and each key term corresponds to one or more key words;
and the book name output unit is used for judging the obtained matching degree, and when the matching degree is larger than the set matching value, determining the book name corresponding to the key term, and displaying the book name on the user terminal.
As a further scheme of the invention: the shared location map module includes:
the book name selecting unit is used for receiving book name selecting information, wherein the book name selecting information comprises book names selected by users;
the book name input unit is used for inputting book names into the related information library, wherein the related information library contains all book names, each book name corresponds to a book cabinet number, and each book cabinet number corresponds to a book cabinet position;
and the book cabinet number position unit is used for outputting a book cabinet number and a book cabinet position corresponding to the book name.
As a further scheme of the invention: the warning light display module includes:
the prompting lamp detection unit is used for detecting whether the prompting lamp on the bookcase pointed by the bookcase number works or not when the distance is smaller than a set distance value;
the first prompting color unit is used for calling the color displayed by the prompting lamp on the bookcase when working, and determining the color displayed as the prompting color;
and the second prompting color unit is used for calling the color which is displayed by the prompting lamps on other bookcases within the setting range of the bookcase when the bookcase is not in operation, and determining the prompting color according to the color which is displayed by the prompting lamps on the other bookcases.
As a further scheme of the invention: the second cue color unit includes:
a color coverage judging subunit, configured to determine whether the colors being displayed by the indicator lights on the other bookcase cover all color types;
a first cue color subunit for, when not covering all color types, optionally selecting one of the color types not being displayed as a cue color;
and a second cue color subunit for determining, when all the color types are covered, that the color type having the smallest number of colors being displayed is a cue color.
Compared with the prior art, the invention has the beneficial effects that:
according to the method, the book case number and the book case position corresponding to the book name are generated, and a shared position map is generated, wherein the position of the user terminal and the book case position are displayed in the shared position map; and detecting the distance between the user terminal and the position of the bookcase through the shared position map, generating a prompt color when the distance is smaller than a set distance value, and generating prompt lamp display information, so that the prompt lamps on the bookcase pointed by the bookcase number display the prompt color. Therefore, the user can directly move towards the position of the book cabinet by using the shared position map, and the user can quickly determine the target book cabinet according to the prompt color, so that the target book can be quickly found.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Specific implementations of the invention are described in detail below in connection with specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a library book searching method, which includes the following steps:
s100, receiving book retrieval information input by a user through a user terminal;
s200, matching book retrieval information with a book database, and outputting a plurality of book names;
s300, receiving book name selection information, generating a book cabinet number and a book cabinet position corresponding to the selected book name, and generating a shared position map, wherein the position and the book cabinet position of the user terminal are displayed in the shared position map;
s400, detecting the distance between the user terminal and the position of the bookcase through a shared position map, generating a prompt color when the distance is smaller than a set distance value, and generating prompt lamp display information, so that the prompt lamps on the bookcase pointed by the bookcase number display the prompt color;
s500, receiving a book searching cancellation command or a book searching completion command, so that the display information of the prompting lamp is invalid.
It should be noted that, a search system is equipped in a modern large library, a user inputs keywords in the search system, a desired book name is obtained, a book position corresponding to the book name is displayed, and the book is searched according to the book position, however, in the large library, the number of book cases is numerous, and although each book case has own number, the user still has difficulty in quickly finding a target book case, and the embodiment of the invention aims to solve the problems.
In the embodiment of the invention, a library is provided with a retrieval system, the retrieval system can be logged in through a user terminal, after a user inputs book retrieval information, the embodiment of the invention can automatically match the book retrieval information with a book database and output a plurality of book names, the user needs to select a book name required by the user from the plurality of book names, namely, the user needs to input book name selection information, then the embodiment of the invention can automatically generate a book case number and a book case position corresponding to the selected book name and generate a shared position map, the position of the user terminal and the book case position are displayed in the shared position map, so that the user can directly move towards the book case position by utilizing the shared position map, the distance between the user terminal and the book case position is detected through the shared position map, when the distance is smaller than a set distance value, the set distance value is a preset fixed value, a prompt color is generated, and prompt lamp display information is generated, and the prompt lamp display information is transmitted to a prompt lamp pointed at the book case number, so that the user can quickly find a target book according to the prompt color. In the embodiment of the invention, each bookcase is provided with the prompting lamp, the prompting lamps are in communication connection with the server, and the server is in communication connection with the user terminal.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of matching the book search information with the book database and outputting a plurality of book names specifically includes:
s201, matching book retrieval information with all key terms in a book database to obtain the matching degree of the book retrieval information and each key term, wherein the book database contains the key terms of all books in the library, each book name corresponds to one key term, and each key term corresponds to one or more key words;
s202, judging the obtained matching degree, and when the matching degree is larger than a set matching value, determining book names corresponding to the key terms, and displaying the book names on a user terminal.
In the embodiment of the invention, a book database is established in advance, the book database contains key terms of all books in the library, each book name corresponds to one key term, each key term corresponds to one or more key words, so that book retrieval information can be matched with all the key terms in the book database to obtain a matching degree, then the matching degree is judged, when the matching degree is larger than a set matching value, the book names corresponding to the key terms are called, the book names are displayed on a user terminal, and the key word matching is a common means of book retrieval and is not repeated here.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of receiving book name selection information and generating a book case number and a book case position corresponding to the selected book name specifically includes:
s301, receiving book name selection information, wherein the book name selection information comprises book names selected by users;
s302, inputting book names into a related information base, wherein the related information base contains all book names, each book name corresponds to a book cabinet number, and each book cabinet number corresponds to a book cabinet position;
s303, outputting the book cabinet number and the book cabinet position corresponding to the book name.
In the embodiment of the invention, a related information base is established in advance, wherein the related information base comprises all book names, each book name corresponds to a book cabinet number, and each book cabinet number corresponds to a book cabinet position. After the book names selected by the user are determined, the book names are required to be input into a related information base, and the book cabinet numbers and the book cabinet positions corresponding to the book names can be automatically output, so that subsequent searching work is facilitated.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of generating the prompt color when the distance is smaller than the set distance value specifically includes:
s401, detecting whether a prompting lamp on a bookcase pointed by the bookcase number works or not when the distance is smaller than a set distance value;
s402, when working, calling the color displayed by the indicator lights on the bookcase, and determining the color displayed as the indicator color;
s403, when the book cabinet is not in operation, calling the color which is displayed by the indicator lights on other book cabinets within the set range of the book cabinet, and determining the indicator color according to the color which is displayed by the indicator lights on the other book cabinets.
In the embodiment of the invention, the position sharing is easy to understand, and the error is larger when the distance is shorter, so that the embodiment of the invention provides the prompting lamp which is convenient for a user to quickly find the target bookcase. When the distance between the user terminal and the position of the bookcase is smaller than a set distance value, the set distance value is a fixed value set in advance, and the embodiment of the invention can automatically detect whether the indicator lamp on the bookcase pointed by the bookcase number is working; and when the prompting lamps are not in operation, calling the colors which are displayed by the prompting lamps on other bookcases within the setting range of the bookcase, and determining the prompting colors according to the colors which are displayed by the prompting lamps on other bookcases, wherein the setting range is a fixed value set in advance, for example, the setting range is 5 meters around.
As shown in fig. 5, as a preferred embodiment of the present invention, the step of determining the prompt color according to the color being displayed by the prompt lamps on the other bookcase specifically includes:
s4031, determining whether colors being displayed by the indicator lights on other bookcases cover all color types;
s4032, when all the color types are not covered, optionally one color type which is not being displayed is a prompt color;
s4033, when all the color types are covered, it is determined that the color type with the smallest number being displayed is the cue color.
In the embodiment of the invention, in order to make the color displayed by the indicator lights more striking, so that a user can conveniently and quickly determine that the color is not interfered by other surrounding indicator light colors, whether the color displayed by the indicator lights on other bookcase covers all color types or not needs to be determined, for example, the color types are red, yellow, blue, purple and green, and when the color displayed in 5 meters surrounding the target bookcase does not cover the five colors, one color type which is not displayed is optionally the indicator color; when the color being displayed in the surrounding 5 meters completely covers the five colors, the color type with the least number being displayed is determined to be the prompt color, for example, two prompt lamps are displayed in red, three prompt lamps are displayed in yellow, and the prompt lamps for displaying blue, purple and green are all one, and the prompt color is one of blue, purple and green.
As shown in fig. 6, an embodiment of the present invention further provides a library book retrieval system, where the system includes:
a search information receiving module 100 for receiving book search information input by a user through a user terminal;
the book name output module 200 is used for matching the book retrieval information with a book database and outputting a plurality of book names;
the shared position map module 300 is configured to receive book name selection information, generate a book case number and a book case position corresponding to the selected book name, and generate a shared position map, where the position of the user terminal and the book case position are displayed;
the indicator light display module 400 is configured to detect a distance between the user terminal and the position of the bookcase through the shared position map, and generate an indicator color when the distance is smaller than a set distance value, and generate indicator light display information, so that indicator lights on the bookcase pointed by the bookcase number display the indicator color;
the book searching ending module 500 is configured to receive a book searching cancellation command or a book searching completion command, so that the display information of the indicator light is invalid.
In the embodiment of the invention, a library is provided with a retrieval system, the retrieval system can be logged in through a user terminal, after a user inputs book retrieval information, the embodiment of the invention can automatically match the book retrieval information with a book database and output a plurality of book names, the user needs to select a book name required by the user from the plurality of book names, namely, the user needs to input book name selection information, then the embodiment of the invention can automatically generate a book case number and a book case position corresponding to the selected book name and generate a shared position map, the position of the user terminal and the book case position are displayed in the shared position map, so that the user can directly move towards the book case position by utilizing the shared position map, the distance between the user terminal and the book case position is detected through the shared position map, when the distance is smaller than a set distance value, the set distance value is a preset fixed value, a prompt color is generated, and prompt lamp display information is generated, and the prompt lamp display information is transmitted to a prompt lamp pointed at the book case number, so that the user can quickly find a target book according to the prompt color. In the embodiment of the invention, each bookcase is provided with the prompting lamp, the prompting lamps are in communication connection with the server, and the server is in communication connection with the user terminal.
As shown in fig. 7, as a preferred embodiment of the present invention, the book name outputting module 200 includes:
a keyword matching unit 201, configured to match the book search information with all keywords in a book database, to obtain a matching degree of the book search information with each keyword, where the book database includes keywords of all books in the library, each book name corresponds to one keyword, and each keyword corresponds to one or more keywords;
and the book name output unit 202 is used for judging the obtained matching degree, and when the matching degree is larger than the set matching value, determining the book name corresponding to the key term, and displaying the book name on the user terminal.
As shown in fig. 8, as a preferred embodiment of the present invention, the shared location map module 300 includes:
a book name selecting unit 301, configured to receive book name selecting information, where the book name selecting information includes a book name selected by a user;
the book name input unit 302 is configured to input book names into a related information library, where the related information library includes all book names, each book name corresponds to a book case number, and each book case number corresponds to a book case position;
and the book case number position unit 303 is used for outputting a book case number and a book case position corresponding to the book name.
As shown in fig. 9, as a preferred embodiment of the present invention, the indicator light display module 400 includes:
the indicator light detection unit 401 is configured to detect whether an indicator light on a bookcase pointed by the bookcase number is working when the distance is smaller than a set distance value;
a first prompt color unit 402, configured to, when working, call a color being displayed by a prompt lamp on the bookcase, and determine the color being displayed as a prompt color;
and a second prompt color unit 403, configured to, when not in operation, call the color being displayed by the prompt lamps on other bookcases within the setting range of the bookcase, and determine the prompt color according to the color being displayed by the prompt lamps on other bookcases.
As shown in fig. 10, as a preferred embodiment of the present invention, the second cue color unit 403 includes:
a color coverage determination subunit 4031, configured to determine whether the colors being displayed by the indicator lights on the other bookcase cover all color types;
a first cue color subunit 4032 for optionally selecting one of the color types not being displayed as a cue color when not all of the color types are covered;
the second cue color sub-unit 4033 determines that the color type having the smallest number of colors being displayed is the cue color when all the color types are covered.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.