# You must use a tab-size of 4 spaces to edit this file.
---
zenario__content:
    panels:
        content:
            collection_buttons:
                zenario_ctype_document__create_multiple:
                    ord: 2
                    priv: _PRIV_EDIT_DRAFT
                    # For limited admins: if the create button is not enabled, don't enable
                    # the create-multiple button either
                    visible_if: |
                        !zenarioA.adminHasSpecificPerms
                        || zenarioO.tuix.collection_buttons.create
                    css_class: zenario_create_a_new
                    hide_on_filter: true
                    hide_on_refiner: find_duplicates
                    label: Quick create
                    upload:
                        multi: true
                        drag_and_drop: true
                        request:
                            create_multiple: 1
            item_buttons:
                zenario_ctype_document__rescan_extract:
                    priv: _PRIV_EDIT_DRAFT
                    visible_if_for_all_selected_items: |
                        item.type == 'document' &&
                        zenarioA.checkSpecificPerms(id)
                    parent: action_dropdown
                    label: Rescan text/image extract
                    multiple_select: true
                    ajax:
                        confirm:
                            message: |
                                Rescan and update the text extract for the document "[[tag]]"?
                                
                                This action will read the contents of PDF and Microsoft Word documents
                                (subject to external server programs being available).
                                
                                If the file is a PDF, an image of the first page will be extracted and attached as a featured image.
                            multiple_select_message: |
                                Rescan and update the text extracts for the selected documents?
                                
                                This action will read the contents of PDF and Microsoft Word documents
                                (subject to external server programs being available).
                                
                                If the files are PDFs, an image of the first page will be extracted and attached as a featured image.
                            button_message: Rescan text extract
                            cancel_button_message: Cancel
                            message_type: warning
                        request:
                            rescan_extract: 1
