Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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 Bug 11844: Use additional fields for order lines 2023-05-16 12:58:38 +02:00
admin Bug 11844: Use additional fields for order lines 2023-05-16 12:58:38 +02:00
authorities Bug 33185: Use template wrapper for tabs on authority and biblio MARC details 2023-04-13 11:48:07 -03:00
basket Bug 33160: (QA follow-up) Adjust condition on biblio object 2023-04-06 09:47:24 -03:00
batch
catalogue Bug 32752: Use an include to display the serial status in the staff interface 2023-05-15 18:24:07 -03:00
cataloguing Bug 31212: Change datelastseen from date to datetime field 2023-05-12 17:49:55 -03:00
circ Bug 25379: (QA follow-up) Adjust other occurrences and add line break 2023-05-09 11:47:01 -03:00
clubs Bug 33382: Use template wrapper for breadcrumbs: Patron clubs 2023-04-12 11:43:16 -03:00
course_reserves Bug 33383: Use template wrapper for breadcrumbs: Course reserves 2023-04-12 09:27:07 -03:00
erm Bug 33408: Remove obsolete tests and template sys pref code 2023-04-13 11:48:02 -03:00
errors Bug 32973: Use template wrapper for breadcrumbs: about, main, and error page 2023-02-27 11:39:31 -03:00
ill Bug 22375: (follow-up) Format even more due dates consistently 2023-05-09 11:46:56 -03:00
installer Bug 28267: Add warnings for database row formats 2023-05-05 10:18:35 -03:00
labels Bug 32955: Standardize structure around action fieldsets in various templates 2023-04-14 11:35:27 -03:00
mana
members Bug 28366: Add batch patron modification to patron search results 2023-05-15 18:24:02 -03:00
offline_circ Bug 32955: Standardize structure around action fieldsets in various templates 2023-04-14 11:35:27 -03:00
onboarding
patron_lists Bug 25379: (QA follow-up) Adjust other occurrences and add line break 2023-05-09 11:47:01 -03:00
patroncards Bug 32955: Standardize structure around action fieldsets in various templates 2023-04-14 11:35:27 -03:00
plugins Bug 33463: Remove sort for 'Actions' on the plugins table 2023-05-15 08:53:54 -03:00
pos Bug 32955: Standardize structure around action fieldsets in various templates 2023-04-14 11:35:27 -03:00
recalls Bug 32688: Convert recalls awaiting pickup tabs to Bootstrap 2023-01-30 12:21:34 -03:00
reports Bug 31212: Change datelastseen from date to datetime field 2023-05-12 17:49:55 -03:00
reserve Bug 30687: Allow pickup location to be forced when override is allowed 2023-05-12 11:22:49 -03:00
reviews Bug 32182: Replace static tabs markup with Bootstrap 2022-11-16 09:35:14 -03:00
rotating_collections Bug 33555: Use template wrapper for breadcrumbs: Rotating collections 2023-04-21 10:36:22 -03:00
serials Bug 32752: Update serial edit form to allow for new status 2023-05-15 18:24:08 -03:00
services
suggestion Bug 33310: Use template wrapper for tabs: Suggestions 2023-04-21 10:36:24 -03:00
tags Bug 33565: Use template wrapper for breadcrumbs: Tags 2023-04-24 10:43:35 -03:00
test
tools Bug 31212: Change datelastseen from date to datetime field 2023-05-12 17:49:55 -03:00
virtualshelves Bug 30418: Re-order options of who can edit list contents 2023-05-15 18:23:59 -03:00
about.tt Bug 28267: Add warnings for database row formats 2023-05-05 10:18:35 -03:00
auth.tt Bug 33253: Turn off autocompletion for 2FA authentication code 2023-05-09 11:46:59 -03:00
intranet-main.tt Bug 33133: Add fast cataloging to 'Cataloging' page 2023-03-27 12:50:07 +02:00