表示ルールの操作

翻訳可能
All users can create indication rules.

表示ルールは、フィルタリングのセットに使用されます。表示ルールはデータを変更しません。They are solely used to read records that are part of a set and filter records out based on conditions.フィルタリングプロセスの結果、元のセットやフィルタリングされたセットのサブセットとして新しいセットが作成されます。See Filtering Sets on the Managing Search Queries and Sets page for more information.

MARC書誌レコードには表示ルールが使用され、Dublin CoreレコードにはXML表示ルールが使用されます。

以下のセクションでは、表示ルールを作成およびテストする方法について説明し、ワークフローに組み込む例を示します。

  • Creating Indication Rules
  • Testing Indication Rules
  • MARC Indication Rules Syntax Examples
  • XML Indication Rules Syntax Examples
  • Form-Based Indication Rules
表示ルールはリソース管理コンテンツタイプにのみ関連付けられます。
表示規則を使用してパイプ(I)の存在を識別することはできません 。

さらに、セットを使用する他の機能領域の表示ルールを作成できます:

Almaのすべてのエリアとワークフローに同じ表示ルールを使用できるわけではありません。

Creating Indication Rules

MDエディタを使用して、表示ルールを作成および管理します。

For Network Zone consortia members, users can control whether to save new rules locally or in a network institution.この選択を行うには、[レコード]または[テンプレート]領域を開き、[新規] > [配置オプション]に移動します。この選択はユーザーごとに行われることに注意してください。

Backslashes (\) are used as escape characters for Indication Rules and Form-Based Indication Rules, according to the same principles as the Normalization Rules.

指示ルールを作成する方法
  1. MDエディターを開きます。
  2. Select New > Indication.表示ルールのプロパティダイアログが開きます。
    新しい表示ルール。
    プロパティダイアログボックス
  3. ルールの名前と、他のユーザーがルールの機能を理解するのに役立つ説明を示します。
  4. In "Type" , select whether to create the rule as Drool (for MARC bibliographic records) or as XSL (for Dublin Core records).
  5. ルールをプライベートとして作成するか共有として作成するかを指定します。This determines in which folder the indication rule is saved.(プロパティを変更して)共有フォルダーに移動する前に、表示ルールをプライベートフォルダーに保存し、最初にテストすることをお勧めします。Private indication rules cannot be used in the "Filter Set" functionality invoked from the Manage Sets page.コミュニティフォルダーには、コピーすることで独自の表示ルールを作成できる表示ルールがあります。
  6. Select Save in the dialog.The MD Editor editing pane opens.
  7. 以下のようにルールを作成します。
    • If you selected to create an indication rule for MARC records, enter the Drools logic for your indication rule.Refer to the section Normalization Rules – Syntax and Examples for the syntax to use when creating indication rules.Almaでは以下の表示ルールが提供されています。
      MultiTitleIndication.dslrBriefIndication.dslr
      提供されている表示ルール(複数のタイトル)
      このルールでは、コントロールフィールドの条件は存在しません。
      提供されている表示ルール(簡易的な件名)
      See the Indication Rules Syntax Examples section for more examples.
      ルールに複数のブール演算子を含めることはできますが、多数のブール演算子を選択すると、パフォーマンスが低下する可能性があります。したがって、ブール演算子は各ルールあたり200個以下に収める必要があります。
    • If you selected to create an XML indication rule for Dublin Core records, enter the indication rule in XML format.
  8. [保存]を選択します。

Testing Indication Rules

実際に表示ルールを使用してセットをフィルタリングするジョブを実行する前に、MDエディタ内でルールをテストすることができます。

表示ルールと正規化ルールは両方ともテスト モードで機能します。

