static function getDefaultFacets($locationId = -1) { global $configArray; $defaultFacets = array(); $facet = new LocationFacetSetting(); $facet->setupTopFacet('format_category', 'Format Category'); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; if ($configArray['Index']['enableDetailedAvailability']) { $facet = new LocationFacetSetting(); $facet->setupTopFacet('availability_toggle', 'Available?', false); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; } if ($configArray['Index']['enableDetailedAvailability']) { $facet = new LocationFacetSetting(); $facet->setupSideFacet('available_at', 'Available Now At', false); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; } $facet = new LocationFacetSetting(); $facet->setupSideFacet('format', 'Format', false); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('literary_form_full', 'Literary Form', false); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('target_audience_full', 'Reading Level', false); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $facet->numEntriesToShowByDefault = 8; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('topic_facet', 'Subject', false); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('time_since_added', 'Added in the Last', false); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('authorStr', 'Author', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('awards_facet', 'Awards', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('econtent_device', 'Compatible Device', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('econtent_source', 'eContent Source', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('econtent_protection_type', 'eContent Protection', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('era', 'Era', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('genre_facet', 'Genre', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('itype', 'Item Type', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('language', 'Language', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('lexile_code', 'Lexile Code', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('lexile_score', 'Lexile Score', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('mpaa_rating', 'Movie Rating', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('institution', 'Owning System', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('building', 'Owning Branch', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('publishDate', 'Publication Date', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupAdvancedFacet('geographic_facet', 'Region', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; $facet = new LocationFacetSetting(); $facet->setupSideFacet('rating_facet', 'User Rating', true); $facet->locationId = $locationId; $facet->weight = count($defaultFacets) + 1; $defaultFacets[] = $facet; return $defaultFacets; }
function getObjectStructure() { return LocationFacetSetting::getObjectStructure(); }