Fix guest user access to public pdfs

Squashed commit of the following:

commit 418938a7cac1408c6f62b7220c8a8da50893787e
Author: Jonasz Grochowski <tensaioni@gmail.com>
Date:   Mon Aug 18 09:01:47 2014 +0200
Add legacy media_entries and media_set routes

Squashed commit of the following:

commit 7704e0d7cd6500ce95fcb6940e9f2a34e1a83dff
Author: Jonasz Grochowski <tensaioni@gmail.com>
Date:   Fri Sep 12 11:34:57 2014 +0200
Export low resolution video rather than jpeg thumbnail

Squashed commit of the following:

commit 831bbdae4ea4e76c39d697d170ec92581e0f1379
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Tue Sep 16 12:17:20 2014 +0200
Set version to 2.2.0-beta.0
Disable some old migration and reindex MediaResources again for eth deploy
Colorschemes are configurable by ansible
Add app/assets/stylesheets/config/local/gitkeep.sass

so sass won't fail
UI: merge new styles and specs from IXT

Squashed commit of the following:

commit c99a5444ca5bbcb6a3149bc726d0c8ad4e847408
Author: Piotr F <piotr@piotrf.pl>
Date:   Fri Aug 8 12:56:24 2014 +0200

    Fix relationships pointing bottom arrow when scrollbars always visible.

commit ed22b3ec16dc1309ef620ddb4cd312952ca3bcd2
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 15 15:04:35 2014 +0200

    Update stats module spec throughout.

commit 6fe348899894a0d3f871da4af8e2d6832dd36306
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 15 12:44:29 2014 +0200

    Cleanup.

commit 79481f49185c8341019252f825034828e2caa65f
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 15 11:51:21 2014 +0200

    Update thumb up/down items background.

commit c0e523c3dbdca40273b2dfab79be467639655344
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 15 11:22:14 2014 +0200

    Unify counters.

commit d83b2ca16c978889ecf2b727c4cf7031465f7912
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 15 09:59:15 2014 +0200

    Bring privacy icons back in horizontal grid resources.

commit 93f20d5a87d4d82002c0898cd4b377d068533d80
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 15 08:52:58 2014 +0200

    Document stats module.

commit f3eb42b284c770c359705de1132c00a73cba67e1
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jul 10 13:51:45 2014 +0200

    Update set icon and icon font to reflect new set thumb style.

commit d9728c82c26fb5c6ca8b1b491c9dbbf9e0b113f5
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 9 11:51:22 2014 +0200

    Cleanup Upc Spec 1.

commit 153ac7f1c1aef09f5fa805b1743ff2122306d4a0
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 18:15:37 2014 +0200

    Fix horizontal tile grid spec.

commit 7b5d0c4f0761954b045ee09cdb500c7f10eca6fe
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 16:50:00 2014 +0200

    Cleanup.

commit e76c744996a0dd25f82ef2aea912b03a77b68e9e
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 16:49:54 2014 +0200

    Move Relationships to Spec 3.

commit d5acc28a673e8845f835e3ed0e404e94ea934cb5
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 16:38:56 2014 +0200

    Add midtone-darker bordered variations. Remove -1px margins from bordered ui-containers.

commit 01837914704486447d5ff204ebd42be736a6ce1b
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 16:38:11 2014 +0200

    Cleanup relationships view with a view stylesheet.

commit 42c674750d8954c1d61f7fe0b9ce951eda6b7e52
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 15:20:52 2014 +0200

    Implement new counters.

commit f9fc157f2651c5b4e45f79b127c1998dd2fbebfe
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 15:20:00 2014 +0200

    Document counters as separate entities.

commit afb6722ae3b8db13c5345639835e6de92547b476
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 15:08:05 2014 +0200

    Stash cleanup Nu Spec 3.

commit 2198b6d3b6329411f56eb4ab80f5d0bf95329fef
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 11:47:47 2014 +0200

    Fix min/max dimension mixin.

commit bc10fa2f8790add815c080f1b63163807dd1e30b
Author: Piotr F <piotr@piotrf.pl>
Date:   Tue Jul 8 11:10:18 2014 +0200

    Tweak set thumb shadows.

commit d59b7c2bf97f0f358304fb68914e4e9590deae32
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jul 3 19:38:21 2014 +0200

    Stash Übergeordnete Sets spec in prep for adding orientation pointers.

commit 5f5b705d56209ec90052ed124a91ed6f6dc7d6ee
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jul 3 18:09:43 2014 +0200

    Stash Horizontal resource grid variation setup.

