[Koha-bugs] [Bug 18618] Mana - Add reading suggestions (crontab and scripts for Koha)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 31 11:35:49 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18618

Alex Arnaud <alex.arnaud at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #130735|0                           |1
        is obsolete|                            |
 Attachment #130736|0                           |1
        is obsolete|                            |
 Attachment #130737|0                           |1
        is obsolete|                            |
 Attachment #130738|0                           |1
        is obsolete|                            |
 Attachment #130739|0                           |1
        is obsolete|                            |
 Attachment #130740|0                           |1
        is obsolete|                            |
 Attachment #130741|0                           |1
        is obsolete|                            |
 Attachment #130742|0                           |1
        is obsolete|                            |
 Attachment #130743|0                           |1
        is obsolete|                            |
 Attachment #130744|0                           |1
        is obsolete|                            |

--- Comment #37 from Alex Arnaud <alex.arnaud at biblibre.com> ---
Created attachment 132690
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132690&action=edit
Bug 18618: Mana readings pairs

- There are 2 differents scripts:
misc/cronjobs/mana_send_pairs.pl -> please use it if Mana is installed
misc/cronjobs/mana_send_pairs_without_mana.pl -> designed to work if mana isn't
enabled

- Both of scripts anonymize the datas and send them to mana.

Bug 18618: Mana - Add reading suggestion

There is now a module to get suggestions from Mana.

- It is activated by default on Mana.
- When you browse on a notice, there is now a tab called "Suggestions"
- On click on the tab, it will check in the database if it has suggestions.
- Else, it will ask to Mana for suggestions and will store in the database.

- The suggestions are stored in the NEW table reading_pairs
- Implement new dbix objets: Reading_suggestion and Reading_suggestions

Bug 18618: Add a pagination for suggestions

*** Suggestions are now sent from Mana as follows

- Koha requests the first 20 suggestions
- It processes them and estimates how much it will need to get all suggestions
- It requests Mana the number of suggestions needed
- It repeats the 3 first steps until
    (1) Mana doesn't have suggestions anymore
    (2) It got 10 suggestions to display

*** Koha interface is a bit more verbose while searching (just a bit).

Bug 18618: Correct Plack issues

Split one command line into two in order to be accepted by Plack

Bug 18618: Rebase modification

Remove mana_send_pairs_without_mana.pl
  This script was here for testing purpose and is not usefull anymore
Fix name issues (some function have been renamed)
Fix a compilation issues (redeclared variable)
Remove an unused variable
Remove an extra % in an sql request
Fix display problem when getting info from mana
  When getting info from mana the biblios array contain blessed references
  but the template don't deal with that properly.
  It work fine whe koha is getting info from it's interne database because
  biblios array contain unblessed references.

Bug 18618 : Many small refacto and improvement

* change duration before refresh and improve the use of $temp variable
* improve SQL request for extracting pairs
     fix condition
     create pair with old_issues
     use placeholders
* improve SQL request for getting suggestion
    add the possibility to look in metadata for the id
* execute the script only if mana is activated
* optimize imbricate foreach loop
* add a max number of simultaneous issues
* remove unused option

Bug 18618: Add a better support for different id types

Add a better support for ISMN, ISRN, ISRC and UPC

Add normalization function for some of these ids.

When sending pairs to mana and when getting suggestions these ids are
now taken into account correctly.

Documents with multiple identifier were causing various trouble.
It was needed to add functions to normalize all ids

This patch add the possibility to:
- create pairs with documents with multiple ids (all the possible pairs will be
created)
- get suggestion for a document with multiple ids
- display correctly the document when the suggested document has multiple ids

Bug 18618: Add MARC21 support

This functionnality is now working for both MARC21 and UNIMARC.

Bug 18618 : refacto to allow unit test and add unit test

Re-write pairs extraction script to use testable function
Re-write getSuggestion script to use testable function
Add unit test for normalizaation functions
Add unit test for pairs extractions function
Add unit test for getSuggestion function
Fix many small problems found while writing unit test

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list