Skip to content

Commit

Permalink
Replace SimilarItemsCarousel tab with Channels tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 27, 2025
1 parent e186d90 commit ddb71cd
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 463 deletions.
12 changes: 4 additions & 8 deletions config/vufind/RecordTabs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ tabs[HierarchyTree] = HierarchyTree
;tabs[CollectionHierarchyTree] = CollectionHierarchyTree
tabs[Map] = Map
tabs[Versions] = Versions
tabs[Similar] = SimilarItemsCarousel
;tabs[Channels] = Channels
tabs[Channels] = Channels
tabs[Details] = StaffViewArray
defaultTab = null
;backgroundLoadedTabs[] = UserComments
Expand All @@ -86,8 +85,7 @@ tabs[HierarchyTree] = HierarchyTree
;tabs[CollectionHierarchyTree] = CollectionHierarchyTree
tabs[Map] = Map
tabs[Versions] = Versions
tabs[Similar] = SimilarItemsCarousel
;tabs[Channels] = Channels
tabs[Channels] = Channels
tabs[Details] = StaffViewArray
defaultTab = null
;backgroundLoadedTabs[] = UserComments
Expand All @@ -107,8 +105,7 @@ tabs[Preview] = preview
tabs[HierarchyTree] = HierarchyTree
tabs[Map] = Map
tabs[Versions] = Versions
tabs[Similar] = SimilarItemsCarousel
;tabs[Channels] = Channels
tabs[Channels] = Channels
tabs[Details] = StaffViewMARC
defaultTab = null

Expand All @@ -122,8 +119,7 @@ tabs[Excerpt] = Excerpt
tabs[Preview] = preview
tabs[HierarchyTree] = HierarchyTree
tabs[Versions] = Versions
tabs[Similar] = SimilarItemsCarousel
;tabs[Channels] = Channels
tabs[Channels] = Channels
tabs[Details] = StaffViewOverdrive
defaultTab = null

Expand Down
4 changes: 2 additions & 2 deletions config/vufind/channels.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cache_home_channels = true
; This section controls behavior of the Channels record tab.
[RecordTab]
; What text should display in the tab itself?
label = "Channels"
label = "Similar Items"

; This section controls which providers are used for Solr searches/records.
; Providers may be followed by a colon and the name of a configuration section
Expand Down Expand Up @@ -71,7 +71,7 @@ record[] = "facets"
;record[] = "alphabrowse"
; Providers to use in the Channels tab on the record page when it is enabled.
; The code will fall back to record settings above if recordTab is empty/omitted.
;recordTab[] = "similaritems"
recordTab[] = "similaritems"
;recordTab[] = "facets"
;recordTab[] = "alphabrowse"
; Providers to use for search-based channels (order matters!)
Expand Down
5 changes: 3 additions & 2 deletions module/VuFind/src/VuFind/RecordTab/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager
'preview' => Preview::class,
'reviews' => Reviews::class,
'search2collectionlist' => Search2CollectionList::class,
'similaritemscarousel' => SimilarItemsCarousel::class,
'staffviewarray' => StaffViewArray::class,
'staffviewmarc' => StaffViewMARC::class,
'staffviewoverdrive' => StaffViewOverdrive::class,
'toc' => TOC::class,
'usercomments' => UserComments::class,
'versions' => Versions::class,
// Legacy backward compatibility:
'similaritemscarousel' => Channels::class,
SimilarItemsCarousel::class => Channels::class,

Check failure on line 73 in module/VuFind/src/VuFind/RecordTab/PluginManager.php

View workflow job for this annotation

GitHub Actions / Tests with PHP 8.1

Class VuFind\RecordTab\SimilarItemsCarousel not found.

Check failure on line 73 in module/VuFind/src/VuFind/RecordTab/PluginManager.php

View workflow job for this annotation

GitHub Actions / Tests with PHP 8.2

Class VuFind\RecordTab\SimilarItemsCarousel not found.

Check failure on line 73 in module/VuFind/src/VuFind/RecordTab/PluginManager.php

View workflow job for this annotation

GitHub Actions / Tests with PHP 8.3

Class VuFind\RecordTab\SimilarItemsCarousel not found.
];

/**
Expand All @@ -92,7 +94,6 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager
Preview::class => PreviewFactory::class,
Reviews::class => ReviewsFactory::class,
Search2CollectionList::class => CollectionListFactory::class,
SimilarItemsCarousel::class => SimilarItemsCarouselFactory::class,
StaffViewArray::class => InvokableFactory::class,
StaffViewMARC::class => InvokableFactory::class,
StaffViewOverdrive::class => InvokableFactory::class,
Expand Down
108 changes: 0 additions & 108 deletions module/VuFind/src/VuFind/RecordTab/SimilarItemsCarousel.php

This file was deleted.

78 changes: 0 additions & 78 deletions module/VuFind/src/VuFind/RecordTab/SimilarItemsCarouselFactory.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit ddb71cd

Please sign in to comment.