diff --git a/app/models/document.rb b/app/models/document.rb index e8a2ffa..0cf8f6a 100644 --- a/app/models/document.rb +++ b/app/models/document.rb @@ -17,7 +17,7 @@ class Document < ApplicationRecord after_create :set_actor_type # Resourceable parameters - allow_params :visual_context_id, :name, :notes, :sewing_supports_visible, :number_sewing_supports, :number_fastenings, + allow_params :visual_context_id, :name, :notes, :number_sewing_supports, :number_fastenings, :inscriptions_on_binding, :inscription_text, :endband_present, :uncut_fore_edges, :fore_edge_text, :bookmarks_registers, :text_columns, :ruling, :rubrication, :identity, :transcription, :transcription_expanded, :transcription_translation, :artwork_id, actions_attributes: [:id, :notes, :_destroy, diff --git a/app/models/search/document.rb b/app/models/search/document.rb index 9bfa766..3d07411 100644 --- a/app/models/search/document.rb +++ b/app/models/search/document.rb @@ -53,7 +53,6 @@ def published search_attribute :aperture, object: 'Document', group: 'Aperture', facet: true search_attribute :binding_type, object: 'Document', group: 'Binding Type', multiple: true, facet: true search_attribute :binding_color, object: 'Document', group: 'Color', form_field: 'binding_color', multiple: true, facet: true - search_attribute :sewing_supports_visible, facet: true search_attribute :number_sewing_supports, facet: true search_attribute :spine_features, object: 'Document', group: 'Spine Features', multiple: true, facet: true search_attribute :furniture, object: 'Document', group: 'Furniture', multiple: true, facet: true diff --git a/app/serializers/documents_serializer.rb b/app/serializers/documents_serializer.rb index 2f484da..c442026 100644 --- a/app/serializers/documents_serializer.rb +++ b/app/serializers/documents_serializer.rb @@ -5,10 +5,10 @@ class DocumentsSerializer < BaseSerializer index_attributes :id, :name - show_attributes :id, :name, :visual_context_id, :notes, :sewing_supports_visible, :number_sewing_supports, - :number_fastenings, :inscriptions_on_binding, :inscription_text, :endband_present, - :uncut_fore_edges, :fore_edge_text, :bookmarks_registers, :text_columns, :ruling, :rubrication, - :transcription, :transcription_expanded, :transcription_translation, :identity, + show_attributes :id, :name, :visual_context_id, :notes, :number_sewing_supports, :number_fastenings, + :inscriptions_on_binding, :inscription_text, :endband_present, :uncut_fore_edges, :fore_edge_text, + :bookmarks_registers, :text_columns, :ruling, :rubrication, :transcription, :transcription_expanded, + :transcription_translation, :identity, qualifications: QualificationsSerializer, actions: [:id, :document_id, :notes, qualifications: QualificationsSerializer] diff --git a/client/package.json b/client/package.json index 684cc53..4780d68 100644 --- a/client/package.json +++ b/client/package.json @@ -6,8 +6,8 @@ "dependencies": { "@babel/eslint-parser": "^7.21.3", "@babel/runtime": "^7.22.3", - "@performant-software/semantic-components": "^2.2.17-beta.0", - "@performant-software/shared-components": "^2.2.17-beta.0", + "@performant-software/semantic-components": "^2.2.17-beta.2", + "@performant-software/shared-components": "^2.2.17-beta.2", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", diff --git a/client/src/components/SearchFacets.js b/client/src/components/SearchFacets.js index e478b31..68c7054 100644 --- a/client/src/components/SearchFacets.js +++ b/client/src/components/SearchFacets.js @@ -299,13 +299,6 @@ const SearchFacets = (props: any) => { toggleable useRefinementList={useRefinementList} /> - { object: 'Document', group: 'Binding Color' } - }, { - name: 'sewing_supports_visible', - label: t('Document.labels.sewingSupportsVisible'), - renderValue: () => }, { name: 'number_sewing_supports', label: t('Document.labels.numberSewingSupports') diff --git a/client/src/pages/admin/Document.js b/client/src/pages/admin/Document.js index da361af..5ab45e0 100644 --- a/client/src/pages/admin/Document.js +++ b/client/src/pages/admin/Document.js @@ -188,24 +188,18 @@ const Document = (props: Props) => { multiple object='Document' /> - { >