作成した表示ルールをテストする方法
  1. MDエディタで書誌レコードを開きます。
  2. Select split mode icon.png Split Editor.
  3. 左側画面の[ルール]タブを選択し、[表示ルール]フォルダーを展開します。
  4. Locate the rule that you want to test in the Private or Shared(not the Community) folder.ルールを選択して、アクションのリストを表示します。
    • [編集]
    • [削除]
    • [CZに投稿]
    • [複製]
    • [プロパティ]
  5. [編集]を選択します。表示ルールは書誌レコードの横の分割画面で開かれます。
    分割画面で表示ルールを開く
  6. [試す]を選択します。Depending on the results, a pop-up appears with either True or False response indicating that the bibliographic record either met or did not meet the Drool logic in the indication rule.
    Indication_Rule_Try_It_Response_2_NL.png
    表示ルール - 試行応答

Indication Rules for MARC Records - Syntax Examples

Examples of indication rules syntax are provided below and at Alma Indication Rule Examples.See Conditions for more information.

In rules that search for a certain term, use an asterisk to find the exact term.サブフィールドに用語以外に何かが含まれている場合、アスタリスクがない限り、サブフィールドはそれを検索しません。アスタリスクは用語の最後に配置するだけでよく、最初に配置する必要はないことに注意してください。

rule "130|a|Bible." when exists "130.a.Bible*" then set indication."true" end

The line exists "130.a.Bible" works as an "Equals" search, thus if the subfield contains anything in addition to the term, it will not find it, unless there is an asterisk..

例1

949フィールドに$aを含むセット内のレコードを識別します。

rule "Contains 949 with subfield a" when exists "949.a.*" then set indication."true" end

例2

$0(サブフィールド0)に1XXや6XXまたは7XXを含むセット内のレコードを識別します。

rule "Contains a 1XX or 6XX or 7XX subfield 0" when ((exists "1**.0.*") OR (exists "6**.0.*") OR (exists "7**.0.*")) then set indication."true" end

例3

65で始まるフィールド(650や659など)に$0(サブフィールド0)を含むセット内のレコードを識別します。

rule "Contains a 65X subfield 0" when exists "65*.0.*" then set indication."true" end
表示ルール作成時にワイルドカードとして使用する場合、フィールドタグ内の各数字に1つずつアスタリスクを付けます。

例4

600、630、650、659などの6で始まるフィールドに$0(サブフィールド0)を含むセット内のレコードを識別します。

rule "Contains a 6XX subfield 0" when exists "6**.0.*" then set indication."true" end

例5

複数の300フィールドがあり、それぞれにサブフィールドを持つすべてのレコードを取得します。

rule "Retrieve all records which contain two subfield a occurrences in 300" when existsMoreThanOnce "300.a" then set indication."true" end

Example 6

フィールド630および650に重複するサブフィールドxおよびzを持つすべてのレコードのセットを作成します。

rule "Find duplicates 630 and 650" when recordHasDuplicateSubfields "630,650" "xz" ".," then set indication."true" end

See the Alma Indication Rule Examples page in the Developer Network for more examples of indication rules.

DCレコードのXML表示ルール - 構文例

以下は、XML表示ルールの構文例です。

例1

