C4::Suggestions - Some useful functions for dealings with aqorders.
use C4::Suggestions;
The functions in this module deal with the aqorders in OPAC and in staff interface
A suggestion is done in the OPAC. It has the status "ASKED"
When a librarian manages the suggestion, they can set the status to "REJECTED" or "ACCEPTED".
When the book is ordered, the suggestion status becomes "ORDERED"
When a book is ordered and arrived in the library, the status becomes "AVAILABLE"
All aqorders of a borrower can be seen by the borrower itself. Suggestions done by other borrowers can be seen when not "AVAILABLE"
&ModSuggestion($suggestion)
Modify the suggestion according to the hash passed by ref. The hash HAS to contain suggestionid Data not defined is not updated unless it is a note or sort1 Send a mail to notify the user that did the suggestion.
Note that there is no function to modify a suggestion.
&ConnectSuggestionAndBiblio($ordernumber,$biblionumber)
connect a suggestion to an existing biblio
&DelSuggestion($borrowernumber,$ordernumber)
Delete a suggestion. A borrower can delete a suggestion only if they are its owner.
Delete all suggestions older than TODAY-$days , that have be accepted or rejected.
We do now allow a negative number. If you want to delete all suggestions, just use Koha::Suggestions->delete or so.
Missing POD for GetUnprocessedSuggestions.
$record = MarcRecordFromNewSuggestion ( $suggestion )
This function build a marc record object from a suggestion
Koha Development Team <https://koha-community.org/>