Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart 7a8357f709 Bug 27526: Adjust code to use Koha::Items
Not that we removed all the transformations of the item and are using
Koha::Item from DB to TT (and the other way around), some code needs
adjustments.

- Retrieve host items can be simplified (see Koha::Biblio->host_items)
- Some TT variables have been renamed for better understanding
- Koha::Item->columns_to_str return a hashref with the representation
string of the columns. A date will return the value how it must be
displayed, using output_pref. A subfield linked with a AV will be
replaced with the AV's description.
- LastCreatedItem cookie serializes and stores Koha::Item->unblessed,
no longer the MARC::Record

Change in behaviour: If a subfield is linked with a AV cat and the value
is not a valid AV, before this patch the column was displayed with an
empty value. Now the column is hidden, it's considered empty.
In the sample data it happens with itemlost (0) and withdrawn (0).

Test plan:
1. Test the Prefill
 a. Turn PrefillItem on
 b. Fill in SubfieldsToUseWhenPrefill with some subfield codes
 c. Catalogue an item, save
 => The values from subfields listed in SubfieldsToUseWhenPrefill must be
 kept
2. more subfields
 a. Add subfields that are not linked with a koha field (k is available)
 b. Create an item and fill in all the values
 c. Confirm that non linked subfields are stored and displayed correctly
 d. Try with a "more subfield" that is linked with an authorised value
 category
3. Test barcode values
4. Test the different "Add" buttons at the bottom of the form

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-06 11:44:22 +02:00
..
acqui Bug 28942: Use Flatpickr on acquisitions pages 2021-10-05 10:58:13 +02:00
admin Bug 27947: Add cancellation reason to article request 2021-10-06 10:09:25 +02:00
authorities Bug 29137: Add new syspref to disable AV creation within the cataloguing module 2021-10-01 16:09:55 +02:00
basket
batch Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
catalogue Bug 28321: Use template block for display of items in search results 2021-10-05 10:58:13 +02:00
cataloguing Bug 27526: Adjust code to use Koha::Items 2021-10-06 11:44:22 +02:00
circ Bug 27947: Add cancellation reason to article request 2021-10-06 10:09:25 +02:00
clubs Bug 28983: Use Flatpickr on various pages 2021-10-05 10:58:14 +02:00
common
course_reserves
errors Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
ill Bug 28983: Use Flatpickr on various pages 2021-10-05 10:58:14 +02:00
installer
labels Bug 28983: Use Flatpickr on various pages 2021-10-05 10:58:14 +02:00
mana
members Bug 28772: Display API secret once 2021-09-30 09:19:05 +02:00
offline_circ
onboarding
patron_lists
patroncards Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
plugins Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
pos Bug 28983: Use Flatpickr on various pages 2021-10-05 10:58:14 +02:00
reports Bug 28949: Use Flatpickr on reports pages 2021-10-05 10:58:13 +02:00
reserve Bug 23678: Allow cancel holds in bulk 2021-10-01 16:02:58 +02:00
reviews
rotating_collections
serials Bug 28958: Use Flatpickr on serials pages 2021-10-05 10:58:14 +02:00
services
suggestion Bug 28983: Use Flatpickr on various pages 2021-10-05 10:58:14 +02:00
tags Bug 28983: Use Flatpickr on various pages 2021-10-05 10:58:14 +02:00
test
tools Bug 29042: Improve formatting of entry form in Additional Contents 2021-10-05 10:58:14 +02:00
virtualshelves
about.tt Bug 26949: Upgrade TinyMCE in the staff interface from 5.0.16 to 5.9.2 2021-10-05 10:58:13 +02:00
auth.tt
intranet-main.tt