[Koha-bugs] [Bug 30975] Framework plugins do not work on cloned fields/subfields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Sep 17 01:16:46 CEST 2022


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com

--- Comment #5 from David Nind <david at davidnind.com> ---
Testing notes (using KTD and a MARC21 instance).

Replicating the issue for cloned fields/subfields not working *
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. For the BKS framework, edit the subfields for 260
2. For 260$b add the marc21_field_260b.pl plugin
3. Edit an existing record's 260$b:
   . Remove what is in the field
   . Start typing the name of a publisher that exists (requires first three
letters), for example: O'R (for O'Reilly) or Apr (for Apress)
   . Select the full name
4. Clone the subfield
5. If you repeat step 3, note that the autocomplete doesn't work
6. Repeat/duplicate the 260 tag and follow steps 3-5

After the patch is applied, flush_memcached, restart_all, clear browser cache,
etc., step 5 should now work.

I found this Monday Minutes from ByWater Solutions very helpful for coming up
with an example of a subfield that could be cloned to replicate the issue -
Monday Minutes: Publisher Drop-down in Cataloging (26 July 2021):
https://bywatersolutions.com/education/monday-minutes-publisher-drop-down-in-cataloging

Testing pages that have the MARC editor
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Run the tests as indicated (labeled with letters in the next section) to check
the various pages where the MARC editor is used.

Except as noted, these should work as expected before and after the patch is
applied.

Add a new catalog record (addbiblio.pl):
1. Cataloging > New record (select Nooks, Booklets, Workbooks from the
drop-down list)
2. Run test D
3. Replicate the issue for cloned fields/subfields

Notes:
- Cloned subfields don't work before the patch is applied

Add a new item to a record (additem.pl)
1. Add a new item to an existing record
2. Run tests A, B, and C
3. These should work before and after the patch is applied

Add a new authority record (authorities.pl)
1. Run test E

Notes:
- I'm not familiar enough with authority records to suggest a subfield and
plugin that would replicate the cloning issue

Acquisitions - create items when placing an order (neworderempty.pl)
1. Acquisitions > click search for Vendor in the manage orders section, and
select 'My Vendor'.
2. Create a new basket with 'placing an order' selected for the 'Create items
when' field
3. Select Add to basket and choose 'From a new (empty) record'
4. Run tests A (barcode) and C (date fields)

Acquisitions - receiving an order (orderreceive.pl)
1. Acquisitions > click search for Vendor in the manage orders section, and
select 'My Vendor'.
2. Create a new basket with 'receiving an order' selected for the 'Create items
when' field
3. Close the basket
4. Select Receive shipments for the vendor
5. Enter anything you like for the invoice number and select 'Next'
6. Select 'Receive' for the basket you created
7. Run tests A (barcode) and C (date fields)

Tests for plugins that use different types of events
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--A.-- 'focus' event plugin - barcode.pl:
1. Set the system preference autoBarcode to 'generated in the form <year>-0001,
<year>-0002.
2. Add a new item for any record.
3. Click on the p - Barcode field
4. Result: it should be populated with the autoBarcode pattern

--B.-- 'blur' event plugin - callnumber.pl
1. For the itemcallnumber system preference add 082ab,092ab
2. For the BKS framework, add the callnumber.pl plugin to 952$o
3. Edit any record and add some values to 082$a, 082$b, and 082$c if it doesn't
already entries for these subfields
4. Add a new item to the record
5. Result: the 'o - Full call number' field should be populated with the values
from 082

--C.-- 'click' events - dateaccessioned.pl:
1. Add a new item to a record
2. Click on any of the date fields, such as d - date acquired or w - Price
effective from
3. Result: date picker pop-up should appear, selecting a date should populate
the field

--D.-- 'click' events - new cataloguing record:
1. Add a new catalogue record for the BKS framework
2. Click in the fields for 000, 005, and 008
3. Result: these should be populated with values

--E.-- 'click' events - new authority record:
1. Add a new Personal Name authority record
2. Click in the fields for 000, 003, 005, 008, and 0040
3. Result: these should be populated with values

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


More information about the Koha-bugs mailing list