commit 59e0e7644c712b73864c24c564a77056293059f1
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jul 3 12:03:28 2014 +0200

    Bring back mid corners to level-up and -down items in thumbs.

commit 54b559cea57d4f95f959a2d55d0f84cc2ec827f9
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jul 3 11:03:12 2014 +0200

    Cleanup.

commit 812f3a2f779de0325219f495b376f8e4e415f452
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 15:30:34 2014 +0200

    Setup box model on Upcoming Spec 3 elements.

commit d4bd2745d8c5a27035c9ca9f7acb58d007f9b66f
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 15:30:16 2014 +0200

    Cleanup Upcoming Spec 2.

commit 5ab4cbb5507e359a37cde630a8b03204a1bf0c23
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 14:47:51 2014 +0200

    Update tile sizes to reflect madek image sizes.

commit 9a153b639934632bf1a0d20be198dcf0ee3eb66c
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 14:26:22 2014 +0200

    Setup Übergeordnete Sets doc.

commit f7efcad87aee022ad45aa5cbf6b99419df47ee03
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 14:23:39 2014 +0200

    Document a tile set with thumb cover.

commit 678c4491cfefa1bd99a3f01b697d1af7bc1ff77c
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 14:12:59 2014 +0200

    Cleanup.

commit 6bc09ad2522658343f5f4dcbf32f163bbe29289f
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 13:25:10 2014 +0200

    Port new set/catalog thumb style throughout. Remove legacy backgrounds.

commit 66ce7ba537fbd7b142f601602d819bc5135264de
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 12:44:54 2014 +0200

    Apply new stack effect to all catalog/set thumbnails.

commit c275cf3ac9c0ef9feedf2cb443830d740ec697c3
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 12:17:40 2014 +0200

    Add tiles :after borders.

commit 51ca3211c2d9dff9d72cd4971f063fbc8876924a
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 12:17:24 2014 +0200

    Remove rounded corners from thumbnails.

commit 815ae091b984a843ce8c99aeda24828bbc6aa637
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 11:37:33 2014 +0200

    Setup Upcoming Spec Three.

commit 65f14b0293fc034b27036696b37d94eeadbca995
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jun 11 08:03:58 2014 +0200

    Setup upcoming spec.

commit 288d498d29311a4f2b2c8d3ad38518ccf5fdab49
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jul 2 11:09:13 2014 +0200

    Change icon colour Zusammenhange dropdown.

commit 721436f29eb2c1868a92eec5a4d1a46da006e131
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 23 18:18:31 2014 +0200

    Cleanup.

commit e0d539813183f8cdda1a4bec8eeae7d4bd0672c3
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 23 18:18:25 2014 +0200

    Setup nu spec 2.

commit 36272bb0fbe9462360bc2b41d51899261c3536b1
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 23 18:18:17 2014 +0200

    Update nu spec 1.

commit 83f5aaf90dee5b2600ff654f7f04f589d8972ee4
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 23 11:49:44 2014 +0200

    Revamp tiles spec.

commit eebb1c7cbc1d1fb1b48b8a854dd6da9a92323ecc
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 16 14:24:01 2014 +0200

    Correct Tiles documentation.

commit 2491a477c1ad5fddd549c47833e22d9a04d0fe4c
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 16 12:24:52 2014 +0200

    Move tile actions from foot to head. Revamp fset flag.

commit 1a2ef66ab2066d96491d864e3f8e37957b327e6c
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 16 11:39:14 2014 +0200

    Move tile filterset mark to tile foot.

commit b03639f96dc19d3bd6eb7a74f8d775f99cc83bcf
Author: Piotr F <piotr@piotrf.pl>
Date:   Mon Jun 16 11:24:05 2014 +0200

    Tweak horizontal tiles heights.

commit 080c5958316910ab852c42838e01f65d500ed9d4
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jun 12 14:20:50 2014 +0200

    More cleanup.

commit 7136df2651b6edc869665a44272d726230a05abd
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jun 12 14:11:30 2014 +0200

    Cleanup.

commit d4174a232eafd9960fc9ec6c1f7daa59a4429ebd
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jun 12 13:48:24 2014 +0200

    Stash tile spec.

commit 751b47f13bff55d7df0294ab63c26074d777387a
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jun 12 13:47:53 2014 +0200

    Call force scrollbar on specific targets.

    …instead of all elements

