Skip to content

Commit

Permalink
Merge pull request #4286 from tulibraries/more-resource-types
Browse files Browse the repository at this point in the history
Update resource type icons and labels for articles (part 2)
  • Loading branch information
ebtoner committed Mar 8, 2024
2 parents 0385b9e + 29aa3f1 commit 9c8fc58
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
22 changes: 21 additions & 1 deletion app/assets/stylesheets/icons.css.erb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ span.text_resource,
span.technical_report,
span.government_document,
span.patent,
span.preprint,
span.review_article,
span.microform,
span.publication_corrigendum,
span.legal_document,
a.facet_newsletterarticle,
a.facet_newsletterarticles,
Expand All @@ -96,6 +100,13 @@ a.facet_government_document,
a.facet_government_documents,
a.facet_patents,
a.facet_patent,
a.facet_preprint,
a.facet_preprints,
a.facet_review_article,
a.facet_review_articles,
a.facet_microform,
a.facet_publication_corrigendums,
a.facet_publication_corrigendum,
a.facet_legal_documents,
a.facet_legal_document
{
Expand All @@ -107,9 +118,12 @@ a.facet_legal_document
background: transparent url(<%= asset_path "noun_article_crystalblue.svg" %>) no-repeat center left;
}
}
span.magazinearticle,
span.journal_article,
span.journal_periodical,
span.journal,
a.facet_magazinearticle,
a.facet_magazinearticles,
a.facet_journal_periodical,
a.facet_journals,
a.facet_articles
Expand Down Expand Up @@ -345,8 +359,14 @@ span.reference,

span.unknown,
span.other,
span.retracted_publication,
span.retraction_notice,
a.facet_unknown,
a.facet_other {
a.facet_other,
a.facet_retracted_publication,
a.facet_retracted_publications,
a.facet_retraction_notice,
a.facet_retraction_notices {
background: transparent url(<%= asset_path "noun_question_mark.svg" %>) no-repeat center left;
padding-left: 1.9rem;
padding-top: .25rem;
Expand Down
3 changes: 3 additions & 0 deletions app/helpers/catalog_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,20 @@ def default_cover_image(document)
"journal" => "journal_periodical",
"journal_article" => "journal_periodical",
"legal_document" => "legal",
"magazinearticle" => "journal_periodical",
"market_research" => "dataset",
"microform" => "legal",
"newsletterarticle" => "legal",
"newspaper" => "legal",
"newspaper_article" => "legal",
"other" => "unknown",
"patent" => "legal",
"preprint" => "legal",
"reference_entry" => "legal",
"report" => "legal",
"research_dataset" => "dataset",
"review" => "legal",
"review_article" => "legal",
"standard" => "legal",
"statistical_data_set" => "dataset",
"technical_report" => "legal",
Expand Down
6 changes: 6 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,18 @@ en:
other: "Other"
patents: "Patent"
patent: "Patent"
preprints: "Preprint"
preprint: "Preprint"
publication_corrigendums: "Publication Corrigendum"
publication_corrigendum: "Publication Corrigendum"
reference_entrys: "Reference Entry"
reference_entry: "Reference Entry"
research_datasets: "Research Dataset"
research_dataset: "Research Dataset"
retracted_publications: "Retracted Publication"
retracted_publication: "Retracted Publication"
retraction_notices: "Retraction Notice"
retraction_notice: "Retraction Notice"
report: "Report"
reports: "Report"
reviews: "Review"
Expand Down

0 comments on commit 9c8fc58

Please sign in to comment.