fixing inventory pagination

Squashed commit of the following:

commit 20770fd34a5777b173b937ac9203deac602a1cd7
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Aug 21 16:21:58 2014 +0200

    tagging scenario

commit fc7c43f876c9376a23b04c3bb2b2690d1d56543b
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Aug 21 14:44:10 2014 +0200

    [FIX CI]

commit db6d27b0e2d43045123c9fa45d8693ddae4877b1
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Aug 21 14:01:02 2014 +0200

    fixing inventory pagination
Merge upcoming commit 'd6e09c641ee6ba36a8c922d080eee90c6c4cabc1'
Merge branch 'upcoming' of github.com:zhdk/leihs
fixing cucumber syntax
[#77193030] package-model listing package-items related to the inventory_pool as responsible

Squashed commit of the following:

commit ac7f705612a631357424e6a12f53a65bfc42ba23
Merge: f4229f8 3c48c47
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Aug 22 15:40:25 2014 +0200

    Merge branch 'master' into fs_packages

commit f4229f8ef714d1791795753f57727f7a70133507
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Aug 22 14:25:12 2014 +0200

    fixing scope for package items list
[#75351288] i18n currency format

Squashed commit of the following:

commit 90958b38fbdbd1cf8fc7f659b86b6e785bf1561d
Merge: 7532ec6 3c48c47
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Aug 22 15:40:42 2014 +0200

    Merge branch 'master' into fs_money_format

commit 7532ec6c2996d9e510ab94fa6de304671efdadef
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Aug 22 15:28:02 2014 +0200

    deleting redundant i18n definition

commit 6c7b39146e8c03c75c1b6f3eaa408e78004f1ca0
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Fri Aug 22 15:21:58 2014 +0200

    i18n currency format
[#74948186] upload category image

Squashed commit of the following:

commit 2a6505fab9b66197256c557acfb54035c7a7eafc
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 13:01:32 2014 +0200

    test prepare

commit 87db7ba094d1c5851c25046ee313af6908e86dd4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 12:44:35 2014 +0200

    tag issue for category test

commit e51d3d2f43d9fbe80eed130523b5413d0ea61f7e
Merge: 0e77c06 c370062
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 12:09:56 2014 +0200

    Merge branch 'master' into mk_default_category_picture

    Conflicts:
    	cider-ci/tasks/cucumber_scenarios.yml
    	features/personas/dumps/minimal_seed.sql
    	features/step_definitions/languages/de_steps.rb

commit 0e77c06db2c757efb93db5f334c3bb0c71591bf7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 11:41:57 2014 +0200

    start page category image test

commit c0370577f2607fcff0ccab90c3211bd21a442784
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 16:25:35 2014 +0200

    start page test wip

commit d1b3f7ab9bf9a33c3cfa82496a92dacab0884ac7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 14:29:16 2014 +0200

    test for changing category picture

commit faf8149042837304fa33a7a679f800ca0b743e91
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 14:04:04 2014 +0200

    tags for first test

commit 7b9bc8a6e06dd07d7ab14d635fadd9113e0e9d48
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 14:02:49 2014 +0200

    create category with image test

commit 31149fbe901ea93cddf9988419ecb2e59241d2d2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 13:12:39 2014 +0200

    frontend validation of 1 image

commit e4d4848d262b7358661092981852501d0ffb80c8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 17:53:04 2014 +0200

    description for fields

commit b1326595f952ff5f5d76cbf2ac74e846e4ca1bff
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 17:30:45 2014 +0200

    image key label for category

commit e225f199fddfbfa2163e45b8d675b5f6d9674f79
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 17:16:56 2014 +0200

    adapt scenarios

commit de9d161d6e25291e71187b337768b428fe2573dd
Merge: 7a7a26e b9390f4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 16:30:42 2014 +0200

    Merge branch 'master' into mk_default_category_picture & test prepare

    Conflicts:
    	features/examples/kategorien.feature
    	features/personas/dumps/minimal_seed.sql

commit 7a7a26ee56be295ccb0cc9110164ca3965e2e79f
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 16:09:59 2014 +0200

    [FIX CI] software_loeschen.feature

commit 84bb413be032db40afe8acec0c8338ea9d833d60
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Aug 21 15:34:54 2014 +0200

    refactoring image and image_:thumb paths

commit 8b7e318ad1c3bda398712f7c954bcd0499190cb5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 13:50:48 2014 +0200

    one image validation

commit ae4fb32f4845ca7bcc21a54b52a95f2dcf3a2383
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 11:43:03 2014 +0200

    fix @url for coffee controller

commit 3e2c6b339d3cd61b2771b7a33e0a6507c5d35550
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 11:42:54 2014 +0200

    has_many instead of has_one

commit 1bdd013bbe328e2b2f1cd99dfc2f1c21a9cc04f5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 10:35:44 2014 +0200

    fix render entries for category

commit 0bb1fe1b0f3dc5c08f092037f0496f816daa7e31
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 09:48:40 2014 +0200

    remove the upload tag from model new view

commit 355692ba2113e99bb23ec86d128ac5550fcdc1c0
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 09:48:15 2014 +0200

    fix upload image for model new form

commit 731f94b4383848a075ddd30b883d230d1f0ee7b4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Aug 20 15:02:46 2014 +0200

    test prepare

commit 72645dd7517bdd680a5d59eff131222774cbf5fc
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Aug 20 12:43:23 2014 +0200

    polymorphic target for images

commit 5ba10c4d3144501c4f684cb6aac8f14bf6931776
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 12:02:24 2014 +0200

    add route for category image upload

commit d394233b8b894ec8539d30b9e98cc9c501128be2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 10:53:36 2014 +0200

    prepare test

commit 29c08d82298c5667e0ed2fb0e02ac0b6e914ddd5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 10:51:04 2014 +0200

    fix @javascript tag in feature

commit abafe0e4c0480ff674329a038d5674bf3cf0b452
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 10:50:53 2014 +0200

    fix edit view + edit js controller

commit d4478d2170f8d85356d71710a2f4a611817dcc36
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 09:59:33 2014 +0200

    test prepare

commit 3d98819777498ea7750bcb7032bea7b90265bdad
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 09:58:06 2014 +0200

    uncomment line#

commit 5a3403261ea443b1ba569a2ad65ccd6060469475
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 18:11:17 2014 +0200

    remove upload javascript tag from model edit view

commit 63a258d34c8a48b62d7d4ad8476a5960a729541f
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 17:38:25 2014 +0200

    error modal reusage & other abstractions

commit 354ba84b935cdacee283d869b6acca8fe276c31e
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 14:00:14 2014 +0200

    click on add opens file upload dialog

commit 04b1a79b01ac11495ff6d7253e1a7a7dbfc62d88
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 13:59:51 2014 +0200

    fix js requirements for class loading

commit ffdea3c69e7f59c8249275687a28ffa4ef9f8b3a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 10:42:14 2014 +0200

    [FIX CI] pakete.feature

commit d7ed04cad9a9a08b9c1427df68802a9d4849b321
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 10:38:25 2014 +0200

    [FIX CI] software_erfassen.feature

commit 773b9e47b006d6b7d3ec1c1e3ee3f9f258f1dbde
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 16:36:41 2014 +0200

    fix #save element for software view

commit 7a6a49c87c38a9c0da9b49acb4cf791aa91c4ba8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 16:02:59 2014 +0200

    fix #save element for model new view

commit d6345f4c166af53804aa4922cabb3885fe6b233a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 15:17:32 2014 +0200

    fix category edit js initialization

commit c664cd5bfc148e02e830f2d8d590b60759de4fe4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 15:06:34 2014 +0200

    fix _field.haml

commit de70b614511790c1553d6418aba1abe928e97ae5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:32:03 2014 +0200

    extract from upload logic to own controller

commit ecdc9cbd1c200c45c149f13881bdff1923fcdc6c
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:31:38 2014 +0200

    remove options from category controller constructor

commit 9dff35cf53366c2fb047560b2f40a489b3f3638a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:03:21 2014 +0200

    remove backup controller

commit 8e06af6d1f99128efa315d3ef55a53a8a2356d50
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:03:12 2014 +0200

    category controller frontend

commit 0a450feed1b5faabff34661da487e64e935c9f46
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 11:56:00 2014 +0200

    reuse images template

commit 075f5b08d36d05c27ceb4bca5df7abcb1aa80d51
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 10:53:41 2014 +0200

    form partial

commit be9e48e4b5856de94b9f292099f4dcd1e8c4b0eb
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 14 17:33:04 2014 +0200

    decouple images controller from models

commit 60427e3c5c1ec1842ea582555167683e8587dc31
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 14 16:07:18 2014 +0200

    decouple upload controller from models

commit 676195e29c2c537429e019fce0017db1a6e5dead
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 14 15:52:18 2014 +0200

    remove unnecessary uid from models upload controller
[#75876296] retired label on the item lin

Squashed commit of the following:

commit 05202875e9edf1743c373f69c76920ee9987eae0
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 25 17:02:24 2014 +0200

    add @firefox to test

commit e58579756a2fe69b364a00f4d6961631c08cc3c7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 25 16:34:14 2014 +0200

    test for global search

commit 431ea46ff722588828aad01421635311411b2afe
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 25 14:02:51 2014 +0200

    2nd test

commit 39bf12d0b469c327e926a00fc06fea298da18eca
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 25 11:35:12 2014 +0200

    first test
[#77538404] item#inventory_pool_id is now required
[#75876928] [#77193030] fixing tests
[#75876230] button translation
Small import helper to import options from a CSV file.
[#77197438] display all models in global search
New importer for Mike.
[#77959454] nullify database empty strings and [#77538404] set items.owner_id as not null

Squashed commit of the following:

commit 63bb7223f32f9b16e0491873bdea79ec6fa335ba
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 2 12:09:51 2014 +0200

    [#75876230] button translation

commit 5ef69d420534a6c1a27b7dbb0521a15ea36aafe6
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 2 11:46:14 2014 +0200

    item#owner_id is now also required

commit 39980022315baf22a6ee932a9e0c3bc33d08d409
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Mon Sep 1 17:09:03 2014 +0200

    migration and admin check for empty strings
regenerated dumps
initializer for runing dev server with a specific test dump
[FIX CI] various fixes of tests and bugs

Squashed commit of the following:

commit b12c910ca54dd75e0ab8aee99fb621da3d352df3
Merge: 5bed90b b18efd7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 17:23:42 2014 +0200

    Merge branch 'master' into making_CI_green

commit 5bed90b6c7123cf19e7cb077fdfff38e8a0a6474
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 16:59:01 2014 +0200

    [FIX CI]

commit b3c317821c5cb9bdfaf2f2b9bc1c3b2ba8f9f675
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 16:31:55 2014 +0200

    [FIX CI] @firefox tag

commit bcd1bd217b97400e69d728b3c8d52bf3a2bbff3a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 16:06:53 2014 +0200

    [BUGFIX] show timeline also for a software line

commit c16305785ec27784347f5a6e057ca5f58dcf63aa
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:39:10 2014 +0200

    change investment to Investition in gegenstand erstellen feature

commit e2f4aa1a45a099bd5d16be2780dadb19e6b4fce3
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:35:55 2014 +0200

    [FIX TEST] availability checks in manage booking calendar

commit a07c318b2fcab2e1139fe12771d6e3088567f2af
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:35:27 2014 +0200

    travel in time in frontend when starting server with specific test dump

commit b97a7558c21ab2f4babb707a6aeb3003b56813b1
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Sep 8 15:35:03 2014 +0200

    [BUGFIX] availability coffee withoutLines() consider soft overbooking

commit 5dfebc232d6456378e235fdb0ec34ffc4cf159bf
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 13:42:05 2014 +0200

    fix gegenstand features

commit 76333f572e7996342996ab70af6883fc7f2c6bc7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 12:16:48 2014 +0200

    regenerate dumps

commit 1289b6adcace0ef7d57c3aba618cc2e3b4796a98
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 12:10:19 2014 +0200

    [FIX CI] item/package steps

commit 17ce5488a46358bc2c17bcb707e6cd9f11001a83
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 11:36:46 2014 +0200

    fix steps

commit b14410466ca56eea3ba99c913e055d117a5b43fb
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 11:36:33 2014 +0200

    regenerate dumps

commit ea7dafce769ff2922ef5efd3bbc022db7c9f08fe
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Sep 5 11:36:12 2014 +0200

    fix visit / visit lines migrations

commit dd966c72da6b2baabfcffc0e7fbe6b4015b46f58
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 16:52:51 2014 +0200

    [BUGFIX] matches(x) instead of eq(x) in contract.rb

commit aa6190edea2985c4506135b6b4f9af6d937ffec8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 15:15:50 2014 +0200

    prepare dumps

commit a5c58b53a0c0185d3caf146657a3408b77097dae
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 15:13:46 2014 +0200

    [FIX CI] gegenstand_editiere.feature

commit c7deb1448f9dd9264e09259e5ce55aea68329b6a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 15:13:22 2014 +0200

    fix all owner_ids in fixtures

commit 109869f09f994204518449eade00a1f00ef020c2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 14:27:58 2014 +0200

    [FIX CI] ausleihe.feature

commit a98617ed7e82c1906140c0b9a224c32aaa62d2f2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 12:28:08 2014 +0200

    properly check for existence of deferred objects

commit ec07dd9ea634a60730d20070ec866e7166c2b8fa
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 09:50:58 2014 +0200

    fix missing owner_id for a item in fixtures

commit 33df6eaa6bc8f0c7bca88ac1a02c3a70b166b01b
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 09:50:42 2014 +0200

    prepare personas dumps

commit 65819d8b9ac827e56141bde5855bde18f6f0e9f8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Sep 4 09:46:13 2014 +0200

    should -> expect

commit b78fd4ed828f9c76eaf56043cbe853973ff1f0fa
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 16:39:12 2014 +0200

    fix hand over travel time

commit e28ae1b1af8a5f89fde414ccb5b73fe6f5346a48
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 12:27:13 2014 +0200

    add firefox tag to modell.feature test

commit aad3b2512c56a3a9b3514bc303446cbaff7a83ba
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 11:05:13 2014 +0200

    Remove comment for fixed issue

commit ff053beb3430b82ffe441d1d7d3dc281ae9a4f54
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 11:04:25 2014 +0200

    fix submitAssignment with :enter in hand over page

commit 541a0dadc23f217a02e1789632f945c0dd8926dc
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 11:04:05 2014 +0200

    optimize sign contract step

commit 72856b80da331985edecea0ef1e059b8d343dfe0
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Sep 3 09:19:12 2014 +0200

    initializer for runing dev server with a specific test dump

commit 173b0b0260f089469efb35f621f8224fbaf434dc
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 2 15:31:20 2014 +0200

    [FIX CI] features/manage/delegation.feature:194

commit 23af9d6fd58657585c4bba200d889679b9985fee
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Sep 2 15:01:57 2014 +0200

    [FIX CI] features/examples/inventar.feature:248

commit 80a28f408776e41d14ad7b41b08da3eaf4f3b2bc
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Tue Sep 2 14:28:23 2014 +0200

    removing @current tag from scenarios
[#78349852] Suspend function on delegation as well