Koha/serials
Julian Maurice b997250026 Bug 11844: Use additional fields for order lines
This patch allows to create additional fields for order lines.
Once created, these fields can be filled during order line creation or
modification.

If additional field is linked to a MARC field, there are two possible
scenario:
- MARC field mode = get: The field cannot be modified and its value is
  retrieved from the bibliographic record (current behaviour)
- MARC field mode = set: The field can be modified and its value is
  saved to the bibliographic record (new behaviour)

If additional field is linked to an authorised value category, then
authorised values are used. If not directly linked to an authorised
value category, but linked to a MARC field, a search for an AV category
is made on MARC default framework.

This patch doesn't display additional fields value anywhere (except in
order line creation/modification). Future patches will do that.

Test plan:
1/ Go to Acquisitions home
2/ In the left menu, click on "Add order line fields"
3/ Click on "New field" button
4/ Give the field a name (unique), no AV category and no MARC field.
5/ Save.
6/ Create 5 other fields:
   a/ no AV category, a MARC field not linked to AV category, MARC field
      mode = get
   b/ no AV category, a MARC field not linked to AV category, MARC field
      mode = set
   c/ no AV category, a MARC field linked to AV category, MARC field
      mode = get
   d/ no AV category, a MARC field linked to AV category, MARC field
      mode = set
   e/ an AV category, no MARC field
7/ Create everything you need to be able to create order lines
   (supplier, basket, ...)
8/ Create an order line. At bottom of the page, you should see your
   additional fields, with authorised values dropdrown list for fields
   (c), (d) and (e). Fields (a) and (c) should be disabled.
9/ Fill these fields with some data and save order line
10/ check that data was correctly saved into biblio for fields (b) and
    (d), but not for (a) and (c)
11/ modify the same order line, check that values you've filled are
    correctly retrieved and that values for (a) and (c) were correctly
    retrieved from the bibliographic record
12/ modify all values, save, and check biblio once again

Signed-off-by: Harold Dramer <harold.dramer@nyls.edu>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2023-05-16 12:58:38 +02:00
..
acqui-search-result.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
acqui-search.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
checkexpiration.pl
claims.pl
create-numberpattern.pl
lateissues-export.pl
reorder_members.pl
routing-preview.pl
routing.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
serials-collection.pl
serials-edit.pl
serials-home.pl
serials-search.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
showpredictionpattern.pl
subscription-add.pl
subscription-batchedit.pl
subscription-bib-search.pl
subscription-detail.pl
subscription-frequencies.pl
subscription-frequency.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
subscription-history.pl
subscription-numberpattern.pl
subscription-numberpatterns.pl Bug 29608: Made so doesn't require full permission 2022-09-07 13:49:53 -07:00
subscription-renew.pl
viewalerts.pl