Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 21330: (QA follow-up) Add 'empty' option to system preference description 2023-05-15 18:24:05 -03:00
searchengine/elasticsearch Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
additional-fields.tt Bug 11844: Use additional fields for order lines 2023-05-16 12:58:38 +02:00
admin-home.tt Bug 33673: Change "global system preferences" to "system preferences" 2023-05-09 10:58:01 -03:00
adveditorshortcuts.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
aqbudgetperiods.tt Bug 33180: Use template wrapper for tabs: Budgets and Search engine configuration 2023-04-12 11:43:13 -03:00
aqbudgets.tt Bug 33696: Fix doubled up home icon in budgets page 2023-05-09 10:57:59 -03:00
aqcontract.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
aqplan.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
audio_alerts.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
auth_subfields_structure.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
auth_tag_structure.tt Bug 33006: (follow-up) Add spans for translatability 2023-04-12 11:22:10 -03:00
authorised_values.tt Bug 33104: DB changes 2023-05-05 10:18:45 -03:00
authtypes.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
background_jobs.tt Bug 33579: Typo: record record 2023-04-24 10:43:36 -03:00
biblio_framework.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
branch_transfer_limits.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
branches.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
cash_registers.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
categories.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
checkmarc.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
cities.tt Bug 33077: Improve ease of translating template title tags 2023-04-12 11:43:22 -03:00
classsources.tt Bug 33007: Use template wrapper for breadcrumbs: Administration part 2 2023-04-12 11:22:11 -03:00
clone-rules.tt
columns_settings.tt
credit_types.tt Bug 26403: Use accounts include in account management pages 2023-05-10 15:26:15 -03:00
curbside_pickup.tt
currency.tt
debit_types.tt Bug 26403: Use accounts include in account management pages 2023-05-10 15:26:15 -03:00
desks.tt
didyoumean.tt
edi_accounts.tt
edi_ean_accounts.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
identity_provider_domains.tt Bug 33699: Typo in identity_provider_domains.tt (presedence) 2023-05-12 11:22:40 -03:00
identity_providers.tt Bug 33111: (QA follow-up) Add more context to breadcrumb parts for easier translation 2023-04-12 11:43:23 -03:00
item_circulation_alerts.tt Bug 33154: Tab WRAPPER follow-up: label text must be translatable 2023-04-13 11:47:54 -03:00
items_search_field.tt Bug 33111: (QA follow-up) Add more context to breadcrumb parts for easier translation 2023-04-12 11:43:23 -03:00
items_search_fields.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
itemtypes.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
koha2marclinks.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
library_groups.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
localization.tt
marc-overlay-rules.tt Bug 33335: (QA follow-up) Polishing and comments 2023-05-12 17:50:09 -03:00
marc_subfields_structure.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
marctagstructure.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
matching-rules.tt Bug 33111: Use template wrapper for breadcrumbs: Administration part 4 2023-04-12 11:43:22 -03:00
oai_set_mappings.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
oai_sets.tt Bug 31405: Set focus for cursor to setSpec input when adding a new OAI set 2023-05-05 12:13:56 -03:00
overdrive.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
patron-attr-types.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
preferences.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
restrictions.tt Bug 33549: Improve wording of dialog messages 2023-04-24 10:43:41 -03:00
search_filters.tt Bug 33127: Use template wrapper for breadcrumbs: Administration part 5 2023-04-21 10:36:24 -03:00
share_content.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
smart-rules.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
sms_providers.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
smtp_servers.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
transfer_limits.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
transport-cost-matrix.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
usage_statistics.tt Bug 33129: Use template wrapper for breadcrumbs: Administration part 6 2023-04-14 15:39:39 -03:00
z3950servers.tt Bug 31410: Set focus for cursor to Server name when adding a new Z39.50/SRU server 2023-05-05 12:13:55 -03:00