Skip to content

Commit

Permalink
Fix attributes displayed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
imadbourouche committed Feb 22, 2025
1 parent b5878d6 commit 3c12ea5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/models/mod/semantic_artefact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class SemanticArtefact < LinkedData::Models::Base
# Access control
read_restriction_based_on ->(artefct) { artefct.ontology }

serialize_default :acronym, :accessRights, :subject, :URI, :versionIRI, :creator, :identifier, :status, :language,
serialize_default :acronym, :title, :accessRights, :subject, :URI, :versionIRI, :creator, :identifier, :status, :language,
:license, :rightsHolder, :description, :landingPage, :keyword, :bibliographicCitation, :contactPoint,
:contributor, :publisher, :coverage, :createdWith, :accrualMethod, :accrualPeriodicity,
:competencyQuestion, :wasGeneratedBy, :hasFormat, :includedInDataCatalog, :semanticArtefactRelation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ class SemanticArtefactCatalog < LinkedData::Models::Base
define_method(handler) { calculate_attr_from_metrics(mapped_to) }
end

serialize_default :acronym, :title, :color, :description, :logo, :fundedBy, :versionInfo, :homepage, :federated_portals
serialize_default :acronym, :title, :identifier, :status, :language, :type, :accessRights, :license, :rightsHolder, :description,
:landingPage, :keyword, :bibliographicCitation, :created, :modified , :contactPoint, :creator, :contributor,
:publisher, :subject, :coverage, :createdWith, :accrualMethod, :accrualPeriodicity, :wasGeneratedBy, :accessURL

def ontologies_count
LinkedData::Models::Ontology.where(viewingRestriction: 'public').count
Expand Down

0 comments on commit 3c12ea5

Please sign in to comment.