Finish ZHdK specific InstGrp. filtering in Gem

Squashed commit of the following:

commit dd4322b0e950c28eba3aa3ebb2151df6ad70639f
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 11:45:19 2014 +0100

    use normal version of zhdk_integration gem again

commit 67f3be6d8f4bf31170184d35cd1e10c79f19cdef
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 11:30:18 2014 +0100

    clean up test

commit 032d1b0f1e257f152a2de59f2e6ece74679facb2
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 11:29:51 2014 +0100

    Revert "tmp: make the basic test run without zhdk_integration"

    This reverts commit 69f7331193db1292c2336e49e04463d5daee470a.

commit 03e9ac98bc0e835a4a3c5c39f1ca37b7c73c66dc
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 11:04:24 2014 +0100

    fixup "hack for config in cider"

commit 72f23a0874e47dc3f50f696749d7c2a8bfd90af1
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 15:07:15 2014 +0100

    Revert "hack for config in cider"

    This reverts commit 7086346d75c6615984b5e27b9a3e3b5a923d5b76.

commit 69f7331193db1292c2336e49e04463d5daee470a
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 15:06:25 2014 +0100

    tmp: make the basic test run without zhdk_integration

commit 7086346d75c6615984b5e27b9a3e3b5a923d5b76
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 14:49:31 2014 +0100

    hack for config in cider

commit 31c3adc415ed4f48262901e9c7080ea58d11cf79
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 14:31:51 2014 +0100

    try to fix the tests

commit 8beb0b2c44f7192c8dea58b721e3293d64cf6ed9
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 14:16:22 2014 +0100

    mark .to_s as to-be-overwritten

commit 5c15da0d4845c85acb28f490696c2b5929779720
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 14:08:43 2014 +0100

    fix: make it a closed list (only existing entries are allowed)