commit 6c7a56b91a1dd2db188bc331f34ffa78f8b1ada7
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jun 12 13:47:14 2014 +0200

    Cleanup.

commit 9c2efc218913562a30b7f8e5dfb31da6844b37c9
Author: Piotr F <piotr@piotrf.pl>
Date:   Thu Jun 12 10:17:30 2014 +0200

    Image optim styleguide images.

commit 5756052c0ca894897ef0ef96f60165134e1e0dcf
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jun 11 14:43:41 2014 +0200

    Document tiles in preparation for integration throughout.

commit b5f734eeea84748d719c6a345dec3bc60caf63a6
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jun 11 14:27:06 2014 +0200

    Add in opacify mixin.

commit 3121c1e51516768573054be81c5f4a588b9d899c
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jun 11 14:26:39 2014 +0200

    Rename black and white colour variables.

commit 9e1de1d8a1a0c161eb229f034f6ff3d4bc3d6c6c
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jun 11 13:55:48 2014 +0200

    Add in new lib mixins.

commit 1cfd296c85a1267660261379e135b190a23f628b
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jun 11 08:58:39 2014 +0200

    Update icon font. Document .icon-vis-pins icon.

commit fb91b86086378b0b32112fe2a4a108ada69e6be2
Author: Piotr F <piotr@piotrf.pl>
Date:   Wed Jun 11 08:03:58 2014 +0200

    Setup upcoming spec.
ui: implement new 'tile' view

