Bug 22757: Add CodeMirror highlighting on more YAML formatted preferences

Test plan:
Go to system preferences and ensure the code highlighting is used on
these preferences:
    UpdateNotForLoanStatusOnCheckin
    BibtexExportAdditionalFields
    RisExportAdditionalFields
    UpdateItemWhenLostFromHoldList
    MarcFieldsToOrder
    MarcItemFieldsToOrder
    ItemsDeniedRenewal

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Josef Moravec 2019-04-23 11:46:24 +00:00 committed by Nick Clemens
parent 99b2b2b6a7
commit d559f93151
3 changed files with 7 additions and 0 deletions

View file

@ -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"
- "<br/>For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>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"
- "<br/>For example:<br/>holdingbranch: 975$b<br/>itype: 975$9|975$z"
-

View file

@ -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 )"
- "<br/>"
- "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 )"
- "<br/>"
- "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] )"

View file

@ -483,6 +483,7 @@ Circulation:
-
- pref: ItemsDeniedRenewal
type: textarea
syntax: text/x-yaml
class: code
- Define custom rules to deny specific items from renewal.
- "<br />Can name any field in the items table followed by a colon then a space then"
@ -543,6 +544,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."
@ -792,6 +794,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