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
acqui-search.pl
checkexpiration.pl Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
claims.pl Bug 30377: Fix two CGI::param called in list context-warnings 2022-04-04 16:23:46 +02:00
create-numberpattern.pl
lateissues-export.pl Bug 27045: (follow-up) Fix delimiter in header rows 2022-07-20 11:50:41 -03:00
reorder_members.pl
routing-preview.pl Bug 31318: Remove GetItemsInfo from serials/routing-preview 2022-08-16 09:27:15 -03:00
routing.pl
serials-collection.pl
serials-edit.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
serials-home.pl
serials-search.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
showpredictionpattern.pl Bug 30718: Fix serials/showpredictionpattern.pl 2022-08-19 08:26:37 -03:00
subscription-add.pl Bug 11844: Use additional fields for order lines 2023-05-16 12:58:38 +02:00
subscription-batchedit.pl
subscription-bib-search.pl Bug 30813: Update TransformMarcToKoha to accept a hashref 2022-06-08 11:40:29 -03:00
subscription-detail.pl Bug 23352: Set default collection code when creating subscription 2022-05-10 15:17:17 -10:00
subscription-frequencies.pl
subscription-frequency.pl
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