Bugzilla – Attachment 88461 Details for
Bug 22757
Use YAML CodeMirror higlighting on YAML preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22757: Add CodeMirror highlighting on more YAML formatted prferences
Bug-22757-Add-CodeMirror-highlighting-on-more-YAML.patch (text/plain), 5.03 KB, created by
Owen Leonard
on 2019-04-23 12:29:16 UTC
(
hide
)
Description:
Bug 22757: Add CodeMirror highlighting on more YAML formatted prferences
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-04-23 12:29:16 UTC
Size:
5.03 KB
patch
obsolete
>From c90315bce13b7cc5f8f429f32e823cbfdbba8e73 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >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 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../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 8f9082a..4460227 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" > - "<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" > - >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 0f547e4..37b9811 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 )" > - "<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] )" >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 41c7d77..579a307 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. > - "<br />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.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22757
:
88449
|
88460
|
88461
|
88658