Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

New features for UITPAS, Pages, Search_UI and split off lib in culturefeed-php

Choose a tag to compare

@svenhoutmeyers svenhoutmeyers released this 29 Oct 10:04

Important changes on cultuurnet PHP libraries

From this version on we use stable versions of the libraries. And the Culturefeed and OAuth PHP libraries which were still included in the lib folder of the Drupal module were moved outside (to https://github.com/cultuurnet/culturefeed-php). They need to be installed from now on with Composer as well. To adopt these changes please change the required packages and minimum-stability value in your composer.json to this (or add and change the used versions) and run composer update afterwards.

    "require": {
      "cultuurnet/search": "~1.0",
      "cultuurnet/cdb": "~2.0",
      "cultuurnet/culturefeed-php": "~1.0"
    },
    "minimum-stability": "stable"

Certainly pay special attention to the "minimum-stability" value. We strongly recommend you to set this to "stable".

BC break on sorting options

The sorting options (and default setting) of hook_culturefeed_search_page_info() has been changed.
Before:

'sort_default' => 'date',
'sort_options' => array(
  'relevancy' => t('Relevance'),
  'date' => t('Date'),
),

Now:

'id' = 'agenda',
'sort_default' => 1, // key for date
'sort_options' => array(
  array(
    'value' => 'relevancy',
    'label' => t('Relevance'),
    'exposed' => TRUE,
    'query' => '',
  ),
  array(
    'value' => 'date',
    'label' => t('Date'),
    'exposed' => TRUE,
    'query' => 'permanent asc,startdateday asc,weight desc',
  ),

New features

culturefeed_agenda

culturefeed_search

culturefeed_search_ui

  • 3a38fb5 extra block settings for culturefeed_search_ui/facet-flandersregion (MSS-7)
    • add multi-level region facets (province > region > city > municipality)
    • add block settings to control start level and display of subitems
    • This will generate new markup. After upgrading the 'Compatibility markup' checkbox on admin/config/culturefeed/search-ui will be activated to make sure nothing breaks. Uncheck this to enable the new features
  • efed748 changed js for consisten autocomplete submit in culturefeed city_facet (UIV-903)
  • 1c6b3e6 theme proximity search form
  • 76135c1, 64dfc36 allow unexposed filters filter form block (WKS-245 extra feature on WKS-182)
  • ee90fe8 add datetype tomorrow (UIV-939)

culturefeed_social

culturefeed_pages

  • dc66b66, d4ed1cd new block (Culturefeed pages: page suggestions) which creates a list with pages based on the user his zip code (or with a form element to fill zipcode for anonymous users). Extra filters can be added in block settings. (WKS-213)

culturefeed_ui

  • 02f64c7, 156afc9, a9e0c55 adding cookie notification (CF-352)
    • enable it on /admin/config/culturefeed/culturefeed_ui
    • add path to the page with cookie information

culturefeed_uitpas

culturefeed tracking

extra things on lib library

  • ef77e33, d7ff180 introduce classes for checkin constraint reason and buy… (MSS-59)
  • 814a5f4 ajax error related activities (WKS-241)

Bugfixes

adding translations and other related stuff

culturefeed_agenda

  • d9cbdcc always show agenda/search in breadcrumb (UPS-1345)
  • de8a5e6 skip check_plain for page title (CF-359)
  • 2a5408a, 8e2f040 fix bug that made it impossible to reset category filter (WKS-248)

culturefeed_social

  • 8c2e595 delete visible news items for everyone
  • 015e7b0 theme facebook privacy toggle

culturefeed_pages

  • cb2771f change translatable strings
  • 0197023 fix quote sign in description (copy/paste causing invalid filter)
  • 9a22939 fix duplicate key in page admin menu
  • 02e100b Allow option to give title to show in breadcrumb

culturefeed_uitpas

  • ade3ebf publication period for promotions (UPS-885)
  • 154bcbd, 6a9c794 valid date on promotions (UPS-142)
  • 0afc22b added stock variable in for promotion detail pages
  • fa68e47 show SMS-field visible for Aalst (UPS-1275)

culturefeed_messages

  • 545c35c extra module_exists check in messages (MSS-1)
  • 071db1d fix fatal error when no recipientPage + make sure thread also has a default

other small bugfixes

  • 38e03bd fix notice when not logged in
  • 9f4f038 replace dashes with underscores before cdbid (for easier regex) (MSS-12)
  • 9d3a2ce, 8bcac80, 3756b3b, bbef70a active filters not correct after use filter-form (MSS-62)
  • 307a18f fix for min_age=0 query
  • 3479757, 440581e actor search in active filters (WKS-243)
  • bacb37e fixing date layout issue on entry_ui
  • 659c07c, 2f15c39 remove 18+ from default age filter
  • 97c72ed only add querystring if it was found
  • 4ae30c2 check if current age is set, otherwise just show the requested age as label
  • f1f3115 make sure no exception occurs when user is not a cf user

adding apache-2.0 license