中繼資料結構描述 metadata-schemas
Organizations come up with a metadata model that enhances the asset discovery, usage, interoperability, and so on. Correct metadata application is sacrosanct to maintain metadata-driven workflows and processes. To adhere to organization-wide metadata strategy and standards, you can use metadata schemas that help DAM users to align. Adobe Experience Manager allows easy and flexible methods to create, maintain, and apply metadata schemas.
In Adobe Experience Manager Assets, schemas contain specific fields for specific information to be filled in. It also contains layout information to display metadata fields in a user-friendly way. Metadata properties include title, description, MIME types, tags, and more. You can use the Metadata Schema Forms editor to modify the existing schemas or add custom metadata schemas.
To view and edit the properties page for an asset, follow these steps:
-
Click the View Properties option from the quick actions on the asset tile in card view. Alternatively, select an asset and then click Properties
from the toolbar.
-
You can edit the various editable metadata properties under the available tabs. However, you cannot modify the asset Type in the Basic tab of properties page.
Figure: Basic tab on asset Properties.
Ensure that only one property is mapped to a field while you create or edit the metadata schema.
To modify the MIME type for an asset, use a custom metadata schema form or modify an existing form. See Edit Metadata Schema Forms for more information. If you modify the metadata schema of a MIME type, the properties page layout for the assets and all subtypes are modified. For example, modifying a jpeg schema under
default/imageonly modifies the metadata layout (asset properties) for assets with MIME typeimage/jpeg. However, if you edit the default schema, your changes modify the metadata layout for all types of assets.
中繼資料結構表單 default-metadata-schema-forms
若要檢視表單或範本清單,請在Experience Manager介面中導覽至工具 > Assets > 中繼資料結構描述。
Experience Manager提供下列中繼資料結構表單範本。
- dm_video
- 影像
具有MIME型別(例如image/jpeg和image/png)之影像的結構描述表單。
影像表單有下列子表單範本:
- jpeg:子型別為jpeg之資產的結構描述表單。
- tiff:具有子型別TIFF之資產的結構描述表單。
- 應用程式
application/pdf和application/zip)之資產的結構描述表單。pdf:具有子型別PDF之資產的結構描述表單。
- 影片
video/avi和video/mp4)之視訊資產的結構描述表單。Add a metadata schema form add-a-metadata-schema-form
To add a metadata schema form, follow these steps:
-
To add a custom template to the list, click Create from the toolbar.
note note NOTE A lock symbol is displayed with the unedited templates. If you customize a template, it is not locked . -
In the dialog, provide the title of the schema form and click Create to complete the form creation process.
Edit metadata schema forms edit-metadata-schema-forms
You can edit a newly added or existing metadata schema form. The metadata schema form includes tabs and form items within tabs. 您可以將這些表單專案對應/設定至CRX存放庫中繼資料節點內的欄位。 You can add tabs or form items to the metadata schema form. The tabs and form items derived from the parent are in the locked state. You cannot alter them at the child level.
-
On the Metadata Schema Forms page, select a form and click Edit in the toolbar.
-
On the Metadata Schema Form Editor page, customize the metadata form. Drag the needed components from the Build Form tab to one of the tabs.
-
若要設定元件,請選取該元件,並在 設定 索引標籤中修改其屬性。
Components within the Build Form tab components-within-the-build-form-tab
The Build Form tab lists form items that you use in your schema form. The Settings tab provides the attributes of each item that you select in the Build Form tab. The following table lists the form items available in the Build Form tab:
編輯中繼資料元件 edit-the-metadata-component
若要編輯表單上中繼資料元件的屬性,請按一下該元件,以在 設定 索引標籤中編輯下列所有屬性或屬性子集。 建議僅將一個欄位對應到中繼資料結構描述中的指定屬性。 否則,系統會挑選對應至屬性的最新新增欄位。
欄位標籤:在資產的屬性頁面上顯示的中繼資料屬性名稱。
對應至屬性:此屬性會指定資產節點的相對路徑或名稱,此資產節點會儲存在CRX存放庫中。 它以./開頭,表示路徑在資產的節點下。
以下是屬性的有效值範例:
-
./jcr:content/metadata/dc:title:將值儲存在資產的中繼資料節點,做為屬性dc:title。 -
./jcr:created:儲存資產的建立日期和時間。 這是受保護的屬性。 如果您設定這些屬性,Adobe建議您將其標示為「停用編輯」。 否則,當您儲存資產的屬性時,會出現「資產無法修改」錯誤。
為確保元件在中繼資料結構表單中正確顯示,屬性路徑不應包含任何空格。
- 預留位置:使用此屬性來指定與中繼資料屬性相關的預留位置文字。
- 必要:使用此屬性,在屬性頁面上將中繼資料屬性標示為必要。
- 停用編輯:使用此屬性可禁止對屬性頁面上的屬性進行任何編輯。
- 以唯讀方式顯示空白欄位:標示此屬性,以在屬性頁面上顯示中繼資料屬性(即使它沒有值)。 根據預設,當中繼資料屬性沒有值時,它不會列在屬性頁面上。
- 顯示排序清單:使用此屬性顯示排序的選項清單。
- 選擇:使用此屬性指定清單中的選擇。
- 描述 :使用此屬性為中繼資料元件新增簡短描述。
- 類別:與屬性關聯的物件類別。
- 刪除:按一下刪除,從結構表單中刪除元件。
如果您選取「必 要 」選項,可以搜尋遺失必要中繼資料的資產。 從「篩 選器 」面板中,展開「中繼資料 驗證謂語 」並選取「 無效 」選項。 搜尋結果會顯示遺失您透過結構表單設定之必要中繼資料的資產。
在篩選器面板的中繼資料驗證述詞中選取
如果您將「關聯式中繼資料」元件新增至任何結構描述表單的任何索引標籤中,該元件會在套用特定結構描述的資產屬性頁面中顯示為清單。 此清單包含所有其他標籤,除了您套用內容中繼資料元件的標籤以外。 目前,此功能提供基本功能,可根據內容控制中繼資料的顯示。
除了顯示套用內容中繼資料元件的索引標籤之外,若要在屬性頁面中顯示任何索引標籤,請從清單中選取索引標籤。 標籤會新增至屬性頁面。
圖:資產屬性頁面中的內容中繼資料。
指定JSON檔案中的屬性 specify-properties-in-json-file
您不必在「設定」標籤中指定選項的屬 性 ,而是可以透過指定對應的索引鍵值配對,來定義JSON檔案中的選項。 在「 JSON路徑」欄位中指定JSON檔案的 路徑。
在結構表單中新增或刪除索引標籤 adding-deleting-a-tab-in-the-schema-form
結構描述編輯器可讓您新增或刪除標籤。 預設結構描述表單包含Basic、Advanced、IPTC和 IPTC擴充功能 標籤。
按一下+在結構表單上新增索引標籤。 依預設,新索引標籤的名稱為Unnamed-1。 您可以從 設定 標籤修改名稱。 按一下X以刪除索引標籤。
階層式中繼資料 cascading-metadata
擷取資產的中繼資料資訊時,使用者會在各種可用欄位中提供資訊。 您可以根據在其他欄位中選取的選項,顯示特定的中繼資料欄位或欄位值。 這類條件式顯示中繼資料稱為階層式中繼資料。 換言之,您可以在特定中繼資料欄位/值與一或多個欄位及/或其值之間建立相依性。
使用中繼資料結構描述來定義顯示階層式中繼資料的規則。 例如,如果您的中繼資料結構描述包含資產型別欄位,您可以根據使用者選取的資產型別定義要顯示的相關欄位集。
以下是您可以定義階層式中繼資料的一些使用案例:
- 需要使用者位置時,根據使用者對國家/地區和州的選擇顯示相關城市名稱。
- 根據使用者選擇的產品類別,在清單中載入相關品牌名稱。
- 根據在另一個欄位中指定的值切換特定欄位的可見度。 例如,如果使用者希望以不同的地址運送出貨,則顯示個別的出貨位址列位。
- Designate a field as mandatory based on the value specified in another field.
- Change options displayed for a particular field based on the value specified in another field.
- Set the default metadata value in a particular field based on the value specified in another field.
Configure cascading metadata in Experience Manager configure-cascading-metadata-in-aem
Consider a scenario where you want to display cascading metadata based on the type of asset that is selected. Some examples
- For a video, display applicable fields such as format, codec, duration, and so on.
- For a Word or PDF document, display fields, such as page count, author, and so on.
Irrespective of the asset type chosen, display the copyright information as a required field.
-
In Experience Manager interface, go to Tools > Assets > Metadata Schemas.
-
In the Schema Forms page, select a schema form and then click Edit from the toolbar to edit the schema.
-
(Optional) In the metadata schema editor, create a field to conditionalize. Specify a name and property path in the Settings tab.
To create a tab, click
+to add a tab and then add a metadata field.
-
Add a Dropdown field for asset type. Specify a name and property path in the Settings tab. Add an optional description.
-
Key-values pairs are the options provided to a form-user. You can provide the key-value pairs either manually or from a JSON file.
-
To specify the values manually, select Add Manually, and click Add Choice and specify the option text and value. For example, specify Video, PDF, Word, and Image asset types.
-
To fetch the values from a JSON file dynamically, select Add Through JSON Path and provide the path of the JSON file. 當表單呈現給使用者時,Experience Manager會即時擷取機碼值組。
這兩個選項是互斥的。 您無法從JSON檔案匯入選項並手動編輯。
note note NOTE 新增JSON檔案時,索引鍵/值組不會顯示在中繼資料結構編輯器中,但會顯示在已發佈的表單中。 note note NOTE 新增選項時,如果按一下「下拉式」欄位,介面會扭曲,且選項的刪除選項會停止運作。 在儲存變更之前,請勿按下拉式清單。 如果您遇到此問題,請儲存結構並再次開啟以繼續編輯。 -
-
(選用)新增其他必要欄位。 例如,資產型別視訊的格式、轉碼器和持續時間。
同樣地,為其他資產型別新增相依欄位。 例如,為檔案資產(例如PDF和Word檔案)新增頁面計數和作者欄位。
-
若要在資產型別欄位與其他欄位之間建立相依性,請選擇相依欄位並開啟 規則 標籤。
-
在 需求 底下,根據新規則 選項選擇 必要。
-
按一下 新增規則 並選擇 資產型別 欄位以建立相依性。 也選擇要在其上建立相關性的欄位值。 在這種情況下,請選擇「 視訊」。 按一下「完成」以儲存變更。
note note NOTE 具有手動預先定義值的下拉式清單可與規則搭配使用。 已設定JSON路徑的下拉式功能表,無法搭配使用預先定義值來套用條件的規則使用。 如果值是在執行階段從JSON載入,則無法套用預先定義的規則。 -
在「可 見性」下,選擇「可 見」,根據新規則選項 。
-
按一下 新增規則 並選擇 資產型別 欄位以建立相依性。 也選擇要在其上建立相關性的欄位值。 在這種情況下,請選擇「 視訊」。 按一下「完成」以儲存變更。
note note NOTE 按一下空格(或值以外的任何位置)會重設值。 如果發生此情況,請重新選取值。 note note NOTE 您可以套用 「需求 」條件 和「可見性 」條件,它們彼此獨立。 -
同樣地,在「資產型別」欄位中的「視訊」值與其他欄位(例如「轉碼器」和「持續時間」)之間建立相依性。
-
重複這些步驟,在資產型別欄位和頁面計數和作者等欄位中,建立檔案資產(PDF和Word)之間的相依性。
-
按一下「儲存」。 將中繼資料結構套用至資料夾。
-
導覽至您套用中繼資料結構的資料夾,並開啟資產的屬性頁面。 視您在「資產型別」欄位中的選擇而定,會顯示相關的階層式中繼資料欄位。
圖:視訊的階層式中繼資料。
的階層式中繼資料
圖:檔案的階層式中繼資料。
刪除中繼資料結構表單 delete-metadata-schema-forms
Experience Manager僅可讓您刪除自訂結構描述表單。 它不允許您刪除預設的結構表單/範本。 不過,您可以刪除這些表單中的任何自訂變更。
若要刪除表單,請選取表單並按一下刪除。
- 刪除預設表單的自訂變更後,鎖定
會重新出現在表單前。 這表示表單已恢復為預設狀態。 - 您無法刪除Assets中的預設中繼資料結構表單。
MIME型別的結構表單 schema-forms-for-mime-types
Experience Manager為各種現成的MIME型別提供預設表單。 不過,您可以為各種MIME型別的資產新增自訂表單。
為MIME型別新增表單 add-new-forms-for-mime-types
在適當的表單型別下建立表單。 例如,若要為image/png子型別新增範本,請在「影像」表單下建立表單。 結構描述表單的標題是子類型名稱。 在此案例中,標題為png。
針對各種MIME型別使用現有結構描述範本 use-an-existing-schema-template-for-various-mime-types
您可以將現有的範本用於不同的MIME型別。 例如,使用MIME型別image/png之資產的image/jpeg表單。
在這種情況下,請在CRX存放庫中的/etc/dam/metadataeditor/mimetypemappings建立節點。 指定節點名稱並定義下列屬性:
exposedmimetypeStringimage/jpegmimetypesexposedmimetype屬性中定義之表單的MIME型別清單Stringimage/pngAssets對應下列MIME型別和結構描述表單:
授予存取中繼資料結構的許可權 grant-access-to-metadata-schemas
「中繼資料結構」功能僅供管理員使用。 但是,管理員可以修改部分許可權,以向非管理員提供存取權。 提供非管理員使用者對/conf資料夾的建立、修改和刪除許可權。
套用資料夾特定的中繼資料 apply-folder-specific-metadata
Assets可讓您定義中繼資料結構的變體,並將其套用至特定資料夾。
例如,您可以定義預設中繼資料結構的變體,並將其套用至資料夾。 當您套用修改後的結構描述時,它會覆寫套用至資料夾內資產的原始預設中繼資料結構描述。
只有上傳到套用此結構的資料夾的資產才符合變體中繼資料結構中定義的修改後中繼資料。 套用原始結構描述的其他資料夾中的Assets會繼續符合原始結構描述中定義的中繼資料。
資產的中繼資料繼承是根據套用至階層中頂層資料夾的結構描述。 子資料夾會套用或繼承相同的結構描述。 如果在子資料夾層級套用不同的結構描述,繼承就會停止。
-
在Experience Manager介面中,瀏覽至工具 > Assets > 中繼資料結構描述。 此時會顯示 「中繼資料結構描述表單」 頁面。
-
選取表單前面的核取方塊(例如,預設中繼資料表單),然後按一下 複製 並儲存為自訂表單。 指定表單的自訂名稱,例如
my_default。 或者,您也可以建立自訂表格。 -
在 中繼資料結構Forms 頁面中,選取
my_default表單,然後按一下編輯。 -
在 中繼資料結構描述編輯器 頁面中,新增文字欄位至結構描述表單。 例如,新增標籤為 Category 的欄位。
圖:文字欄位已新增至中繼資料結構描述表單編輯器。
-
按一下「儲存」。 修改後的表單會列在 中繼資料結構Forms 頁面中。
-
按一下工具列中的「套用至資料夾」,將自訂中繼資料套用至資料夾。
-
選取要套用修改的結構描述的資料夾,然後按一下[套用]。
-
如果資料夾套用了其他中繼資料結構,系統會顯示一則訊息,警告您即將覆寫現有的中繼資料結構。 按一下覆寫。
-
按一下 確定 關閉成功訊息。
-
導覽至您套用修改後中繼資料結構的資料夾。
定義必要的中繼資料 define-mandatory-metadata
您可以在檔案夾層級定義強制欄位,這會強制上傳至檔案夾的資產執行。 如果您上傳缺少先前定義之必要欄位中繼資料的資產,卡片檢視的資產會顯示缺少中繼資料的視覺指示。
-
在Experience Manager介面中,瀏覽至工具 > Assets > 中繼資料結構描述。 此時會顯示 「中繼資料結構描述表單」 頁面。
-
將預設中繼資料表單儲存為自訂表單。 例如,將其儲存為
my_default。 -
編輯自訂表格。 新增必要欄位。 例如,新增 類別 欄位,並讓該欄位成為必要欄位。
圖:中繼資料結構描述表單編輯器中的必要欄位。
-
按一下「儲存」。 修改後的表單會列在 中繼資料結構Forms 頁面中。 選取表單,然後從工具列按一下套用至資料夾,將自訂中繼資料套用至資料夾。
-
導覽至資料夾,然後上傳部分資產,其中遺失您新增至自訂表單之必要欄位的中繼資料。 資產卡片檢視中會顯示訊息,指出必填欄位缺少中繼資料。
-
(選擇性)存取
https://[aem_server]:[port]/system/console/components/。 設定並啟用預設為停用的com.day.cq.dam.core.impl.MissingMetadataNotificationJob元件。 設定Experience Manager檢查資產中繼資料有效性的頻率。 此設定會將屬性hasValidMetadata新增至資產的jcr:content。 Experience Manager使用此屬性來篩選搜尋結果中的無效資產。 如果您在檢查後新增資產,則在下次排程檢查前,資產不會以hasValidMetadata標籤。 因此,直到下一次排程檢查後,資產才會出現在無效中繼資料的搜尋篩選條件中。note caution CAUTION 中繼資料驗證檢查需要大量資源,可能會影響系統效能。 相應地排程檢查。 如果伺服器無法應付負載,請嘗試停用此工作。