commit ccecec22cb860824e6cf7f8c4001f2c86301c58c
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 13:31:39 2014 +0100

    (test if test fails #2)

commit cc0fc2f22bb9de25840ee3d9c260cd48b75aa37b
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 13:29:25 2014 +0100

    tmp: use forked zhdk-gem

commit cdbbe85b3a853186c87f860715b24e9467eca78e
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 12:21:59 2014 +0100

    test: add scenario to check if group are filtered if zhdk_integration is on

commit f23d121fecf696415713b9c840a71812f6b4c87c
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 12:21:35 2014 +0100

    test: adjust instgroup test

commit a9edd5a1c5f6a94349fb237458cb501c16879008
Author: Max F. Albrecht <1@178.is>
Date:   Fri Oct 31 12:21:18 2014 +0100

    test: spec_helper_feature_shared: sign_in_as work if zhdk_integration is on

commit 663628b6c35c5390a292f51545c5fbf0097217cb
Author: Max F. Albrecht <1@178.is>
Date:   Thu Oct 30 18:02:30 2014 +0100

    model: institutional groups: always sort list by internal id

commit 02f4634a3f24af2cd238e42d95a8eae39a17109e
Author: Max F. Albrecht <1@178.is>
Date:   Thu Oct 30 17:58:24 2014 +0100

    remove hacky department selection, reimplement with existing extensible list
ui: finish set/entry relations

- adds subviews for parents, siblings, children
- make 'Visualize' button work same as menu entry
- add tests for alle features

Squashed commit of the following:

commit decd248f0296aeb059ee4520f96232509348fdfb
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 17:20:57 2014 +0100

    show 'visualisation' button using same rules as menu entry

commit 0e27c85ec66e69bfdba63437e88cca7a7a287cbd
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 17:10:51 2014 +0100

    remove obsolete template

commit aa14b2043cced71bbf96bfc8d88c12bf47f78e17
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 16:28:13 2014 +0100

    test: entry and set

commit a4425d29801c4cae24914da894768c2856a8cf27
Author: Max F. Albrecht <1@178.is>
Date:   Mon Nov 3 15:21:51 2014 +0100

    add a test

commit 3ca2490516447047b57b0f739cba4277ff539a93
Author: Max F. Albrecht <1@178.is>
Date:   Wed Oct 29 13:08:43 2014 +0100

    fix alignments

commit b07a11064446ae8c182e58919d0b590b50a246f3
Author: Max F. Albrecht <1@178.is>
Date:   Wed Oct 29 13:08:30 2014 +0100

    make sub views work for entries

commit c2ab1a9947eef6dcf8408fe9ba7c5eb8deed9507
Author: Max F. Albrecht <1@178.is>
Date:   Wed Oct 29 13:07:46 2014 +0100

    more dots

commit 8b2b6868f432a447aac436d86251dea8b25d49bb
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 21:51:33 2014 +0100

    type detail view: link to main in header

commit 8feb463fb3acb016f5d2f64f4c0f8e5869b360b2
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 21:40:16 2014 +0100

    set, entries: more padding below container

    so the overlays are not above footer

commit 0ae73001f924cf3c49ae2ff1aad97f4f29da00d6
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 21:39:49 2014 +0100

    detail view for relations by type

commit fc85d958ac237b65bd85db9af9b458243643ce7d
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 20:27:45 2014 +0100

    only show link to all when there are any

commit 09d7ec4a115a87c12d1f103c8f01105f1fd3fa49
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 20:24:50 2014 +0100

    refactor controllers to use simpler data structure

commit 65b2f29d9c25100643f3d24917c44c65208858fe
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 20:23:19 2014 +0100

    make separate templates for types parents, siblings, children

commit c342cd2a9918dc639fb72796da572276febf86b7
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 20:19:15 2014 +0100

    use correct message when content is shown

commit ae15f14b52e1e5ea6c29781423dc1aed58438a36
Author: Max F. Albrecht <1@178.is>
Date:   Tue Oct 28 15:15:50 2014 +0100

    fix: no grey border under 'self' if siblings have scrollbar

commit 4ee8863648031afc28e6a27ce61268de345350f8
Author: Max F. Albrecht <1@178.is>
Date:   Wed Oct 29 12:22:38 2014 +0100

    Revert "ui: relations: temporary disable "Show all" links till the views are ready"

    This reverts commit 2ab587c477b8dc5e86564ee7126f357faea6028b.
ui: #fix: remove broken "Parent Sets" tab from FilterSet
ui: explore: fix routes of catalog sub-sections
add Gemfile.local & Gemfile.local.lock to .gitignore
upgrade gem madek_zhdk_integration

InstitutionalGroup: .to_s: DON'T remove suffix from inst. group name
ui: js: formHelpers: fix warnOnLeave
ci: increase auto_trials to 3
ui: preserve line breaks of multi-line string meta data

(it is multi-line if of input_type: text_area)
Update db/ldap.json
cider-ci: fix typos in Stderr sections
Release 2.5.0
Clean migrations

Squashed commit of the following:

commit bef157594dc67722280aaa3e23c21cf6a7b788cc
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 29 13:50:24 2014 +0100

    Fix factory

commit fcbbc9c2574c4a27cb581cefc6cfc920f48f00c6
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 29 13:26:18 2014 +0100

    Remove not null constr. on media_entry_id from media_file

commit 132639620e1bd9ab853b5b32feda4d879c9c2bcd
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 29 12:41:21 2014 +0100

    Fix migrations

commit 5361ef325a55b681d14e6042abf68475973a72d7
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 29 12:09:44 2014 +0100

    ...

commit e8c17831c0aa0433ee18fd77f937b58f155a3886
Author: Thomas Schank <DrTom@schank.ch>
Date:   Wed Oct 29 11:45:55 2014 +0100

    Migration cleanup (squashed)

    Squashed commit of the following:

    commit d1e55d55cec845991c4d69ab90fe3461d0cea93f
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 11:31:17 2014 +0100

        Fixes

    commit 486637525da17193c93f3530dda9739e175899aa
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 10:14:58 2014 +0100

        fixes

    commit 3d4692e12940cdc7d35799d9b6c5fc60de2f661e
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 10:11:47 2014 +0100

        done

    commit bacf2ace5eafe8f2e693f38f000a420988c2d864
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 10:09:56 2014 +0100

        35

    commit 52d6800b46bc82f38535c566d2e3b215a63fdba7
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 10:03:50 2014 +0100

        33 34

    commit d3ca800a52fbd432b80ee092689e01768bfd52da
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 10:01:03 2014 +0100

        ...

    commit 39f56cb7a3d6d06e26964d5cb40b3750cfc22bf5
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 09:56:18 2014 +0100

        32

    commit 57f3f0b92833f786ce661d0a135a291acc1fe851
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 09:54:18 2014 +0100

        031

    commit 6060e37ff5c70aae8f599288d8eaacda2725a098
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Wed Oct 29 09:51:08 2014 +0100

        030

    commit 4d04cc7f254fd29b6f6c1bb16727943968efe965
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 16:17:39 2014 +0100

        Structure.sql up to 29

    commit b018866e6dc416e2b180589ce260d63d32e7ddf6
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 16:15:36 2014 +0100

        029

    commit d8cfd01bc1237997d1f983cc6e26f62d798a400f
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 16:13:15 2014 +0100

        ...

    commit 9960c6c208d56ec1843020aaa39b6dcd8ab68212
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 16:07:54 2014 +0100

        ...

    commit 2a65b6ce5d355e69689ba67f9d07b6b938f03c78
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 16:06:39 2014 +0100

        027 028

    commit f85362c88540cbe9f04ad5fbead9346838a88eea
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 16:00:04 2014 +0100

        ...

    commit af7a50624d7ac9b7e01003b765b3e7759a70493c
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:55:34 2014 +0100

        ...

    commit 0d402e41aedba6e06fd05728383ee037a17edaf0
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:53:52 2014 +0100

        027

    commit 9df878e7f9e7698513fdde86c7ced1f0eb0b6505
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:49:26 2014 +0100

        026

    commit 30bafd1ed9d4151b61187398ef7923df993fcb8e
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:46:30 2014 +0100

        025 app_settings

    commit 4af2fafaa6d4fe81b2a56574fa8be41fe3c53fdb
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:35:25 2014 +0100

        024

    commit 4e471f357c6d712ecc9ae5e3872852d3a42a0411
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:32:44 2014 +0100

        023

    commit fbeb10715876bc1897617c8d99c901411865c650
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:28:50 2014 +0100

        022

    commit dd2a7bba79b3c59c3c5a5b2e2fa11e1101d1d5f1
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:25:51 2014 +0100

        021

    commit 8742a5848cd18179e28390709e5ad9ff4299ff41
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:11:31 2014 +0100

        020

    commit cf96e23e5a4d7772143aab9f7b95ebd3e6260c1d
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 15:03:20 2014 +0100

        019

    commit 1563e6b05d51944c510061ea0d683a610dcb2f17
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:54:57 2014 +0100

        018

    commit 77ed57ca228d948263a6c9f6aa123929133c8a52
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:50:36 2014 +0100

        017

    commit 105f11a91f8552e7a51c306b8663436bd2f73eff
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:46:42 2014 +0100

        016

    commit 6b437a03342f72fc01741cef170bb7bcf39ec90b
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:43:55 2014 +0100

        015

    commit e73e2a87b2075e87882389bb3e0977f8c0e0dc61
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:38:01 2014 +0100

        014

    commit e796b8c6938346abed79aa2eb5dc1decc5382f7f
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:33:48 2014 +0100

        013

    commit e07df13b07defb60c023c7ff4e783fd5111e1583
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:28:27 2014 +0100

        012

    commit aac770ccdafce1c03b0274e16f1607a1d25c634d
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:25:41 2014 +0100

        011

    commit 06f50c7e5973d866daba41b60b3c7e829393ae76
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 14:21:29 2014 +0100

        010

    commit a69c4486595b16c390c53a64e3bd95d1077d59d1
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 12:59:55 2014 +0100

        009 full texts

    commit a855a6d8eadabc4d31d5179198b8b771e0e487cf
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 12:56:20 2014 +0100

        008 previews

    commit 6b2aed441a98159e055f14f741749752e334e2b6
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 12:51:19 2014 +0100

        007 arcs

    commit fd372f4f1c06df8f706286576793add55123f6a8
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 10:53:10 2014 +0100

        006 MediaResources

    commit d4cf7cca63eade4a0adc80d8ba5821a6a7cd64ed
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 10:28:11 2014 +0100

        005 media_files

    commit c9d6ea3336d4d7695357d4808a4765c13978cc09
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 10:19:08 2014 +0100

        004 groups_users

    commit 1a1ad8d39494918d18c083ca8e7a6ed337d21b9f
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 10:00:32 2014 +0100

        Groups

    commit 99f18d6c79eeadebebb456265dab30b154583e38
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 09:42:24 2014 +0100

        ...

    commit 43f93a7a44ecbce6577118efbdf1a18974072d86
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 09:37:53 2014 +0100

        Cleanup

    commit 7d26e828a3630145bb5fe270f2dc97c13c23277f
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 09:35:08 2014 +0100

        Create users

    commit cef8ec84fed8d7a3cadbbc620fc078528d9506ad
    Author: Thomas Schank <DrTom@schank.ch>
    Date:   Tue Oct 28 09:19:10 2014 +0100

        Migration 001 People
Set migration start-point for refactoring
Split media_resources table

Squashed commit of the following:

commit 5171248be6dcc4eb142bb327200744555d6160e1
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Nov 3 10:53:59 2014 +0100

    modified:   doc/diagrams/Schema_vision.graffle

commit e07f0f76fc2d936690f10f00893b9e4d7cd6738e
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Nov 3 10:36:33 2014 +0100

    Remove settings from media_resources

commit ee18f8f553e660a6fa3eb154c96f8cc6ad272568
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Nov 3 10:09:23 2014 +0100

    Migrate Arcs

commit 2940380adc6fa6f98cc6c5c2d1aa46c54a296f7d
Author: Thomas Schank <DrTom@schank.ch>
Date:   Mon Nov 3 08:35:39 2014 +0100

    Add and migrate filter_sets

commit 335894ca1067137940b3ec7316babd3343939b39
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 31 09:36:21 2014 +0100

    Create media_entries table; create rows; repoint media_file fkey

commit 6392afa71d3065c46a50774a5f0feaf696ce2fe8
Author: Thomas Schank <DrTom@schank.ch>
Date:   Fri Oct 31 07:45:20 2014 +0100

    Migrate Types of media_resources_table
Introduce models, factories, and specs for spitted tables

Starting with models and factories ...

...

Get some of the models working

Fix test

Rename stuff

Try up stuff with concern

check function ...

... add first trigger constraint ...

There is no point in running features for now

Extend trigger check to other tables

Extend trigger check to media_resources

Clean media_set model and add refactor factory

Fix media_set factory name

So, we can't raise a warning in factory ...

Rename things

Migrations pass ...

Migrations pass again ...

Fix migrations again ...

Add creator and updator

Fix running migration

...

Fix media_entry_spec

Lets run it again on ci

Add collection model and tests, delete some specs

Almost done with constraints

wtf

Consistentcy check done

Relate (and test) media_entries with collections

Disable a bunch of tests

Only test what we care about for now

Really clean tests

Clean and upgrade ... still two failures