以下は、レコードにdc:subjectフィールドがある場合に、Trueを返すXSL表示ルールの例です。

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"> <xsl:output method="text" encoding="UTF-8"/> <xsl:template match="/"> <xsl:variable name="indication" select = "boolean(//dc:subject)" /> <xsl:value-of select="$indication" /> </xsl:template> </xsl:stylesheet>

例2

以下は、レコードのdc:subjectフィールドがTheologyにしい場合にfalseを返すXSL表示ルールの例です。

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"> <xsl:output method="text" encoding="UTF-8"/> <xsl:template match="/"> <xsl:variable name="indication" select = "not(boolean(//dc:subject='Theology'))" /> <xsl:value-of select="$indication" /> </xsl:template> </xsl:stylesheet>

例3

以下は、レコードのdc:creatorフィールドまたはdcterms:creatorフィールドがTolstoyを含む場合にtrueを返すXSL表示ルールの例です。

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"> <xsl:output method="text" encoding="UTF-8"/> <xsl:template match="/"> <xsl:variable name="indication" select = "boolean(//dc:creator[contains(.,'Tolstoy')] or //dcterms:creator[contains(.,'Tolstoy')])" /> <xsl:value-of select="$indication" /> </xsl:template> </xsl:stylesheet>

フォームベースの表示ルール

All users can create indication rules.

Ex Libris provides the ability to create indication rules in the MARC format using a structured form, thus making the process easy and intuitive (this new functionality is in addition to the existing abilities to create Drool rules in the MARC format and create XML rules in the DC format manually, both of which remain unchanged).For complete information about indication rules, see Working with Indication Rules.

The structured form allows to enter the different fields and subfields and values in a wizard-like fashion, and provides pop-up assistance when entering tags and tag names.ルールを作成すると、ルールをデプロイする前に、構造化フォームを使用してルールが期待どおりに機能しているかテストできます。

この機能はデフォルトで無効になっています。To enable it for your institution, contact Customer Support.

制限事項

  • Currently you can create only MARC21 and UNIMARC form-based indication rules.
  • The form-based rules can only be used for filtering sets at this time, and the ability to use them in other workflows that use indication rules is on our roadmap and will be added in the future.

新しいフォームベースの表示ルール

「フォーム」タイプの表示ルールが導入されました。This type has the same rule actions as the other indication rules (New,Edit,Delete,Duplicate,Contribute to CZ, etc.).新しいフォームベースのルールを作成すると、このルールはメタデータエディタでバッジ「フォーム」を受け取ります。

form_badge_on_MDE.png

Creating a Form-Based Indication Rule

フォームベースの表示ルールを作成するには:
  1. Open the Metadata Editor >Rules area.
  2. Select  New > Indication.The Indication Rules Properties dialog opens.保有レコードのフォームベースの表示ルール
  3. [名前]の下にルールに名前を付け、[説明]の下に(任意で)他のユーザーがこのルールの機能を理解できるよう説明を入力します。
  4. Under "Type", select whether to create the rule as Drool (for MARC bibliographic records), as XML (for Dublin Core records), or as Form.
  5. [アクセスレベル]で、ルールをプライベートとして作成するか共有として作成するかを指定します。This determines in which folder the indication rule is saved.(プロパティを変更して)共有フォルダーに移動する前に、表示ルールをプライベートフォルダーに保存し、最初にテストすることをお勧めします。Private indication rules cannot be used in the "Filter Set" functionality invoked from the Manage Sets page.コミュニティフォルダーには、コピーすることで独自の表示ルールを作成できる表示ルールがあります。
  6. [レコードタイプ]に基づいて、ルールを使用して書誌レコード、権限レコード、または保有レコードのセットを作成するかどうかを選択します。
  7. [フォーマット]で、セットのタイプのレジストリを選択します。使用可能なオプションはシステムでアクティブなフォーマットによって決まります。
  8. Select Save in the dialog.The MD Editor editing pane opens.
  9. In the right-hand panel of the Metadata Editor, configure your rule as per the Configuring the Indication Rules section below.
  10. 保存を選択します。

Configuring the Indication Rules

フォームベースの表示ルールを作成すると、その条件を構成できるパネルが開きます。An indication rule can be composed of one or more conditions.MDE indication rule fields breakdown.png

手動またはシステムサポートによる表示ルールの作成

次のいずれかの方法で表示ルールを作成できます。

  • クエリが実行されるフィールドの情報を手動で入力します。
  • Using pop-up assistance to help you select the desired field.The pop-up assistance derives its information from the metadata profile defined in your system (see Configuring Cataloging)
情報を手動で入力するには: ポップアップサポートを使用するには:
  1. In the first field of the condition, type in the desired field tag.Alma automatically fills in placeholders for the required number of indicators, positions, and sub-fields, in the form of asterisks (*).形式はフィールドごとに異なります。
  2. Manually replace the asterisks with the desired indicators, positions and sub-fields.For example:filling in form based fields manually.png
  1. In the first field of the condition, click the arrow to the right of the field.
  2. 開いたドロップダウンに、タグまたは名前についての説明の一部または全部を入力します。
  3. A pop-up opens that suggests the fields that match the information you entered (the matching is done using the relevant profile for the rule according to its format and registry).Select the desired field.working_with_popup_assistanc.png
  4. [完了]を選択します。

フォームベースの表示ルールのフィールドの定義

For the different types of fields, different rule syntax is displayed.

表示ルールのフィールドを定義するには:
  1. 条件で、フィールドを次のように定義します。
    フィールドタイプこのタイプの入力フィールド
    Control fields 001 / 003 / 005 / 009
    制御フィールド001/003/005/009を入力するには:
    1. Type in (or select using the pop-up assistance) the field's tag.
    2. 必要な比較基準を選択します。
    3. フリーテキストを入力します。

      input_simple_fields.png

    All other control fields
    他の制御フィールドを入力するには:
    1. Type in (or select using the pop-up assistance) the field's tag.
    2. If you are inputting the LDR, 006, 007, or 008 field, from the "Positions" dropdown, select the relevant position and select Done.MDE indication rule 008 field wizard.png

      The indication rules for the 007 field require two conditions, one for the "Category of material" and another for the "Specific material designation."

      表示ルールの例。

    3. 必要な比較基準を選択します。
    4. フリーテキストを入力します。
    Data fields —  including fields that are not in the metadata profile (e.g. fields defined locally)
    To input a data field:
    1. Type in (or select using the pop-up assistance) the field's tag.
    2. 目的のインジケーターとサブフィールドを選択し、[完了]を選択します。
    3. 必要な比較基準を選択します。
    4. フリーテキストを入力します。

      inputting data fields.png

    • If you do not specify any value for an indicator/subfield in the condition, this is displayed as * and is interpreted by Alma as any value.
    • To indicate an empty (undefined) value for indicators (in the fields that allow it), type in the # value.
    • When you enter text in the Value field, Alma does not attempt to validate the text.This enables you to choose a non-valid value for data correction purposes.
  2. To add more conditions, or groups of conditions,Working with Indication Rules see below.
  3. Select Save on the toolbar to save the indication rule.

Testing a Form-Based Indication Rule

Prior to running a job to filter a set using an indication rule, it may be a good idea to validate that your rule may works as desired; and if it does not, to edit it some more.ルール全体をテストしたり、ルール内の条件の1つのグループのみをテストしたりすることができます。

表示ルールをテストするには:
  • Once you have created and saved your rule, clicktest profile icon.pngabove the rule.Depending on the results, a pop-up appears with either a True or False response, indicating that the bibliographic record either met or did not meet the logic specified in the indication rule.

    New indication rule testing.png

    フォームベース表示ルールの操作

    オプション 説明
    ルールに条件を追加するには
    • Selectplus sign.pngabove the condition to add another condition.
    • Selectcopy icon.pngto the right of the condition and duplicate this condition ; then edit the new condition as necessary.
    ルールに条件のグループを追加するにはWhen creating an indication rule, you can either add individual conditions or create groups of conditions.Select plus group sign.png above the condition lines and add as many conditions as necessary.

    However, not that you can only add up to 3 nested levels of conditions in the form-based rules.

    opening a group of fields in indication rule.png

    To change the relationship between groups of conditions

    Baseline conditions default to an AND relationship, meaning that each condition must be true to retrieve the bibliographic record.When adding a group of conditions, you can change the relationship within the group to OR.In this case, the bibliographic record will be retrieved when either of these conditions is true.

    ルールに含めたフィールドのみがレコードの取得に使用されることに注意してください。Fields that you did not include in the rule do not affect the retrieval, meaning that records with any values in these fields will be retrieved.

    Click on any Boolean operator between the conditions.ANDとORのフラグがリストの一番上に表示されます。Click a flag to select this type of relationship.To stop displaying these flags, click again on the Boolean operator.changing the type of relationship between groups.png

    While it is permissible to include multiple Boolean Operators in an indication rule, when many of Boolean operators are selected, slower performance is likely to result.したがって、ブール演算子は各ルールあたり200個以下に収める必要があります。

    条件を削除する方法Select the X right of the condition to remove it from the rule.