[Koha-bugs] [Bug 22428] MARC modification template cuts text to 100 characters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 21 17:21:24 CET 2023


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

Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #147020|0                           |1
        is obsolete|                            |

--- Comment #5 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
Created attachment 147074
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147074&action=edit
Bug 22428: Change datatype of field_value to text

This patch changes the datatype of the field_value column in
marc_modification_template_actions to "text". This is to stop text
strings longer than 100 characters from being chopped short and allow
longer strings up to 65,000 characters.

Test plan:
1. Create a MARC modification template with a text value over 100 characters
   1.1 Go to Cataloging > MARC modification templates
   1.2. Click on 'New template'
   1.3. Name your new template and click on 'Submit'
   1.4. Click on 'New action'
   1.5. Enter the following information in the form
        - 'Add new'
        - field(s): 856 y
        - with value: Organization-wide access - sign on to OnePass / Accès à
l'échelle de l'organisation - Ouvrez une session (OnePass)
   1.6. Click on Add action
   --> Note that the text is cut in the displayed table 'Organization-wide
access - sign on to OnePass / Accès à l'échelle de l'organisation - Ouvrez une
ses'
2. Use the MARC modification template on a bibliographic record
    2.1 Make a search in the catalog
    2.2. Click on the title to go to the detailed record
    2.3. Click 'Edit' and choose 'Modify record using template'
    2.4. Choose the template from step 1 from the drop-down menu
    2.5. Click on 'Show MARC' to see the result of the modification (the added
line is usually at the bottom)
    --> Note that the text is still cut after 100 characters (so not only a
display bug)
    2.6. Click on 'Close'
    2.7. Click on 'Modify selected records'
    2.8. Click on 'View detail of the enqueued job'
    2.9. Click on the biblionumber under 'Detailed messages' to see the
modified record
    --> In the detailed record, the 856y field is under 'Online resources',
note that the text is still cut

3. Apply patch, update database
4. Redo steps 1 and 2
   --> On step 1.6. the text is displayed in full in the table
   --> On step 2.5. the text is displayed in full in the MARC preview
   --> On step 2.9. the text is displayed in full in the detailed record, under
Online resources

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com>
I updated the test plan for new functionalities in master

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


More information about the Koha-bugs mailing list