for
* .ui-resources-list (All listings, like MediaSet's content, Search, …)
* MediaSet > Featured Items

Merged all current specs from IXT, so subtle breakage might occur…

---

Squashed commit of the following:

commit e31e8206c519c86397cb5fd2fe3c1545fc8d51fb
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 19:30:14 2014 +0300

    styleguide: Move 10.2 documentation from the Upcoming Spec to components and combos respectively

commit a655210afbe7f999f0145379d3605b5200bc6408
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 19:17:20 2014 +0300

    styleguide: name upcoming specs

commit d9fb60c32f804c3b98322e9dc355ea7ca80ffc93
Author: Max F. Albrecht <1@178.is>
Date:   Fri Aug 15 18:01:02 2014 +0200

    add markup for tile view in set > featured items

commit 4148bfcd74c3a88247f4ef210d266750210b591d
Author: Max F. Albrecht <1@178.is>
Date:   Fri Aug 15 17:22:19 2014 +0200

    refactor partial 'privacy' (don't wrap in special class)

commit f8290981a40b313e161d427c9299cd2a6dcc620a
Author: Max F. Albrecht <1@178.is>
Date:   Fri Aug 15 15:51:49 2014 +0200

    styleguide: use new tiles markup in featured items

commit f669feccf1967d44ff7de605ea7a549625545e65
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 19:04:08 2014 +0300

    fix the messed up z-indexes

    now the tile footer is not overlapping clipboard, menus, etc

commit 6f004f20b0c8cf2e75363c9e1a0752731aac38c0
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 18:02:55 2014 +0300

    test: check for additional class when switching to 'tiles'

commit 2fda8d27c2e39ef18a028a182815d97b58ff8432
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 18:00:20 2014 +0300

    test: fix typos

commit 5ff0d77104774392792c78c0efe6de37dd650f77
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 17:20:58 2014 +0300

    make 'save layout' also work for tiles

    - fix button
    - add additional needed classes in haml (as in js)
    - allow the :layout in set model!

commit 6e5182f41932baeb1732ac1d962d931f7e4d9261
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 17:19:39 2014 +0300

    (fix whitespace)

commit 5c946571c7cfb6869e65d5dd4c983c600cb0442d
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 15:51:44 2014 +0300

    fix fav star shadow

commit 08e09eecc464f709e4c822085d1b11ecfdc4f6f9
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 22 15:51:35 2014 +0300

    test: fix typo #2

commit 91df1c7e4cb1c97132c39e3b4866dc3de6adf98f
Author: Max F. Albrecht <1@178.is>
Date:   Mon Sep 1 10:31:59 2014 +0200

    test: fix typo

commit eb01697032d54a60c00227f569b9d5e5921e50b6
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 25 22:59:40 2014 +0200

    i18n

commit ffacd9deec4fb0e26d13e06a7c7626eb7c497d86
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 25 21:46:36 2014 +0200

    add a test case

commit a1fe5b774d0cf5b999ae092b8efc83ca32fde02e
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 25 21:36:24 2014 +0200

    tile: foot: correct flags for permissions and filterset

commit d68646de6bda4eed3de5ca060f2508ca6614fb96
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 25 21:34:15 2014 +0200

    tile: put link on tile__foot

commit 4d968288b4d33a3c82d1900cdf7ab122b9908bac
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 25 21:08:03 2014 +0200

    tile: body: insert thumbnail, make background dark grey (while loading)

commit 2ad5785894504a79ee1da954e62e96fa0f629c3b
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 25 21:07:18 2014 +0200

    tile: head: implement status bar (always show fav status)

commit 4e20a4d3d5bf7225efa120e60c324e2298fe0125
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 25 20:05:19 2014 +0200

    head: actions: swap fav and select

commit 987025b4adb60eda095d928b4f4dc252cceed5fe
Author: Max F. Albrecht <1@178.is>
Date:   Thu Aug 14 13:43:54 2014 +0200

    make grid normal size by default (not small)

commit e96e87a56ab4abc3bf4c046910c94824e0cdb7e7
Author: Max F. Albrecht <1@178.is>
Date:   Wed Aug 13 17:33:26 2014 +0200

    only make browsable if entry

commit 51a0a15bf294d410a91dd6c9f409d8c7a2a68648
Author: Max F. Albrecht <1@178.is>
Date:   Wed Aug 13 17:32:59 2014 +0200

    clipboard: refactor class to data prop

    .ui-thumbnail-action-checkbox => [data-clipboard-toggle]

commit 584c3629889005ada618a727dd691720ea5d2ff4
Author: Max F. Albrecht <1@178.is>
Date:   Wed Aug 13 16:37:33 2014 +0200

    template/css: hide .no-guest actions

commit 1f42289bab241561b2f94d7f2165211f47d2c78e
Author: Max F. Albrecht <1@178.is>
Date:   Wed Aug 13 16:36:44 2014 +0200

    template: style sets

commit dcfbe7c665cb3c24026d6be13517a194bb0f41a8
Author: Max F. Albrecht <1@178.is>
Date:   Wed Aug 13 16:36:04 2014 +0200

    template: correct author, image, actions

commit 6a9290a0c2b218a6276202c2723190d81508b972
Author: Max F. Albrecht <1@178.is>
Date:   Wed Aug 13 16:33:45 2014 +0200

    js: fix toggleFavor

commit 453973ac5d2573582e9c39976eeaadcb1fda77d9
Author: Max F. Albrecht <1@178.is>
Date:   Tue Aug 12 15:43:53 2014 +0200

    squash switcher

commit b98d44430b91427c04b4154beab347cf2bdf5e64
Author: Max F. Albrecht <1@178.is>
Date:   Tue Aug 12 15:35:45 2014 +0200

    mediaResources: more partials for actions

commit 72f291567ada6340751b3d9848519fa03ca1b72b
Author: Max F. Albrecht <1@178.is>
Date:   Mon Aug 11 16:47:16 2014 +0200

    layout switcher: add additional classes from data on button

commit 5e33c35796b7fa4ac982664164881e10376855ef
Author: Max F. Albrecht <1@178.is>
Date:   Thu Aug 7 11:30:35 2014 +0200

    res list: add markup, make layout switching work

commit 0152d776b77c05cc6501a13ad64d574beac88976
Author: Max F. Albrecht <1@178.is>
Date:   Thu Aug 14 15:14:55 2014 +0200

    styleguide: add href to all links

commit 9c871c05436825781118825b3ec059bccbb8ce47
Author: Max F. Albrecht <1@178.is>
Date:   Tue Aug 5 19:08:58 2014 +0200

    css: remove 'overflow: hidden' from '.ui-container.rounded'
sass: #fix contrast mode (remove references to obsolete images)

(cleanup of tile view spec)
Set version to 2.2.0-beta.1
Fix font-awesome path
sass: cleaner colorschemes config

- remove duplicate config
- underscore filenames so they're not compiled to css
ui: set: featured: fix link on thumbnails
Rename MetaDatumDepartments to MetaDatumInstitutionalGroups

Squashed commit of the following:

commit 3e13bda8fe79661f699a35c53e8b335dcf88777b
Author: Michał Podlecki <m.podlecki@op.pl>
Date:   Tue Sep 23 08:30:12 2014 +0200
Update Schema diagram after renaming to MetaDatumInstitutionalGroups
ui: tile view: fix link on thumbnails, background color
ui: set: featured: fix typo

now Sets look like Sets
Fix unathorized access to media_resources#browse for guest users
Set stable version to 2.2.0