From a5f511407461126365d88cf4886442f47f24eb98 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Tue, 23 Apr 2019 11:46:24 +0000 Subject: [PATCH] Bug 22757: Add CodeMirror highlighting on more YAML formatted prferences Test plan: Go to system preferences and ensure the code highlighting is used on these preferences: UpdateNotForLoanStatusOnCheckin BibtexExportAdditionalFields RisExportAdditionalFields UpdateItemWhenLostFromHoldList MarcFieldsToOrder MarcItemFieldsToOrder ItemsDeniedRenewal --- .../intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref | 2 ++ .../intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref | 2 ++ .../intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref | 3 +++ 3 files changed, 7 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref index 8f9082a987..44602270fd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref @@ -61,12 +61,14 @@ Acquisitions: - Set the mapping values for a new order line created from a MARC record in a staged file. - pref: MarcFieldsToOrder type: textarea + syntax: text/x-yaml - "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2" - "
For example:
price: 947$a|947$c
quantity: 969$h
budget_code: 922$a" - - Set the mapping values for new item records created from a MARC record in a staged file. - pref: MarcItemFieldsToOrder type: textarea + syntax: text/x-yaml - "You can use the following fields: homebranch, holdingbranch, itype, nonpublic_note, public_note, loc, ccode, notforloan, uri, copyno, price, replacementprice and itemcallnumber. Special fields: quantity and budget_code" - "
For example:
holdingbranch: 975$b
itype: 975$9|975$z" - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index 0f547e4df5..37b9811e38 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -274,6 +274,7 @@ Cataloging: - Include following fields when exporting BibTeX, - pref: BibtexExportAdditionalFields type: textarea + syntax: text/x-yaml - "Use one line per tag in the format BT_TAG: TAG$SUBFIELD ( e.g. lccn: 010$a )" - "
" - "To specificy multiple marc tags/subfields as targets for a repeating BibTex tag, use the following format: BT_TAG: [TAG2$SUBFIELD1, TAG2$SUBFIELD2] ( e.g. notes: [501$a, 505$g] )" @@ -285,6 +286,7 @@ Cataloging: - Include following fields when exporting RIS, - pref: RisExportAdditionalFields type: textarea + syntax: text/x-yaml - "Use one line per tag in the format RIS_TAG: TAG$SUBFIELD ( e.g. LC: 010$a )" - "
" - "To specificy multiple marc tags/subfields as targets for a repeating RIS tag, use the following format: RIS_TAG: [TAG2$SUBFIELD1, TAG2$SUBFIELD2] ( e.g. NT: [501$a, 505$g] )" diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref index 41c7d77385..579a3075a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -497,6 +497,7 @@ Circulation: - - pref: ItemsDeniedRenewal type: textarea + syntax: text/x-yaml class: code - Define custom rules to deny specific items from renewal. - "
Can name any field in the items table followed by a colon then a space then" @@ -540,6 +541,7 @@ Circulation: - - pref: UpdateNotForLoanStatusOnCheckin type: textarea + syntax: text/x-yaml class: code - This is a list of value pairs. When an item is checked in, if the not for loan value on the left matches the items not for loan value - "it will be updated to the right-hand value. E.g. '-1: 0' will cause an item that was set to 'Ordered' to now be available for loan." @@ -789,6 +791,7 @@ Circulation: - 'Example: "itemlost: 1" to set items.itemlost to 1 when the item is marked as lost' - pref: UpdateItemWhenLostFromHoldList type: textarea + syntax: text/x-yaml Interlibrary Loans: - - pref: ILLModule -- 2.11.0