Avoid PHP warning in fopen, fixes #6296
Fix advanced search boolean query, fixes #6268
Allow disable nested set in QubitTerm
Merge branch '2.x' of git.artefactual.com:atom into 2.x
Add all material types to ES, fixes #6295
Enhancements in DIP upload

- Save AIP data in DB and ES
- Create AIP type taxonomy and terms
- Store METS file
- Save METS data for digital objects in ES

Refs #6226

Squashed commit of the following:

commit 35092700f6d021082cbc35c6df21e3d74a3048cf
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Tue Feb 11 18:44:45 2014 +0100

    Add full type term as class to AIPs in ES

commit 2d5bc1ff7d4b8864cc970f5eda969d2ff7758f82
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Mon Feb 10 14:21:58 2014 +0100

    Add save method to QubitAip

commit ff2574ac85d03cbd5179d795a455ab843b7ce916
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Mon Feb 10 14:20:50 2014 +0100

    Add part_of to the AIP data

    It's the info object indicated in the DIP upload
    Add data to the database and the ES index

commit a26f8f5bf764212581d3208c158c88804a0b43e1
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Tue Feb 4 05:21:59 2014 +0100

    Include aip in ES main types

commit 401c807df1bacc44975deb5663eb41bc2707a181
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Mon Feb 3 05:03:53 2014 +0100

    Some fixes

    - Add aip.created_at to ES
    - Don't include in all some fields
    - Normalize dates

commit e8a30ad45d65b328336ec84c5e02b29523ab54c7
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Mon Feb 3 03:58:36 2014 +0100

    Obtain and add METS data to ES

    - Get object metadata, events and agents
    - Get the data from the METS file when the inf. obj. is saved
    in ES, so the data gets added when the descriptions is updated

commit 1b9786fd7b0000ef94fd1431872f64d230c48e53
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Fri Jan 31 07:10:50 2014 +0100

    Get size on disk from METS file

commit 6f8f06f0af897cec7ad8c02fbc1ae72bc6c4fe9f
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Fri Jan 31 05:46:31 2014 +0100

    Add created_at column to the aip table

commit fdbab6b68eab0674efbaee3f0efb5eef4fd24272
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Mon Jan 27 14:51:04 2014 +0100

    Add AIP data to ES

commit 31bdc82f5838bf8f5158163bddccd2be87985073
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Sat Jan 25 03:02:34 2014 +0100

    Change AIP types names

commit 4d257b84252e95c27451b073b0fa056c931f244e
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Sat Jan 25 02:55:08 2014 +0100

    Use bigint for size_on_disk column

commit bb03454798e84f3974ecaf26aa71cbabb9bec9ea
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Fri Jan 24 01:14:56 2014 +0100

    Change AIP relation

    - Remove information_object_id column from the aip table
    - Create AIP relation term
    - Add AIP relations in the METS extractor

commit 3ed81f71669f02528aafd6f23f32f4a5a955fbe4
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Wed Jan 22 23:15:44 2014 +0100

    Save AIP data

commit 1726021e618fab53c05edb4494025c19d3bafc24
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Wed Jan 22 18:30:48 2014 +0100

    Changes in 'aip' table

commit 8c7c415dba183a348c443298f40549e9ea73caaf
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Tue Jan 21 15:20:06 2014 +0100

    Data model changes

    - Create basic 'aip' table (migration, schema, etc)
    - Add 'AIP types' taxonomy and terms (migration and fixtures)
    - Update version

commit 91c591670dc7c45b7d2b0520d3ac05ba47b86d7f
Author: José Raddaoui Marín <raddaouimarin@gmail.com>
Date:   Mon Jan 20 23:09:37 2014 +0100

    Save METS file
Fix migration script, refs #6226
Add compat fix for ES 1.0+ in sfInstall, refs #6334