diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000000..371c8a73d3
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,14 @@
+ MAdeK is Copyright (C) 2009 Zurich University of the Arts
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
diff --git a/Capfile b/Capfile
new file mode 100644
index 0000000000..b9c745e9cb
--- /dev/null
+++ b/Capfile
@@ -0,0 +1,5 @@
+require 'capistrano/ext/multistage'
+
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+#load 'config/deploy'
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000000..cf9e7a4c7e
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,49 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.0.4'
+gem 'i18n' # Need this explicitly, otherwise can't deploy
+
+gem 'mysql2', '0.2.6'
+gem 'memcache-client' #gem 'dalli' #gem 'redis-store'
+
+gem 'themes_for_rails'
+gem 'haml'
+gem 'jquery-rails'
+
+gem 'will_paginate', '3.0.pre2'
+gem 'rgl', '0.4.0', :require => 'rgl/adjacency'
+gem 'builder'
+
+gem 'thinking-sphinx', '2.0.2', :require => 'thinking_sphinx'
+#temp#sphinx# gem 'ts-delayed-delta', '1.1.0', :require => 'thinking_sphinx/deltas/delayed_delta'
+
+gem 'zip', '2.0.2'
+
+gem 'nested_set', '1.6.4'
+gem 'acts-as-dag', '2.5.4' # TOOD use instead ?? gem 'dagnabit', '2.2.6'
+
+# gem 'rmagick', '2.13.1', :require => 'RMagick2'
+gem 'json', '1.4.6'
+
+gem "ruby-net-ldap", "0.0.4", :require => 'net/ldap'
+
+gem "zencoder"
+
+group :test, :development do
+ gem 'ruby-debug' # TODO 'ruby-debug19' for Ruby 1.9.x
+ gem 'ruby-debug-completion'
+end
+
+group :development do
+ gem 'capistrano'
+ gem 'capistrano-ext'
+end
+
+group :test do
+ gem 'capybara'
+ gem 'database_cleaner'
+ gem 'rspec-rails'
+ gem 'spork'
+ gem 'steak'
+ gem 'launchy'
+end
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000000..96520d6c56
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,196 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.4)
+ actionpack (= 3.0.4)
+ mail (~> 2.2.15)
+ actionpack (3.0.4)
+ activemodel (= 3.0.4)
+ activesupport (= 3.0.4)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.4)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.13)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.4)
+ activesupport (= 3.0.4)
+ builder (~> 2.1.2)
+ i18n (~> 0.4)
+ activerecord (3.0.4)
+ activemodel (= 3.0.4)
+ activesupport (= 3.0.4)
+ arel (~> 2.0.2)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.4)
+ activemodel (= 3.0.4)
+ activesupport (= 3.0.4)
+ activesupport (3.0.4)
+ acts-as-dag (2.5.4)
+ arel (2.0.8)
+ bond (0.4.0)
+ builder (2.1.2)
+ capistrano (2.5.19)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.0.0)
+ capistrano-ext (1.2.1)
+ capistrano (>= 1.0.0)
+ capybara (0.4.1.1)
+ celerity (>= 0.7.9)
+ culerity (>= 0.2.4)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (>= 0.0.27)
+ xpath (~> 0.1.3)
+ celerity (0.8.7)
+ childprocess (0.1.6)
+ ffi (~> 0.6.3)
+ columnize (0.3.2)
+ configuration (1.2.0)
+ culerity (0.2.15)
+ database_cleaner (0.6.3)
+ diff-lcs (1.1.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ ffi (0.6.3)
+ rake (>= 0.8.7)
+ haml (3.0.25)
+ highline (1.6.1)
+ i18n (0.5.0)
+ jquery-rails (0.2.7)
+ rails (~> 3.0)
+ thor (~> 0.14.4)
+ json (1.4.6)
+ json_pure (1.5.1)
+ launchy (0.3.7)
+ configuration (>= 0.0.5)
+ rake (>= 0.8.1)
+ linecache (0.43)
+ mail (2.2.15)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ memcache-client (1.8.5)
+ mime-types (1.16)
+ mysql2 (0.2.6)
+ nested_set (1.6.4)
+ activerecord (>= 3.0.0)
+ railties (>= 3.0.0)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.1.0)
+ net-ssh-gateway (1.0.1)
+ net-ssh (>= 1.99.1)
+ nokogiri (1.4.4)
+ polyglot (0.3.1)
+ rack (1.2.1)
+ rack-mount (0.6.13)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rails (3.0.4)
+ actionmailer (= 3.0.4)
+ actionpack (= 3.0.4)
+ activerecord (= 3.0.4)
+ activeresource (= 3.0.4)
+ activesupport (= 3.0.4)
+ bundler (~> 1.0)
+ railties (= 3.0.4)
+ railties (3.0.4)
+ actionpack (= 3.0.4)
+ activesupport (= 3.0.4)
+ rake (>= 0.8.7)
+ thor (~> 0.14.4)
+ rake (0.8.7)
+ rgl (0.4.0)
+ rake
+ stream (>= 0.5)
+ riddle (1.2.2)
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.1)
+ rspec-expectations (2.5.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.5.0)
+ rspec-rails (2.5.0)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.5.0)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
+ ruby-debug-completion (0.2.1)
+ bond (>= 0.3.3)
+ ruby-net-ldap (0.0.4)
+ rubyzip (0.9.4)
+ selenium-webdriver (0.1.2)
+ childprocess (~> 0.1.5)
+ ffi (~> 0.6.3)
+ json_pure
+ rubyzip
+ spork (0.8.4)
+ steak (1.1.0)
+ rspec (>= 1.3)
+ stream (0.5)
+ themes_for_rails (0.4.1)
+ thinking-sphinx (2.0.2)
+ activerecord (>= 3.0.3)
+ riddle (>= 1.2.2)
+ thor (0.14.6)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.24)
+ will_paginate (3.0.pre2)
+ xpath (0.1.3)
+ nokogiri (~> 1.3)
+ zencoder (2.3.1)
+ activesupport
+ i18n
+ zip (2.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ acts-as-dag (= 2.5.4)
+ builder
+ capistrano
+ capistrano-ext
+ capybara
+ database_cleaner
+ haml
+ i18n
+ jquery-rails
+ json (= 1.4.6)
+ launchy
+ memcache-client
+ mysql2 (= 0.2.6)
+ nested_set (= 1.6.4)
+ rails (= 3.0.4)
+ rgl (= 0.4.0)
+ rspec-rails
+ ruby-debug
+ ruby-debug-completion
+ ruby-net-ldap (= 0.0.4)
+ spork
+ steak
+ themes_for_rails
+ thinking-sphinx (= 2.0.2)
+ will_paginate (= 3.0.pre2)
+ zencoder
+ zip (= 2.0.2)
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000..bc08fe2e41
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,619 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
diff --git a/README b/README
new file mode 100644
index 0000000000..6966fe987e
--- /dev/null
+++ b/README
@@ -0,0 +1,256 @@
+== Welcome to Rails
+
+Rails is a web-application framework that includes everything needed to create
+database-backed web applications according to the Model-View-Control pattern.
+
+This pattern splits the view (also called the presentation) into "dumb"
+templates that are primarily responsible for inserting pre-built data in between
+HTML tags. The model contains the "smart" domain objects (such as Account,
+Product, Person, Post) that holds all the business logic and knows how to
+persist themselves to a database. The controller handles the incoming requests
+(such as Save New Account, Update Product, Show Post) by manipulating the model
+and directing data to the view.
+
+In Rails, the model is handled by what's called an object-relational mapping
+layer entitled Active Record. This layer allows you to present the data from
+database rows as objects and embellish these data objects with business logic
+methods. You can read more about Active Record in
+link:files/vendor/rails/activerecord/README.html.
+
+The controller and view are handled by the Action Pack, which handles both
+layers by its two parts: Action View and Action Controller. These two layers
+are bundled in a single package due to their heavy interdependence. This is
+unlike the relationship between the Active Record and Action Pack that is much
+more separate. Each of these packages can be used independently outside of
+Rails. You can read more about Action Pack in
+link:files/vendor/rails/actionpack/README.html.
+
+
+== Getting Started
+
+1. At the command prompt, create a new Rails application:
+ rails new myapp (where myapp is the application name)
+
+2. Change directory to myapp and start the web server:
+ cd myapp; rails server (run with --help for options)
+
+3. Go to http://localhost:3000/ and you'll see:
+ "Welcome aboard: You're riding Ruby on Rails!"
+
+4. Follow the guidelines to start developing your application. You can find
+the following resources handy:
+
+* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
+* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
+
+
+== Debugging Rails
+
+Sometimes your application goes wrong. Fortunately there are a lot of tools that
+will help you debug it and get it back on the rails.
+
+First area to check is the application log files. Have "tail -f" commands
+running on the server.log and development.log. Rails will automatically display
+debugging and runtime information to these files. Debugging info will also be
+shown in the browser on requests from 127.0.0.1.
+
+You can also log your own messages directly into the log file from your code
+using the Ruby logger class from inside your controllers. Example:
+
+ class WeblogController < ActionController::Base
+ def destroy
+ @weblog = Weblog.find(params[:id])
+ @weblog.destroy
+ logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
+ end
+ end
+
+The result will be a message in your log file along the lines of:
+
+ Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
+
+More information on how to use the logger is at http://www.ruby-doc.org/core/
+
+Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
+several books available online as well:
+
+* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
+* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
+
+These two books will bring you up to speed on the Ruby language and also on
+programming in general.
+
+
+== Debugger
+
+Debugger support is available through the debugger command when you start your
+Mongrel or WEBrick server with --debugger. This means that you can break out of
+execution at any point in the code, investigate and change the model, and then,
+resume execution! You need to install ruby-debug to run the server in debugging
+mode. With gems, use sudo gem install ruby-debug. Example:
+
+ class WeblogController < ActionController::Base
+ def index
+ @posts = Post.find(:all)
+ debugger
+ end
+ end
+
+So the controller will accept the action, run the first line, then present you
+with a IRB prompt in the server window. Here you can do things like:
+
+ >> @posts.inspect
+ => "[#nil, "body"=>nil, "id"=>"1"}>,
+ #"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
+ >> @posts.first.title = "hello from a debugger"
+ => "hello from a debugger"
+
+...and even better, you can examine how your runtime objects actually work:
+
+ >> f = @posts.first
+ => #nil, "body"=>nil, "id"=>"1"}>
+ >> f.
+ Display all 152 possibilities? (y or n)
+
+Finally, when you're ready to resume execution, you can enter "cont".
+
+
+== Console
+
+The console is a Ruby shell, which allows you to interact with your
+application's domain model. Here you'll have all parts of the application
+configured, just like it is when the application is running. You can inspect
+domain models, change values, and save to the database. Starting the script
+without arguments will launch it in the development environment.
+
+To start the console, run rails console from the application
+directory.
+
+Options:
+
+* Passing the -s, --sandbox argument will rollback any modifications
+ made to the database.
+* Passing an environment name as an argument will load the corresponding
+ environment. Example: rails console production.
+
+To reload your controllers and models after launching the console run
+reload!
+
+More information about irb can be found at:
+link:http://www.rubycentral.com/pickaxe/irb.html
+
+
+== dbconsole
+
+You can go to the command line of your database directly through rails
+dbconsole. You would be connected to the database with the credentials
+defined in database.yml. Starting the script without arguments will connect you
+to the development database. Passing an argument will connect you to a different
+database, like rails dbconsole production. Currently works for MySQL,
+PostgreSQL and SQLite 3.
+
+== Description of Contents
+
+The default directory structure of a generated Ruby on Rails application:
+
+ |-- app
+ | |-- controllers
+ | |-- helpers
+ | |-- models
+ | `-- views
+ | `-- layouts
+ |-- config
+ | |-- environments
+ | |-- initializers
+ | `-- locales
+ |-- db
+ |-- doc
+ |-- lib
+ | `-- tasks
+ |-- log
+ |-- public
+ | |-- images
+ | |-- javascripts
+ | `-- stylesheets
+ |-- script
+ | `-- performance
+ |-- test
+ | |-- fixtures
+ | |-- functional
+ | |-- integration
+ | |-- performance
+ | `-- unit
+ |-- tmp
+ | |-- cache
+ | |-- pids
+ | |-- sessions
+ | `-- sockets
+ `-- vendor
+ `-- plugins
+
+app
+ Holds all the code that's specific to this particular application.
+
+app/controllers
+ Holds controllers that should be named like weblogs_controller.rb for
+ automated URL mapping. All controllers should descend from
+ ApplicationController which itself descends from ActionController::Base.
+
+app/models
+ Holds models that should be named like post.rb. Models descend from
+ ActiveRecord::Base by default.
+
+app/views
+ Holds the template files for the view that should be named like
+ weblogs/index.html.erb for the WeblogsController#index action. All views use
+ eRuby syntax by default.
+
+app/views/layouts
+ Holds the template files for layouts to be used with views. This models the
+ common header/footer method of wrapping views. In your views, define a layout
+ using the layout :default and create a file named default.html.erb.
+ Inside default.html.erb, call <% yield %> to render the view using this
+ layout.
+
+app/helpers
+ Holds view helpers that should be named like weblogs_helper.rb. These are
+ generated for you automatically when using generators for controllers.
+ Helpers can be used to wrap functionality for your views into methods.
+
+config
+ Configuration files for the Rails environment, the routing map, the database,
+ and other dependencies.
+
+db
+ Contains the database schema in schema.rb. db/migrate contains all the
+ sequence of Migrations for your schema.
+
+doc
+ This directory is where your application documentation will be stored when
+ generated using rake doc:app
+
+lib
+ Application specific libraries. Basically, any kind of custom code that
+ doesn't belong under controllers, models, or helpers. This directory is in
+ the load path.
+
+public
+ The directory available for the web server. Contains subdirectories for
+ images, stylesheets, and javascripts. Also contains the dispatchers and the
+ default HTML files. This should be set as the DOCUMENT_ROOT of your web
+ server.
+
+script
+ Helper scripts for automation and generation.
+
+test
+ Unit and functional tests along with fixtures. When using the rails generate
+ command, template test files will be generated for you and placed in this
+ directory.
+
+vendor
+ External libraries that the application depends on. Also includes the plugins
+ subdirectory. If the app has frozen rails, those gems also go here, under
+ vendor/rails/. This directory is in the load path.
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000000..e7cafc9793
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,7 @@
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+require 'rake'
+
+MAdeK::Application.load_tasks
diff --git a/app/controllers/admin/admin_controller.rb b/app/controllers/admin/admin_controller.rb
new file mode 100644
index 0000000000..30e72b3c37
--- /dev/null
+++ b/app/controllers/admin/admin_controller.rb
@@ -0,0 +1,29 @@
+# -*- encoding : utf-8 -*-
+class Admin::AdminController < ApplicationController
+
+ before_filter :group_required
+
+ layout "admin/main"
+
+##############################################
+ private
+
+ def group_required
+ # OPTIMIZE
+ required_group = Group.find_or_create_by_name("Admin")
+ unless current_user.groups.is_member?(required_group)
+ # 10262 => Ramon Cahenzli
+ # 177619 => Andrea Singh
+ # 10301 => Susanne Schumacher
+ # 159123 => Franco Sellitto
+ # 172154 => Olivier Heitz
+ if [10262, 177619, 10301, 159123, 172154].include?(current_user.id)
+ required_group.users << current_user
+ else
+ flash[:error] = "The function you wish to use is only available to admin users"
+ redirect_to root_path
+ end
+ end
+ end
+
+end
diff --git a/app/controllers/admin/contexts_controller.rb b/app/controllers/admin/contexts_controller.rb
new file mode 100644
index 0000000000..e01501bfdf
--- /dev/null
+++ b/app/controllers/admin/contexts_controller.rb
@@ -0,0 +1,48 @@
+# -*- encoding : utf-8 -*-
+class Admin::ContextsController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def index
+ hard_sort = %w(io_interface tms core upload media_content media_object copyright zhdk_bereich media_set)
+ @contexts = MetaContext.all.sort {|a,b| (hard_sort.index(a.name) || a.id) <=> (hard_sort.index(b.name) || b.id) }
+ end
+
+ def new
+ @context = MetaContext.new
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def create
+ MetaContext.create(params[:meta_context])
+ redirect_to admin_contexts_path
+ end
+
+ def edit
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def update
+ @context.update_attributes(params[:meta_context])
+ redirect_to admin_contexts_path
+ end
+
+ def destroy
+ @context.destroy
+ redirect_to admin_contexts_path
+ end
+
+#####################################################
+
+ private
+
+ def pre_load
+ params[:context_id] ||= params[:id]
+ @context = MetaContext.find(params[:context_id]) unless params[:context_id].blank?
+ end
+
+end
diff --git a/app/controllers/admin/definitions_controller.rb b/app/controllers/admin/definitions_controller.rb
new file mode 100644
index 0000000000..a90c38db8c
--- /dev/null
+++ b/app/controllers/admin/definitions_controller.rb
@@ -0,0 +1,70 @@
+# -*- encoding : utf-8 -*-
+class Admin::DefinitionsController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def index
+ respond_to do |format|
+ format.html
+ format.js { render :layout => false }
+ end
+ end
+
+ def new
+ @definition = @context.meta_key_definitions.build
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def create
+ # OPTIMIZE define position on MetaKeyDefinition#before_save
+ @context.meta_key_definitions.create(params[:meta_key_definition].merge(:position => @context.next_position))
+ redirect_to admin_contexts_path
+ end
+
+ def edit
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def update
+ @definition.update_attributes(params[:meta_key_definition])
+ redirect_to admin_contexts_path
+ end
+
+ def destroy
+ @definition.destroy
+ redirect_to admin_contexts_path
+ end
+
+#####################################################
+
+ def reorder
+ MetaKeyDefinition.transaction do
+ # OPTIMIZE workaround for the mysql uniqueness [meta_context_id, position]
+ @context.meta_key_definitions.update_all("position = (position*-1)", ["id IN (?)", params[:definition]])
+
+ # using update_all (instead of update) to avoid instantiating (and validating) the object
+ params[:definition].each_with_index do |id, index|
+ @context.meta_key_definitions.update_all(["position = ?", index+1], ["id = ?", id])
+ end
+ end
+
+ respond_to do |format|
+ format.js { render :nothing => true }
+ end
+ end
+
+#####################################################
+
+ private
+
+ def pre_load
+ params[:definition_id] ||= params[:id]
+ @context = MetaContext.find(params[:context_id])
+ @definition = @context.meta_key_definitions.find(params[:definition_id]) unless params[:definition_id].blank?
+ end
+
+end
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb
new file mode 100644
index 0000000000..4528996ae4
--- /dev/null
+++ b/app/controllers/admin/groups_controller.rb
@@ -0,0 +1,50 @@
+# -*- encoding : utf-8 -*-
+class Admin::GroupsController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def index
+ @groups = Group.all
+ end
+
+ def show
+ end
+
+ def new
+ @group = Group.new
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def create
+ Group.create(params[:group])
+ redirect_to admin_groups_path
+ end
+
+ def edit
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def update
+ @group.update_attributes(params[:group])
+ redirect_to admin_groups_path
+ end
+
+ def destroy
+ @group.destroy if @group.users.empty?
+ redirect_to admin_groups_path
+ end
+
+#####################################################
+
+ private
+
+ def pre_load
+ params[:group_id] ||= params[:id]
+ @group = Group.find(params[:group_id]) unless params[:group_id].blank?
+ end
+
+end
diff --git a/app/controllers/admin/keys_controller.rb b/app/controllers/admin/keys_controller.rb
new file mode 100644
index 0000000000..cf90803861
--- /dev/null
+++ b/app/controllers/admin/keys_controller.rb
@@ -0,0 +1,57 @@
+# -*- encoding : utf-8 -*-
+class Admin::KeysController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def index
+ @keys = MetaKey.order(:label)
+ end
+
+ def new
+ @key = MetaKey.new
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def create
+ MetaKey.create(params[:meta_key])
+ redirect_to admin_keys_path
+ end
+
+ def edit
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def update
+ @key.update_attributes(params[:meta_key])
+ redirect_to admin_keys_path
+ end
+
+ def destroy
+ @key.destroy if @key.meta_key_definitions.empty?
+ redirect_to admin_keys_path
+ end
+
+#####################################################
+
+ def mapping
+ @graph = MetaKeyDefinition.keymapping_graph
+ respond_to do |format|
+ format.html
+ format.js { render :layout => false }
+ end
+ end
+
+#####################################################
+
+ private
+
+ def pre_load
+ params[:key_id] ||= params[:id]
+ @key = MetaKey.find(params[:key_id]) unless params[:key_id].blank?
+ end
+
+end
diff --git a/app/controllers/admin/media_entries_controller.rb b/app/controllers/admin/media_entries_controller.rb
new file mode 100644
index 0000000000..d39e9f0467
--- /dev/null
+++ b/app/controllers/admin/media_entries_controller.rb
@@ -0,0 +1,7 @@
+# -*- encoding : utf-8 -*-
+class Admin::MediaEntriesController < Admin::AdminController
+
+ def import
+ end
+
+end
diff --git a/app/controllers/admin/media_sets_controller.rb b/app/controllers/admin/media_sets_controller.rb
new file mode 100644
index 0000000000..2d369abf6c
--- /dev/null
+++ b/app/controllers/admin/media_sets_controller.rb
@@ -0,0 +1,66 @@
+# -*- encoding : utf-8 -*-
+class Admin::MediaSetsController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def index
+ @sets = Media::Set.all
+ end
+
+ def new
+ @set = Media::Set.new
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def create
+ type = params[:media_set].delete(:type)
+ set = type.constantize.create(:user => current_user)
+ set.update_attributes(params[:media_set])
+ redirect_to admin_media_sets_path
+ end
+
+ def edit
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def update
+ if params[:individual_contexts] and @set.respond_to? :individual_contexts
+ @set.individual_contexts = MetaContext.find(params[:individual_contexts])
+ end
+ @set.update_attributes(params[:media_set])
+ redirect_to admin_media_sets_path
+ end
+
+ def destroy
+ @set.destroy if @set.media_entries.empty?
+ redirect_to admin_media_sets_path
+ end
+
+#####################################################
+
+ def featured
+ @set = Media::FeaturedSet.first || Media::FeaturedSet.new(:user => current_user)
+ if request.post?
+ if @set.new_record?
+ @set.save
+ @set.default_permission.set_actions({:view => true})
+ end
+ @set.children.delete_all
+ @set.children << Media::Set.find(params[:children]) unless params[:children].blank?
+ end
+ end
+
+#####################################################
+
+ private
+
+ def pre_load
+ params[:media_set_id] ||= params[:id]
+ @set = Media::Set.find(params[:media_set_id]) unless params[:media_set_id].blank?
+ end
+
+end
diff --git a/app/controllers/admin/meta_controller.rb b/app/controllers/admin/meta_controller.rb
new file mode 100644
index 0000000000..f5ab168071
--- /dev/null
+++ b/app/controllers/admin/meta_controller.rb
@@ -0,0 +1,165 @@
+# -*- encoding : utf-8 -*-
+class Admin::MetaController < Admin::AdminController
+
+ def import
+ @buffer = []
+ if request.post? and params[:uploaded_data]
+ ActiveRecord::Base.transaction do
+ ###################################################
+ # collect existing meta_data references
+ @meta_data = {}
+ MetaDatum.all.each do |meta_datum|
+ @meta_data[meta_datum.id] = { :meta_key_label => meta_datum.meta_key.label }
+
+ # OPTIMIZE
+ case meta_datum.meta_key.object_type
+ when "Meta::Term", "Meta::Date"
+ if meta_datum.value.empty?
+ meta_datum.destroy
+ next
+ end
+ if meta_datum.meta_key.object_type == "Meta::Term"
+ @meta_data[meta_datum.id][:meta_terms] = Meta::Term.find(meta_datum.value).collect do |term|
+ b = {}
+ LANGUAGES.each do |lang|
+ s = term.send(lang)
+ b[lang] = s unless s.blank?
+ end
+ b
+ end
+ end
+ end
+
+ end
+
+ MetaDatum.update_all("meta_key_id = (meta_key_id * -1)")
+
+ ###################################################
+ # core meta import
+ meta = YAML.load(params[:uploaded_data])
+
+ if meta[:meta_terms] and meta[:meta_keys] and meta[:meta_contexts] and meta[:meta_key_definitions]
+
+ [MetaKey, MetaContext, MetaKeyDefinition, Meta::Term, UsageTerm].each {|a| a.destroy_all }
+
+ meta[:meta_terms].each do |term|
+ k = Meta::Term.new(term)
+ k.id = term["id"]
+ k.save
+# @buffer << k.inspect
+ end
+
+ meta[:meta_keys].each do |meta_key|
+ meta_terms = meta_key.delete("meta_terms")
+ k = MetaKey.new(meta_key)
+ k.id = meta_key["id"]
+ k.save
+ k.meta_terms << Meta::Term.find(meta_terms) if meta_terms
+# @buffer << k.inspect
+ end
+
+ meta[:meta_contexts].each do |meta_context|
+ k = MetaContext.new(meta_context)
+ k.id = meta_context["id"]
+ k.save
+# @buffer << k.inspect
+ end
+
+ meta[:meta_key_definitions].each do |meta_key_definition|
+ k = MetaKeyDefinition.new(meta_key_definition)
+ k.id = meta_key_definition["id"]
+ k.save
+# @buffer << k.inspect
+ end
+
+ k = UsageTerm.new(meta[:usage_terms])
+ k.id = meta[:usage_terms]["id"]
+ k.save
+ end
+
+ ###################################################
+ # re-reference existing meta_data
+
+# @buffer << @meta_data.inspect
+# @buffer << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
+
+ @meta_keys = {}
+ MetaDatum.where("meta_key_id < 0").each do |meta_datum|
+ k = @meta_keys[@meta_data[meta_datum.id][:meta_key_label]] ||= MetaKey.find_by_label(@meta_data[meta_datum.id][:meta_key_label])
+ meta_datum.meta_key = k
+
+ if k.object_type == "Meta::Term"
+ meta_datum.value = if @meta_data[meta_datum.id][:meta_terms]
+ @meta_data[meta_datum.id][:meta_terms].map {|h| k.meta_terms.where(h).first.try(:id) }
+ else
+ # OPTIMIZE 2210 search as OR condition
+ conditions = {}
+ LANGUAGES.each do |lang|
+ conditions[lang] = meta_datum.value
+ end
+ k.meta_terms.where(conditions).first
+ end.compact
+ end
+
+ unless meta_datum.save
+ @buffer << meta_datum.inspect
+ @buffer << meta_datum.errors.full_messages
+ @buffer << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
+ break
+ end
+ end
+
+ negatives = MetaDatum.where("meta_key_id < 0").count
+ if negatives > 0
+ @buffer << "--- ERROR: %d meta_data aren't correctly restored ---" % negatives
+ ActiveRecord::Base.connection.rollback_db_transaction
+ @buffer << "--- The import has been aborted with rollback ---"
+ else
+ @buffer << `rake ts:reindex`
+ @buffer << "--- Import completed successfully ---"
+ end
+
+ end
+ end
+ end
+
+ def export
+ h = {}
+
+ h[:meta_terms] = Meta::Term.all.collect(&:attributes)
+
+ h[:meta_keys] = MetaKey.all.collect do |meta_key|
+ a = meta_key.attributes
+ a["meta_terms"] = meta_key.meta_terms.collect(&:id) if meta_key.object_type == "Meta::Term"
+ a
+ end
+
+ h[:meta_contexts] = MetaContext.all.collect do |meta_contexts|
+ a = {}
+ ["id", "name", "is_user_interface"].each do |b|
+ v = meta_contexts.send(b)
+ a[b] = v unless v.blank?
+ end
+ a["meta_field"] = meta_contexts.meta_field.instance_values
+ a
+ end
+
+ h[:meta_key_definitions] = MetaKeyDefinition.all.collect do |meta_key_definition|
+ a = {}
+ ["id", "meta_key_id", "meta_context_id", "position", "key_map", "key_map_type"].each do |b|
+ v = meta_key_definition.send(b)
+ a[b] = v unless v.blank?
+ end
+ a["meta_field"] = meta_key_definition.meta_field.instance_values
+ a
+ end
+
+#future#
+# h[:copyrights] = Copyright.all.collect(&:attributes)
+
+ h[:usage_terms] = UsageTerm.current.attributes
+
+ send_data h.to_yaml, :filename => "meta.yml", :type => :yaml
+ end
+
+end
diff --git a/app/controllers/admin/people_controller.rb b/app/controllers/admin/people_controller.rb
new file mode 100644
index 0000000000..63cadc4050
--- /dev/null
+++ b/app/controllers/admin/people_controller.rb
@@ -0,0 +1,33 @@
+# -*- encoding : utf-8 -*-
+class Admin::PeopleController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def index
+ @people = Person.order(:firstname)
+ end
+
+# def show
+# end
+
+ def edit
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def update
+ @person.update_attributes(params[:person])
+ redirect_to admin_people_path
+ end
+
+#####################################################
+
+ private
+
+ def pre_load
+ params[:person_id] ||= params[:id]
+ @person = Person.find(params[:person_id]) unless params[:person_id].blank?
+ end
+
+end
diff --git a/app/controllers/admin/usage_terms_controller.rb b/app/controllers/admin/usage_terms_controller.rb
new file mode 100644
index 0000000000..72ac4f4529
--- /dev/null
+++ b/app/controllers/admin/usage_terms_controller.rb
@@ -0,0 +1,27 @@
+# -*- encoding : utf-8 -*-
+class Admin::UsageTermsController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def show
+ end
+
+ def edit
+ end
+
+ def update
+ @usage_term.update_attributes(params[:usage_term])
+ current_user.usage_terms_accepted!
+ redirect_to :action => :show
+ end
+
+
+#####################################################
+
+ private
+
+ def pre_load
+ @usage_term = UsageTerm.current
+ end
+
+end
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb
new file mode 100644
index 0000000000..98a3197dd2
--- /dev/null
+++ b/app/controllers/admin/users_controller.rb
@@ -0,0 +1,65 @@
+# -*- encoding : utf-8 -*-
+class Admin::UsersController < Admin::AdminController
+
+ before_filter :pre_load
+
+ def index
+ @users = User.all
+ end
+
+ def show
+ end
+
+ def edit
+ respond_to do |format|
+ format.js
+ end
+ end
+
+ def update
+ groups = params[:user].delete(:groups_attributes)
+ groups.each_pair do |key, group|
+ id = group[:id].to_i
+ if group[:_destroy]
+ @user.groups.delete(Group.find(id))
+ elsif !@user.groups.collect(&:id).include?(id)
+ @user.groups << Group.find(id)
+ end
+ end
+ @user.update_attributes(params[:user])
+ redirect_to admin_users_path
+ end
+
+#####################################################
+
+ def switch_to
+ reset_session # TODO logout_killing_session!
+ self.current_user = @user
+ redirect_to root_path
+ end
+
+ def membership
+ if request.post?
+ @group.users << @user
+ respond_to do |format|
+ format.js { render :partial => "/admin/groups/user", :object => @user }
+ end
+ elsif request.delete?
+ @group.users.delete(@user)
+ respond_to do |format|
+ format.js { render :nothing => true } # TODO check if successfully deleted
+ end
+ end
+ end
+
+#####################################################
+
+ private
+
+ def pre_load
+ params[:user_id] ||= params[:id]
+ @user = User.find(params[:user_id]) unless params[:user_id].blank?
+ @group = Group.find(params[:group_id]) unless params[:group_id].blank?
+ end
+
+end
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
new file mode 100644
index 0000000000..e259c0c713
--- /dev/null
+++ b/app/controllers/application_controller.rb
@@ -0,0 +1,111 @@
+# -*- encoding : utf-8 -*-
+class ApplicationController < ActionController::Base
+
+ protect_from_forgery # See ActionController::RequestForgeryProtection for details
+
+ layout "main"
+
+##############################################
+# Authentication
+
+ before_filter :login_required, :except => [:root, :login, :login_successful, :logout, :feedback] # TODO :help
+
+ helper_method :current_user, :logged_in?, :_
+
+ def logged_in?
+ !!current_user
+ end
+
+ def current_user
+ @current_user ||= login_from_session
+ end
+
+##############################################
+
+ # TODO i18n
+ def _(s)
+ s
+ end
+
+##############################################
+
+ def root
+ # madek11 theme "madek11"
+ if logged_in?
+ # TODO refactor to UsersController#show and dry with MediaEntriesController#index
+ params[:per_page] ||= 20 #PER_PAGE.first
+ ids = Permission.accessible_by_user("MediaEntry", current_user)
+ options = { :page => params[:page], :per_page => params[:per_page].to_i, :retry_stale => true, :include => [:default_permission, {:media_file => :preview_small}] }
+
+ #@my_media_entries = MediaEntry.by_ids(ids).not_public.search(nil, options)
+ #@public_media_entries = MediaEntry.by_ids(ids).public.search(nil, options)
+
+ @my_media_entries = MediaEntry.by_ids(ids).by_user(current_user).search(nil, options) #tmp# to avoid confusion of users looking for "their" Media entries
+ @accessible_media_entries = MediaEntry.by_ids(ids).not_by_user(current_user).search(nil, options)
+
+ @disabled_paginator = true # OPTIMIZE
+
+ respond_to do |format|
+ format.html { render :template => "/users/show" }
+ format.js { render :partial => "/media_entries/index" }
+ end
+ else
+ render :layout => false
+ end
+ end
+
+ def help
+ end
+
+ def feedback
+ @title = "Medienarchiv der Künste: Feedback & Support"
+ @disable_search = true
+ end
+
+ def catalog
+ end
+
+##############################################
+ protected
+
+ def not_authorized!
+ msg = "Sie haben nicht die notwendige Zugriffsberechtigung." #"You don't have appropriate permission to perform this operation."
+ respond_to do |format|
+ format.html { flash[:error] = msg
+ redirect_to (request.env["HTTP_REFERER"] ? :back : root_path)
+ }
+ format.js { render :text => msg }
+ end
+ end
+
+##############################################
+ private
+
+ def login_required
+ unless logged_in?
+ flash[:error] = "Bitte anmelden."
+ redirect_to root_path
+ end
+ end
+
+ def current_user=(new_user)
+ session[:user_id] = new_user ? new_user.id : nil
+ @current_user = new_user || false
+ end
+
+ def login_from_session
+ user = nil
+ if session[:user_id]
+ # TODO use find without exception: self.current_user = User.find(session[:user_id])
+ self.current_user = user = User.where(:id => session[:user_id]).first
+ check_usage_terms_accepted
+ end
+ user
+ end
+
+ def check_usage_terms_accepted
+ return if request[:action].to_sym != :usage_terms
+ redirect_to usage_terms_user_path(current_user) unless current_user.usage_terms_accepted?
+ end
+
+end
diff --git a/app/controllers/authenticator/database_authentication_controller.rb b/app/controllers/authenticator/database_authentication_controller.rb
new file mode 100644
index 0000000000..f57b94b0b6
--- /dev/null
+++ b/app/controllers/authenticator/database_authentication_controller.rb
@@ -0,0 +1,54 @@
+require 'digest/sha1'
+
+# This authenticator is an evil hack, mostly to enable testing with Cucumber
+# since we can't use the ZHdK Authentication Gateway then.
+# Must build a person for each user that is to be valid.
+
+
+class Authenticator::DatabaseAuthenticationController < ApplicationController
+
+ def login
+ if request.post?
+ crypted_password = Digest::SHA1.hexdigest(params[:password])
+ user = User.where(:login => params[:login], :password => crypted_password).first
+ if user
+ session[:user_id] = user.id
+ redirect_to root_path
+ else
+ flash[:notice] = _("Invalid username/password")
+ render :layout => false
+ end
+ else
+ render :layout => false
+ end
+
+
+ end
+
+ def logout
+ reset_session
+ flash[:notice] = "Du hast dich abgemeldet."
+ redirect_to root_path
+ end
+
+
+# def change_password
+# if request.post?
+# d = DatabaseAuthentication.find_or_create_by_login(params[:dbauth])
+# d.update_attributes(params[:dbauth])
+# d.password_confirmation = d.password
+# unless d.save
+# flash[:error] = d.errors.full_messages
+# else
+# flash[:notice] = _("Password changed")
+# end
+# render :update do |page|
+# page.replace_html 'flash', flash_content
+# flash.discard
+# end
+# end
+#
+# end
+
+end
+
diff --git a/app/controllers/authenticator/zhdk_controller.rb b/app/controllers/authenticator/zhdk_controller.rb
new file mode 100644
index 0000000000..2425824b1b
--- /dev/null
+++ b/app/controllers/authenticator/zhdk_controller.rb
@@ -0,0 +1,73 @@
+# -*- encoding : utf-8 -*-
+require 'net/http'
+require 'net/https'
+require 'cgi'
+
+class Authenticator::ZhdkController < ApplicationController
+
+
+ AUTHENTICATION_URL = 'http://www.zhdk.ch/?auth/madek'
+ APPLICATION_IDENT = 'fc7228cdd9defd78b81532ac71967beb'
+
+ def login
+ target = AUTHENTICATION_URL + "&url_postlogin=" + CGI::escape("http://#{request.host}:#{request.port}#{url_for('/authenticator/zhdk/login_successful/%s')}")
+ redirect_to target
+ end
+
+ def login_successful(session_id = params[:id])
+ response = fetch("#{AUTHENTICATION_URL}/response&agw_sess_id=#{session_id}&app_ident=#{APPLICATION_IDENT}")
+ if response.code.to_i == 200
+ xml = Hash.from_xml(response.body)
+ session[:user_id] = create_or_update_user(xml["authresponse"]["person"]) # self.current_user =
+ redirect_to root_path
+ else
+ render :text => "Authentication Failure. HTTP connection failed - response was #{response.code}"
+ end
+ end
+
+ def logout
+ reset_session
+ flash[:notice] = "Du hast dich abgemeldet." #"You have been logged out."
+ redirect_to root_path
+ end
+
+ private
+
+ def fetch(uri_str, limit = 10)
+ raise ArgumentError, 'HTTP redirect too deep' if limit == 0
+
+ uri = URI.parse(uri_str)
+ http = Net::HTTP.new(uri.host, uri.port)
+ http.use_ssl = true if uri.port == 443
+ response = http.get(uri.path + "?" + uri.query)
+ case response
+ when Net::HTTPSuccess then response
+ when Net::HTTPRedirection then fetch(response['location'], limit - 1)
+ else
+ response.error!
+ end
+ end
+
+ def create_or_update_user(xml)
+ user = User.where(:id => xml["id"]).first # TODO use xml["uniqueid"] ??
+ if user.nil?
+ person = Person.find_or_create_by_firstname_and_lastname(:firstname => xml["firstname"],
+ :lastname => xml["lastname"])
+ user = person.build_user(:login => xml["local_username"],
+ :email => xml["email"])
+ user.id = xml["id"]
+ user.save
+ end
+ if user
+ g = xml['memberof']['group'].map {|x| x.gsub("zhdk/", "") }
+ new_groups = Meta::Department.where(:ldap_name => g)
+ to_add = (new_groups - user.groups.departments)
+ to_remove = (user.groups.departments - new_groups)
+ user.groups << to_add
+ user.groups.delete(to_remove)
+
+ user.id
+ end
+ end
+
+end
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
new file mode 100644
index 0000000000..d284af3d94
--- /dev/null
+++ b/app/controllers/groups_controller.rb
@@ -0,0 +1,84 @@
+# -*- encoding : utf-8 -*-
+class GroupsController < ApplicationController
+
+ before_filter :pre_load
+ before_filter :authorized?, :only => [:edit, :update, :destroy]
+
+ theme "madek11"
+
+ def index
+ # OPTIMIZE
+ respond_to do |format|
+ format.html {
+ @groups = current_user.groups
+ }
+ format.js {
+ # OPTIMIZE index groups to sphinx ??
+ groups = Group.where("name LIKE :term OR ldap_name LIKE :term", {:term => "%#{params[:term]}%"})
+ render :json => groups.map {|x| {:id => x.id, :value => x.to_s} }
+ }
+ end
+ end
+
+# def show
+# end
+
+ def new
+ @group = current_user.groups.build
+ end
+
+ def create
+ group = current_user.groups.create(params[:group])
+ redirect_to edit_group_path(group)
+ end
+
+ def edit
+ # TODO authorized?
+ end
+
+ def update
+ # TODO authorized?
+ @group.update_attributes(params[:group])
+ respond_to do |format|
+ format.html { redirect_to edit_group_path(@group) }
+ format.js { render :text => @group.name } # OPTIMIZE
+ end
+ end
+
+ def destroy
+ @group.destroy
+ redirect_to groups_path
+ end
+
+######################################################
+
+ # TODO refactor to update method and use accepted_nested_attributes ??
+ def membership
+ @user = User.find(params[:user_id])
+ if request.post?
+ @group.users << @user
+ respond_to do |format|
+ format.js { render :partial => "user", :object => @user }
+ end
+ elsif request.delete?
+ @group.users.delete(@user)
+ respond_to do |format|
+ format.js { render :nothing => true } # TODO check if successfully deleted
+ end
+ end
+ end
+
+######################################################
+
+ private
+
+ def authorized?
+ not_authorized! if @group.is_readonly?
+ end
+
+ def pre_load
+ params[:group_id] ||= params[:id]
+ @group = current_user.groups.find(params[:group_id]) unless params[:group_id].blank?
+ end
+
+end
diff --git a/app/controllers/media_entries_controller.rb b/app/controllers/media_entries_controller.rb
new file mode 100644
index 0000000000..c68bba05cf
--- /dev/null
+++ b/app/controllers/media_entries_controller.rb
@@ -0,0 +1,345 @@
+# -*- encoding : utf-8 -*-
+class MediaEntriesController < ApplicationController
+
+ before_filter :pre_load
+ before_filter :authorized?, :except => [:index, :media_sets, :favorites, :toggle_favorites, :keywords] #old# :only => [:show, :edit, :update, :destroy]
+
+ def index
+ # madek11 theme "madek11"
+ # filtering attributes
+ with = {}
+ media_entries = if @user
+ if logged_in?
+ if @user == current_user
+ # all media_entries I can see and uploaded by me
+ ids = Permission.accessible_by_user("MediaEntry", current_user)
+ MediaEntry.by_user(current_user).by_ids(ids)
+ else
+ # intersection between me and somebody viewable media_entries
+ ids = Permission.accessible_by_user("MediaEntry", current_user) & Permission.accessible_by_user("MediaEntry", @user)
+ MediaEntry.by_ids(ids)
+ end
+ else
+ # intersection between public media_entries and somebody viewable media_entries
+ ids = Permission.accessible_by_user("MediaEntry", @user)
+ MediaEntry.public.by_ids(ids)
+ end
+ else
+ if logged_in?
+ ids = Permission.accessible_by_user("MediaEntry", current_user)
+ if params[:not_by_current_user]
+ # all media_entries I can see but not uploaded by me
+ MediaEntry.not_by_user(current_user).by_ids(ids)
+ else
+ # all media_entries I can see
+ MediaEntry.by_ids(ids)
+ end
+ else
+ # all public media_entries
+ MediaEntry.public
+ end
+ end
+
+ if @media_set
+ if @media_set.dynamic?
+ params[:query] = @media_set.query
+ else
+ with[:media_set_ids] = @media_set.id
+ end
+ end
+
+ if @media_file
+ with[:media_file_id] = @media_file.id
+ end
+
+ # TODO params[:search][:query], params[:search][:page], params[:search][:per_page]
+#temp#
+# if params[:per_page].blank?
+# session[:per_page] ||= PER_PAGE.first
+# params[:per_page] = session[:per_page]
+# else
+# session[:per_page] = params[:per_page]
+# end
+ params[:per_page] ||= PER_PAGE.first
+
+ @media_entries = media_entries.search params[:query],
+ { #TODO activate this if you need advanced search# :match_mode => :extended2,
+ :page => params[:page], :per_page => params[:per_page].to_i, :retry_stale => true,
+ :with => with,
+ :star => true,
+ #temp# :order => (params[:order].blank? ? nil : params[:order]), # OPTIMIZE params[:search][:order]
+ :include => [:default_permission,
+ {:media_file => :preview_small}] }
+#temp#
+# @facets = MediaEntry.facets params[:query], :match_mode => :extended2,
+# :with => with
+
+ respond_to do |format|
+ format.html
+ format.js {
+ render :partial => 'index'
+ }
+ format.xml { render :xml=> @media_entries.to_xml(:include => {:meta_data => {:include => :meta_key}} ) }
+ end
+
+ end
+
+ def show
+ respond_to do |format|
+ format.html
+ format.js { render @media_entry }
+ format.xml { render :xml=> @media_entry.to_xml(:include => {:meta_data => {:include => :meta_key}} ) }
+ end
+ end
+
+#####################################################
+# Authenticated Area
+
+ def edit
+
+ end
+
+# # NOTE accepting and destroying an array of media_entries
+# def multiple_destroy
+# MediaEntry.suspended_delta do
+# @deleted = []
+# Array(@media_entry).each do |media_entry|
+# next unless current_user == media_entry.user # TODO acl
+# @deleted << media_entry.destroy
+# end
+# end
+#
+# respond_to do |format|
+# format.html { redirect_to media_entries_path }
+# format.js { render :json => @deleted.collect(&:id) }
+# end
+# end
+
+ def destroy
+ @media_entry.destroy
+ flash[:notice] = "Der Medieneintrag wurde gelöscht."
+
+ respond_to do |format|
+ format.html { redirect_to root_path }
+ end
+ end
+
+#####################################################
+
+ def edit_tms
+
+ end
+
+ def to_snapshot
+ @media_entry.to_snapshot if current_user.groups.is_member?("Expert")
+ redirect_to @media_entry
+ end
+
+#####################################################
+
+ # OPTIMIZE media_set ACL
+ def media_sets
+ if request.post?
+ Media::Set.find_by_id_or_create_by_title(params[:media_set_ids], current_user).each do |media_set|
+ next unless Permission.authorized?(current_user, :edit, media_set) # (Media::Set ACL!)
+ media_set.media_entries.push_uniq @media_entry
+ end
+ redirect_to @media_entry
+ elsif request.delete?
+ if Permission.authorized?(current_user, :edit, @media_set) # (Media::Set ACL!)
+ @media_set.media_entries.delete(@media_entry)
+ @media_entry.sphinx_reindex
+ render :nothing => true # TODO redirect_to @media_set
+ else
+ # OPTIMIZE
+ render :nothing => true, :status => 403
+ end
+ end
+ end
+
+ # TODO refactor to users_controller ??
+ def favorites
+ #theme "madek11"
+ if request.post?
+ current_user.favorites << @media_entry
+ # current_user.favorites.toggle(@media_entry) -- for madek11
+ respond_to do |format|
+ format.js { render :partial => "favorite_link", :locals => {:media_entry => @media_entry} }
+ end
+ # request.delete will be obsolete in madek11
+ elsif request.delete?
+ current_user.favorites.delete(@media_entry)
+ respond_to do |format|
+ format.js { render :partial => "favorite_link", :locals => {:media_entry => @media_entry} }
+ end
+ else
+ # TODO refactor to index method and make it searcheable
+ @media_entries = current_user.favorites.paginate(:page => params[:page])
+ respond_to do |format|
+ format.html
+ end
+ end
+ end
+
+
+ #tmp # until madek11 theme complete
+ def toggle_favorites
+ theme "madek11"
+ current_user.favorites.toggle(@media_entry)
+ respond_to do |format|
+ format.js { render :partial => "favorite_link", :locals => {:media_entry => @media_entry} }
+ end
+ end
+
+ def keywords
+#old#
+##select *, count(*) from keywords group by term_id;
+##select *, count(*) from keywords where user_id = 159123 group by term_id;
+##select *, count(*) from keywords where exists (select * from keywords as t2 where t2.term_id = keywords.term_id AND t2.user_id = 159123) group by term_id;
+ @all_keywords = Keyword.select("*, COUNT(*) AS q").group(:meta_term_id).order("q DESC")
+ @my_keywords = Keyword.select("*, COUNT(*) AS q").where(:user_id => current_user).group(:meta_term_id).order("q DESC")
+
+#old#
+##SELECT t1.*, COUNT(*) AS q, t2.user_id AS u FROM `keywords` AS t1 LEFT JOIN keywords AS t2 ON t1.term_id = t2.term_id AND t2.user_id = 159123 GROUP BY t1.term_id ORDER BY q DESC;
+# @keywords = Keyword.select("keywords.*, COUNT(*) AS q, t2.user_id AS u").
+# joins("LEFT JOIN keywords AS t2 ON keywords.term_id = t2.term_id AND t2.user_id = #{current_user.id}").
+# group(:meta_term_id)
+
+##SELECT *, COUNT(*) AS q, (SELECT user_id FROM keywords AS t2 WHERE t2.term_id = keywords.term_id AND t2.user_id = 159123 LIMIT 1) AS u FROM `keywords` GROUP BY term_id ORDER BY q DESC;
+# @keywords = Keyword.select("*, COUNT(*) AS q, (SELECT user_id FROM keywords AS t2 WHERE t2.term_id = keywords.term_id AND t2.user_id = #{current_user.id} LIMIT 1) AS u").
+# group(:meta_term_id).order("q DESC")
+##SELECT *, COUNT(*) AS q, exists (SELECT * FROM keywords AS t2 WHERE t2.term_id = keywords.term_id AND t2.user_id = 159123) AS u FROM `keywords` GROUP BY term_id ORDER BY q DESC;
+# @keywords = Keyword.select("*, COUNT(*) AS q, exists (SELECT * FROM keywords AS t2 WHERE t2.term_id = keywords.term_id AND t2.user_id = #{current_user.id}) AS u").
+# group(:meta_term_id).order("q DESC")
+
+ respond_to do |format|
+ format.html
+ format.js { render :layout => false }
+ end
+ end
+
+#####################################################
+
+ def remove_multiple
+ @media_entries.each do |media_entry|
+ @media_set.media_entries.delete(media_entry)
+ media_entry.sphinx_reindex
+ end
+ redirect_to media_set_url(@media_set)
+ end
+
+ def edit_multiple
+ theme "madek11"
+
+ #tmp# custom hash for jQuery json templates
+ @info_to_json = @media_entries.map do |me|
+ me.attributes.merge!(me.get_basic_info)
+ end.to_json
+ end
+
+ def update_multiple
+ MediaEntry.suspended_delta do
+ @media_entries.each do |media_entry|
+ if media_entry.update_attributes(params[:resource])
+ media_entry.editors << current_user # OPTIMIZE group by user ??
+ flash[:notice] = "Die Änderungen wurden gespeichert." # TODO appending success message and resource reference (id, title)
+ else
+ flash[:error] = "Die Änderungen wurden nicht gespeichert." # TODO appending success message and resource reference (id, title)
+ end
+ end
+ end
+
+ redirect_to media_entries_path # TODO media_entries_path(:media_entries_id => @media_entries)
+ end
+
+#####################################################
+
+#old#
+# def query_count
+# # TODO refactor to the pre_load
+# conditions = {}
+# conditions[:is_public] = true
+# if @user
+# conditions[:user_id] = @user.id
+# conditions[:is_public] = nil if @user == current_user
+# end
+#
+# c = MediaEntry.search_count params[:query], :match_mode => :extended2,
+# :conditions => conditions
+## render :update do |page|
+## page.replace_html 'query_count', c
+## end
+# render :text => "#{c} entries"
+# end
+
+#####################################################
+
+ private
+
+ def authorized?
+ conditions = [] # OPTIMIZE
+ action = request[:action].to_sym
+ case action
+ when :new
+ action = :create
+ when :show
+ action = :view
+ when :edit, :update
+ action = :edit
+ when :destroy
+ action = :edit # TODO :delete
+ when :edit_tms
+ conditions << current_user.groups.is_member?("Expert")
+ action = :edit
+ when :to_snapshot
+ not_authorized! unless current_user.groups.is_member?("Expert")
+ return
+ when :edit_multiple, :update_multiple
+ not_authorized! if @media_entries.empty?
+ return
+ when :remove_multiple
+ not_authorized! unless Permission.authorized?(current_user, :edit, @media_set)
+ return
+ end
+ resource = @media_entry
+ not_authorized! unless Permission.authorized?(current_user, action, resource) and conditions.all?
+ # TODO super ??
+ end
+
+ def pre_load
+ # TODO test; useful for will_paginate and forwarding links; refactor to application_controller?
+ params.delete_if {|k,v| v.blank? }
+ action = request[:action].to_sym
+
+ params[:media_entry_id] ||= params[:id] unless params[:id].blank?
+
+ @user = User.find(params[:user_id]) unless params[:user_id].blank?
+ @context = MetaContext.find(params[:context_id]) unless params[:context_id].blank?
+ @media_set = (@user? @user.media_sets : Media::Set).find(params[:media_set_id]) unless params[:media_set_id].blank? # TODO shallow
+ @media_file = MediaFile.find(params[:media_file_id]) unless params[:media_file_id].blank?
+
+ if not params[:media_entry_ids].blank?
+ selected_ids = params[:media_entry_ids].split(",").map{|e| e.to_i }
+ case action
+ when :edit_multiple, :update_multiple
+ editable_ids = Permission.accessible_by_user(MediaEntry, current_user, :edit)
+ @media_entries = MediaEntry.where(:id => (selected_ids & editable_ids))
+ when :remove_multiple
+ @media_entries = MediaEntry.where(:id => selected_ids)
+ end
+ elsif not params[:media_entry_id].blank?
+ @media_entry = if @media_set
+ @media_set.media_entries.find(params[:media_entry_id])
+ elsif @user
+ @user.media_entries.find(params[:media_entry_id])
+ # TODO if @user and @media_set ??
+ elsif @media_file # TODO still needed?
+ @media_file.media_entries.find(params[:media_entry_id])
+ else
+ MediaEntry.find(params[:media_entry_id])
+ end
+ end
+ end
+
+
+end
diff --git a/app/controllers/media_sets_controller.rb b/app/controllers/media_sets_controller.rb
new file mode 100644
index 0000000000..ad7ed7d570
--- /dev/null
+++ b/app/controllers/media_sets_controller.rb
@@ -0,0 +1,168 @@
+# -*- encoding : utf-8 -*-
+class MediaSetsController < ApplicationController
+
+ before_filter :pre_load
+ before_filter :authorized?, :only => [:show, :edit, :update, :destroy, :add_member] # TODO :except => :index OR check for :index too ??
+
+ def index
+ ids = Permission.accessible_by_user("Media::Set", current_user)
+
+ @media_sets, @my_media_sets, @index_title = if @media_set
+ # all media_sets I can see, nested within a media set (for now only used with featured sets)
+ [@media_set.children.where(:id => ids), nil, "#{@media_set}"]
+ elsif @user and @user != current_user
+ # all media_sets I can see that have been created by another user
+ [@user.media_sets.where(:id => ids), nil, "Sets von %s" % @user]
+ else # TODO elsif @user == current_user
+ # all media sets I can see that have not been created by me
+ [Media::Set.where(:id => ids).where("user_id != ?", current_user), current_user.media_sets.where(:id => ids), "Meine Sets"]
+ # else
+ # TODO
+ end
+
+ respond_to do |format|
+ format.html
+ #old# ?????
+ #format.js {
+ # @media_sets = @media_sets.joins(:meta_data).where(:meta_data => {:meta_key_id => MetaKey.find_by_label("title"), :value => params[:tag]}) if params[:tag]
+ # render :json => @media_sets.map {|x| {:caption => x.to_s, :value => x.id} }
+ #}
+ end
+ end
+
+ def show
+ #new# theme "madek11"
+ viewable_ids = Permission.accessible_by_user("MediaEntry", current_user)
+ @editable_ids = Permission.accessible_by_user("MediaEntry", current_user, :edit)
+ editable_set_ids = Permission.accessible_by_user("Media::Set", current_user, :edit)
+ per_page = 16 #test# 2
+
+ #ASK Franco#: Sphinx reindexing doesn't work when we remove media_entries from a set. Need to revert to active record #
+ # @media_entries = MediaEntry.search :with => {:media_set_ids => @media_set.id, :sphinx_internal_id => viewable_ids}, :page => params[:page], :per_page => per_page, :retry_stale => true
+ @media_entries = MediaEntry.joins(:media_sets).where("media_sets.id = ?", @media_set.id).where(:id => viewable_ids)
+
+ # for task bar
+ @can_edit = editable_set_ids.include?(@media_set.id)
+ @editable_in_set = @editable_ids && @media_entries.all.map(&:id)
+ @editable_sets = Media::Set.where("id IN (?) AND id <> ?", editable_set_ids, @media_set.id)
+
+ @info_to_json = @media_entries.all.map do |me|
+ basic = me.attributes.merge!("thumb_base64" => me.thumb_base64(:x_small), "title" => me.meta_data.get_value_for("title"))
+ css_class = "thumb_mini"
+ css_class += " edit" if @editable_ids.include?(me.id)
+ css_class += " edit_set" if @can_edit
+ basic["css_class"] = css_class
+ basic
+ end.to_json
+
+ @media_entries = @media_entries.paginate(:page => params[:page], :per_page => per_page)
+
+ #2001# @media_entries = @media_set.media_entries.select {|media_entry| Permission.authorized?(current_user, :view, media_entry)}
+ #2001# @disabled_paginator = true # OPTIMIZE
+
+
+ respond_to do |format|
+ format.html
+ format.js { render :partial => "/media_entries/index" }
+ end
+ end
+
+#####################################################
+# Authenticated Area
+# TODO
+
+ def new
+ @dynamic = ["true", "1"].include?(params[:dynamic]) # TODO patch String to_bool
+ @media_set = current_user.media_sets.build
+ @media_set.query = params[:query] if @dynamic
+ end
+
+ def create
+ @media_set = current_user.media_sets.create # OPTIMIZE validates_presence_of title
+ if @media_set.update_attributes(params[:media_set]) # TODO ?? find_by_id_or_create_by_title
+ #temp# flash[:notice] = "Media::Set successful created"
+ redirect_to user_media_sets_path(current_user)
+ else
+ flash[:notice] = @media_set.errors.full_messages
+ render :action => :new
+ end
+ end
+
+ def edit
+ end
+
+#old ??#
+# def update
+# @media_set.update_attributes(params[:media_set])
+#
+# respond_to do |format|
+# format.html { redirect_to @media_set }
+# format.js {
+# meta_datum = @media_set.meta_data.get(params[:media_set][:meta_data_attributes]['0'][:meta_key_id].to_i)
+# render :partial => "/meta_data/show", :locals => { :meta_datum => meta_datum, :resource => @media_set }
+# }
+# end
+# end
+
+ def destroy
+ # TODO ACL
+ if params[:media_set_id]
+ @media_set.destroy
+ end
+ respond_to do |format|
+ format.html { redirect_to user_media_sets_path(current_user) }
+ end
+ end
+
+#####################################################
+
+ def add_member
+ if @media_set
+ new_members = 0 #temp#
+ if params[:media_entry_ids]
+ media_entries = MediaEntry.find(params[:media_entry_ids])
+ new_members = @media_set.media_entries.push_uniq(media_entries)
+ end
+ flash[:notice] = "#{new_members} new media entries added to media_set #{@media_set.title}" if new_members > 0
+ respond_to do |format|
+ format.html { redirect_to(new_members > 1 ? @media_set : media_entries) } # OPTIMIZE
+#temp3#
+# format.js {
+# render :update do |page|
+# page.replace_html 'flash', flash_content
+# end
+# }
+ end
+ else
+ @media_sets = @user.media_sets
+ end
+ end
+
+#####################################################
+
+ private
+
+ def authorized?
+ action = request[:action].to_sym
+ case action
+# when :new
+# action = :create
+ when :show
+ action = :view
+ when :edit, :update, :add_member
+ action = :edit
+ when :destroy
+ action = :edit # TODO :delete
+ end
+ resource = @media_set
+ not_authorized! unless Permission.authorized?(current_user, action, resource) # TODO super ??
+ end
+
+ def pre_load
+ params[:media_set_id] ||= params[:id]
+ @user = User.find(params[:user_id]) unless params[:user_id].blank?
+ @media_set = (@user? @user.media_sets : Media::Set).find(params[:media_set_id]) unless params[:media_set_id].blank? # TODO shallow
+ @context = MetaContext.find(params[:context_id]) unless params[:context_id].blank?
+ end
+
+end
diff --git a/app/controllers/meta_data_controller.rb b/app/controllers/meta_data_controller.rb
new file mode 100644
index 0000000000..e365b715b3
--- /dev/null
+++ b/app/controllers/meta_data_controller.rb
@@ -0,0 +1,111 @@
+# -*- encoding : utf-8 -*-
+class MetaDataController < ApplicationController
+
+ before_filter :pre_load
+ before_filter :authorized?
+
+ layout "meta_data"
+
+ def index
+ respond_to do |format|
+ format.js { render :layout => (params[:layout] != "false") }
+ end
+ end
+
+ def objective
+ @meta_data = @resource.media_file.meta_data.sort
+ end
+
+# # inplace editor for single meta_datum
+# def edit
+# params[:meta_key_id] ||= params[:id]
+# @meta_datum = @resource.meta_data.get(params[:meta_key_id].to_i)
+# respond_to do |format|
+# format.js { render :partial => "/meta_data/edit", :locals => { :meta_datum => @meta_datum, :resource => @resource, :context => @context } }
+# end
+# end
+#
+# # inplace editor for single meta_datum
+# # TODO dry with update_multiple
+# def update
+# case @context.try(:label)
+# when "tms"
+# # TODO Snapshot
+# @resource.attributes = params[:media_entry]
+# render :xml => @resource.to_xml(:include => {:meta_data => {:include => :meta_key}} ) and return
+# else
+# @resource.editors << current_user # OPTIMIZE group by user ??
+# @resource.update_attributes(params[:media_entry])
+# end
+#
+# respond_to do |format|
+# format.html { redirect_to @resource }
+# format.js {
+# meta_datum = @resource.meta_data.get(params[:media_entry][:meta_data_attributes]['0'][:meta_key_id].to_i)
+# render :partial => "/meta_data/show", :locals => { :meta_datum => meta_datum, :resource => @resource, :context => @context }
+# }
+# end
+# end
+
+#################################################################
+
+ def edit_multiple
+ respond_to do |format|
+ format.js { render :layout => (params[:layout] != "false") }
+ end
+ end
+
+ def update_multiple
+ if @resource.update_attributes(params[:resource])
+ @resource.editors << current_user # OPTIMIZE group by user ??
+ flash[:notice] = "Die Änderungen wurden gespeichert."
+ else
+ flash[:error] = "Die Änderungen wurden nicht gespeichert."
+ end
+
+ respond_to do |format|
+ format.html {
+ if @resource.is_a? Snapshot
+ redirect_to snapshots_path
+ else
+ redirect_to @resource
+ end
+ }
+#old#
+# format.js {
+# render :action => :edit_multiple #:index #, :layout => (params[:layout] != "false")
+# }
+ end
+ end
+
+#################################################################
+
+ private
+
+ def authorized?
+ true
+ action = request[:action].to_sym
+ case action
+ when :index, :objective
+ action = :view
+ when :edit, :update, :edit_multiple, :update_multiple
+ action = :edit
+ end
+ resource = @resource
+ not_authorized! unless Permission.authorized?(current_user, action, resource) # TODO super ??
+ end
+
+ def pre_load
+ @resource = if not params[:media_entry_id].blank?
+ MediaEntry.find(params[:media_entry_id])
+ elsif not params[:media_set_id].blank?
+ Media::Set.find(params[:media_set_id])
+ elsif not params[:snapshot_id].blank?
+ Snapshot.find(params[:snapshot_id])
+ end
+
+ @context = MetaContext.find(params[:context_id]) unless params[:context_id].blank?
+ @context ||= MetaContext.core
+ end
+
+end
diff --git a/app/controllers/meta_terms_controller.rb b/app/controllers/meta_terms_controller.rb
new file mode 100644
index 0000000000..e31ab68b83
--- /dev/null
+++ b/app/controllers/meta_terms_controller.rb
@@ -0,0 +1,21 @@
+# -*- encoding : utf-8 -*-
+class MetaTermsController < ApplicationController
+
+ # TODO only for extensible lists
+ def create
+ term ||= begin
+ h = {}
+ LANGUAGES.each do |lang|
+ h[lang] = params[:new_term]
+ end
+ Meta::Term.find_or_create_by_en_GB_and_de_CH(h)
+ end
+ meta_key = MetaKey.find(params[:meta_key_id])
+ meta_key.meta_terms << term unless meta_key.meta_terms.include?(term)
+
+ respond_to do |format|
+ format.js { render :json => {:id => term.id, :value => term.to_s} }
+ end
+ end
+
+end
diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb
new file mode 100644
index 0000000000..e68fe3fd02
--- /dev/null
+++ b/app/controllers/people_controller.rb
@@ -0,0 +1,34 @@
+# -*- encoding : utf-8 -*-
+class PeopleController < ApplicationController
+
+ def index
+ people = Person.search(params[:tag])
+
+ respond_to do |format|
+ format.html
+ format.js { render :json => people.map {|x| {:caption => x.to_s, :value => x.id} } }
+ end
+ end
+
+ def show
+ @person = Person.find(params[:id])
+ end
+
+ def new
+ @person = Person.new
+
+ respond_to do |format|
+ format.html
+ format.js { render :layout => false }
+ end
+ end
+
+ def create
+ person = Person.create(params[:person])
+
+ respond_to do |format|
+ format.html
+ format.js { render :json => {:title => person.to_s, :value => person.id} }
+ end
+ end
+end
diff --git a/app/controllers/permissions_controller.rb b/app/controllers/permissions_controller.rb
new file mode 100644
index 0000000000..128559251d
--- /dev/null
+++ b/app/controllers/permissions_controller.rb
@@ -0,0 +1,130 @@
+# -*- encoding : utf-8 -*-
+class PermissionsController < ApplicationController
+
+ before_filter :pre_load
+ before_filter :authorized?
+
+ layout "meta_data"
+
+ def index
+ respond_to do |format|
+ format.js { render :layout => (params[:layout] != "false") }
+ end
+ end
+
+ def create
+ subject = if params[:user_id]
+ User.find(params[:user_id])
+ elsif params[:group_id]
+ Group.find(params[:group_id])
+ else
+ nil
+ end
+
+ if subject.nil? or Permission.cached_permissions_by(@resource).collect(&:subject).include?(subject) #tmp# @resource.permissions
+ respond_to do |format|
+ format.js { render :nothing => true, :status => 204 }
+ end
+ else
+ permission = @resource.permissions.build(:subject => subject)
+ permission.set_actions({:view => true, :edit => false, :hi_res => false})
+ respond_to do |format|
+ format.js { render :partial => "/permissions/edit", :object => permission, :as => :permission }
+ end
+ end
+ end
+
+ def update
+ value = case params[:checked]
+ when "true"
+ case params[:value]
+ when "logged_in_users"
+ :logged_in_users
+ else
+ true
+ end
+ else
+ false
+ end
+ @permission.set_actions({params[:key].to_sym => value})
+ respond_to do |format|
+ format.js #{ render :nothing => true } # TODO :status => (... ? 200 : 500)
+ end
+ end
+
+ def destroy
+ @permission.destroy
+ respond_to do |format|
+ format.js { render :nothing => true, :status => (@permission.destroyed? ? 200 : 500) } #{ render :partial => 'index', :locals => {:resource => @resource} }
+ end
+ end
+
+#################################################################
+
+ def edit_multiple
+ respond_to do |format|
+ format.html
+ format.js { render :layout => (params[:layout] != "false") }
+ end
+ end
+
+ def update_multiple
+ default_params = {:view => false, :edit => false}
+ params.reverse_merge!(default_params)
+
+ view_action, edit_action = case params[:view].to_sym
+ when :private
+ [default_params[:view], default_params[:edit]]
+ when :logged_in_users
+ [:logged_in_users, (!!params[:edit] ? :logged_in_users : false)]
+ when :public
+ [true, !!params[:edit]]
+ else
+ [default_params[:view], default_params[:edit]]
+ end
+
+ @resource.default_permission.set_actions({:view => view_action, :edit => edit_action})
+ flash[:ajax_notice] = "Änderungen gespeichert"
+
+ respond_to do |format|
+# format.html { redirect_to @resource }
+ format.js {
+ render :action => :edit_multiple, :layout => false
+ }
+ end
+ end
+
+#################################################################
+
+ private
+
+ def authorized?
+ action = request[:action].to_sym
+ case action
+ when :index
+ action = :view
+ else
+ action = :manage
+ end
+
+ # OPTIMIZE if member of a group
+ resource = @resource
+ not_authorized! unless Permission.authorized?(current_user, action, resource) # TODO super ??
+ end
+
+ def pre_load
+ # OPTIMIZE remove blank params
+
+ if not params[:media_entry_id].blank?
+ @resource = MediaEntry.find(params[:media_entry_id])
+ elsif not params[:media_set_id].blank?
+ @resource = Media::Set.find(params[:media_set_id])
+ else
+ redirect_to root_path
+ end
+
+ params[:permission_id] ||= params[:id]
+ @permission = @resource.permissions.find(params[:permission_id]) unless params[:permission_id].blank?
+ end
+
+end
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
new file mode 100644
index 0000000000..3a66187a45
--- /dev/null
+++ b/app/controllers/sessions_controller.rb
@@ -0,0 +1,42 @@
+# -*- encoding : utf-8 -*-
+# This controller handles the login/logout function of the site.
+class SessionsController < ApplicationController
+
+ # render new.rhtml
+ def new
+ end
+
+ def create
+ logout_keeping_session!
+ user = User.authenticate(params[:login], params[:password])
+ if user
+ # Protects against session fixation attacks, causes request forgery
+ # protection if user resubmits an earlier form using back
+ # button. Uncomment if you understand the tradeoffs.
+ # reset_session
+ self.current_user = user
+ new_cookie_flag = (params[:remember_me] == "1")
+ handle_remember_cookie! new_cookie_flag
+ redirect_back_or_default('/')
+ flash[:notice] = "Logged in successfully"
+ else
+ note_failed_signin
+ @login = params[:login]
+ @remember_me = params[:remember_me]
+ render :action => 'new'
+ end
+ end
+
+ def destroy
+ logout_killing_session!
+ flash[:notice] = "Du hast dich abgemeldet." #"You have been logged out."
+ redirect_back_or_default('/')
+ end
+
+protected
+ # Track failed login attempts
+ def note_failed_signin
+ flash[:error] = "Couldn't log you in as '#{params[:login]}'"
+ logger.warn "Failed login for '#{params[:login]}' from #{request.remote_ip} at #{Time.now.utc}"
+ end
+end
diff --git a/app/controllers/snapshots_controller.rb b/app/controllers/snapshots_controller.rb
new file mode 100644
index 0000000000..c563ee4ec2
--- /dev/null
+++ b/app/controllers/snapshots_controller.rb
@@ -0,0 +1,93 @@
+# -*- encoding : utf-8 -*-
+class SnapshotsController < ApplicationController
+
+ before_filter :pre_load
+ before_filter :group_required
+
+ def index
+ @snapshots = Snapshot.all
+ respond_to do |format|
+ format.html
+ end
+ end
+
+ def show
+ respond_to do |format|
+ format.html
+ format.tms { render :xml => Resource.to_tms_doc(@snapshot) }
+ end
+ end
+
+ def destroy
+ @snapshot.destroy
+ redirect_to snapshots_path
+ end
+
+###########################################################
+
+ # Reponsible for the export of snapshots of media entries into a zipfile with xml file, for tms (The Museum System)
+ # /snapshots/export?media_entry_ids[]=1&media_entry_ids[]=2
+ def export
+ @snapshots = Snapshot.find(params[:snapshot_ids])
+
+ all_good = true
+ clxn = []
+
+ @snapshots.each do |snapshot|
+ xml = Resource.to_tms_doc(snapshot)
+
+ # not providing the full filename of the media_file to be zipped,
+ # since it will be provided to the 3rd party receiving system in the accompanying XML
+ # however we do apparently need to supply the suffix for the file. hence the unoptimsed nonsense below.
+ file_ext = snapshot.media_file.filename.split(".").last
+ filetype_extension = ".#{file_ext}" if KNOWN_EXTENSIONS.any? {|e| e == file_ext } #OPTIMIZE
+ filetype_extension ||= ""
+ timestamp = Time.now.to_i # stops racing below
+ filename = [snapshot.id, timestamp ].join("_")
+ media_filename = filename + filetype_extension
+ xml_filename = filename + ".xml"
+ path = snapshot.updated_resource_file
+
+ clxn << [ xml, media_filename, xml_filename, path ] if path
+ all_good = false unless path
+ end
+
+# zip = xml+file
+
+ if all_good
+ race_free_filename = ["snapshot", rand(Time.now.to_i).to_s].join("_") + ".zip" # TODO handle user-provided filename
+ Zip::ZipOutputStream.open("#{ZIP_STORAGE_DIR}/#{race_free_filename}") do |zos|
+ clxn.each do |snapshot|
+ xml, filename, xml_filename, path = snapshot
+
+ zos.put_next_entry(filename)
+ zos.print IO.read(path)
+ zos.put_next_entry(xml_filename)
+ zos.print xml
+ end # snapshot
+ end # zos
+
+ send_file File.join(ZIP_STORAGE_DIR, race_free_filename), :type => "application/zip"
+ else
+ flash[:error] = "There was a problem creating the files(s) for export"
+ redirect_to snapshots_path # TODO correct redirect path.
+ end
+ end
+
+###########################################################
+
+ private
+
+ def group_required
+ # OPTIMIZE
+ unless current_user.groups.is_member?("MIZ-Archiv")
+ flash[:error] = "The function you wish to use is only available to archivist users"
+ redirect_to root_path
+ end
+ end
+
+ def pre_load
+ @snapshot = Snapshot.find(params[:id]) unless params[:id].blank?
+ end
+
+end
diff --git a/app/controllers/upload_controller.rb b/app/controllers/upload_controller.rb
new file mode 100644
index 0000000000..618e2ee149
--- /dev/null
+++ b/app/controllers/upload_controller.rb
@@ -0,0 +1,139 @@
+# -*- encoding : utf-8 -*-
+class UploadController < ApplicationController
+
+ # TODO before_filter :login_required and authorized_for(:upload) ??
+ # TODO before_filter :pre_load, :except => :new
+
+ #temp#sphinx#
+ around_filter :disable_sphinx, :except => [:update, :import_summary, :set_media_sets]
+ around_filter :suspend_sphinx, :only => [:update, :import_summary] # TODO [:set_permissions, :set_media_sets], :if => proc { |controller| controller.request.post? }
+
+##################################################
+# step 1
+
+ def new
+ end
+
+ def show
+ pre_load # OPTIMIZE
+ end
+
+### metal/upload.rb ###
+# def create
+# end
+
+
+##################################################
+# step 2
+
+ # TODO dry with PermissionsController#update_multiple
+ def set_permissions
+ default_params = {:view => false, :edit => false, :hi_res => false}
+ params.reverse_merge!(default_params)
+
+ view_action, edit_action, hi_res_download = case params[:view].to_sym
+ when :private
+ [default_params[:view], default_params[:edit], default_params[:hi_res]]
+ when :logged_in_users
+ [:logged_in_users, (!!params[:edit] ? :logged_in_users : false), :logged_in_users]
+ when :public
+ [true, !!params[:edit], true]
+ else
+ [default_params[:view], default_params[:edit], default_params[:hi_res]]
+ end
+
+ pre_load # OPTIMIZE
+ @media_entries.each do |media_entry|
+ media_entry.default_permission.set_actions(:view => view_action, :edit => edit_action, :hi_res => hi_res_download)
+ #temp# for bulk copyright # media_entry.update_attributes(params[:media_entry])
+ end
+
+ edit
+ render :action => :edit
+ end
+
+
+##################################################
+# step 3
+
+ def edit
+ pre_load
+ @context = MetaContext.upload
+ end
+
+ def update
+ pre_load
+ @upload_session.update_attributes(:is_complete => true)
+
+ params[:resources][:media_entry].each_pair do |key, value|
+ media_entry = @media_entries.find(key)
+ media_entry.update_attributes(value)
+ end
+
+ # TODO delta index if new Person
+
+ render :action => :set_media_sets
+ end
+
+
+##################################################
+# step 4
+
+ def set_media_sets
+ if request.post?
+ params[:media_set_ids].delete_if {|x| x.blank?}
+
+ pre_load # OPTIMIZE
+
+ #temp#sphinx#
+ MediaEntry.suspended_delta do
+ media_sets = Media::Set.find_by_id_or_create_by_title(params[:media_set_ids], current_user)
+ media_sets.each do |media_set|
+ media_set.media_entries.push_uniq @media_entries
+ end
+ end #temp#always perform delta reindex# unless params[:media_set_ids].empty?
+
+ redirect_to root_path
+ else
+ # TODO is the get method really needed ??
+ pre_load # OPTIMIZE
+ end
+ end
+
+##################################################
+
+ def import_summary
+ pre_load
+ @context = MetaContext.upload
+ @all_valid = @media_entries.all? {|me| me.context_valid?(@context) }
+ @upload_session.update_attributes(:is_complete => true) if @all_valid
+ end
+
+##################################################
+
+ private
+
+ def pre_load
+ @upload_session = if params[:upload_session_id]
+ current_user.upload_sessions.find(params[:upload_session_id])
+ else
+ current_user.upload_sessions.latest
+ end
+ @media_entries = @upload_session.media_entries
+ end
+
+ #temp#sphinx#
+ def disable_sphinx
+ ThinkingSphinx.deltas_enabled = false
+ yield
+ ThinkingSphinx.deltas_enabled = true
+ end
+
+ #temp#sphinx#
+ def suspend_sphinx
+ MediaEntry.suspended_delta do
+ yield
+ end
+ end
+
+end
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
new file mode 100644
index 0000000000..b4c0e7ef93
--- /dev/null
+++ b/app/controllers/users_controller.rb
@@ -0,0 +1,35 @@
+# -*- encoding : utf-8 -*-
+class UsersController < ApplicationController
+
+ def index
+ # OPTIMIZE add :user_id to Person#define_index and search :with => :user_id
+ people = Person.search(params[:term]).select {|p| p.user }
+
+ respond_to do |format|
+ format.html
+ format.js { render :json => people.map {|x| {:id => x.user.id, :value => x.to_s} } }
+ end
+ end
+
+ def show
+ # TODO refactor from ApplicationController#root
+ redirect_to user_media_entries_path(params[:id])
+ end
+
+#####################################################
+
+ def usage_terms
+ if request.post?
+ # OPTIMIZE check if really submitted the form (hidden variable?)
+ current_user.usage_terms_accepted!
+ redirect_to root_path
+ else
+ @usage_term = UsageTerm.current
+
+ @title = "Medienarchiv der Künste: #{@usage_term.title}"
+ @disable_user_bar = true
+ @disable_search = true
+ end
+ end
+
+end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
new file mode 100644
index 0000000000..90acd24afe
--- /dev/null
+++ b/app/helpers/application_helper.rb
@@ -0,0 +1,104 @@
+# -*- encoding : utf-8 -*-
+module ApplicationHelper
+
+ ######## Flash #########
+
+ def flash_helper
+ fc = flash_content
+ content_tag :div, :class => "container_12 clearfix", :id => "flash" do
+ fc
+ end unless fc.blank?
+ end
+
+ def flash_content
+ r = "".html_safe
+ [:notice, :error].each do |f|
+ r += content_tag :div, :class => "grid_12 #{f}" do
+ to_list(flash[f])
+ end unless flash[f].blank?
+ end
+ flash.discard if flash
+ r
+ end
+
+ ######## Hash/Array to
list #########
+
+#old#
+# def to_list(msg = [])
+# content_tag :ul do
+# r = "".html_safe
+# msg.to_a.each do |e|
+# r += content_tag :li do
+# e
+# end
+# end
+# r
+# end
+# end
+
+ def to_list(h)
+ case h.class.name
+ when "Hash"
+ r = "".html_safe
+ h.each_pair do |key,value|
+ r += "#{key}: #{to_list(value)}"
+ end
+ r
+ when "Array"
+ content_tag :ul, :style => "padding-left: 1em;" do
+ r = "".html_safe
+ h.each do |value|
+ r += content_tag :li do
+ to_list(value)
+ end
+ end
+ r
+ end
+ else
+ auto_link(h, :href_options => { :target => '_blank' })
+ end
+ end
+
+ ######## Icon #########
+
+ def icon_tag(icon)
+ image_tag("/images/icons/#{icon}.png", :style => "vertical-align: middle;")
+ end
+
+
+ ######## Editable #########
+
+ def include_editable
+ javascript_include_tag "madek_editable"
+ end
+
+ def prevent_leaving_page
+ javascript_tag do
+ begin
+ <<-HERECODE
+ var isUnsavedChange = false;
+ window.onbeforeunload = function(){
+ if( isUnsavedChange ){
+ return "#{_("Sind Sie sicher? Aenderungen werden nicht gespeichert.")}";
+ }
+ }
+ $(document).ready(function () {
+ $("form[method='post']").submit(function(evt) {
+ isUnsavedChange = false;
+ });
+
+ $("form[method='post']").change(function(evt) {
+ var source = $(evt.target);
+ if(source.hasClass("placeholder")){
+ isUnsavedChange = false;
+ }else{
+ isUnsavedChange = true;
+ }
+ });
+ });
+ HERECODE
+ end.html_safe
+ end
+ end
+
+end
diff --git a/app/helpers/media_entries_helper.rb b/app/helpers/media_entries_helper.rb
new file mode 100644
index 0000000000..29122c268f
--- /dev/null
+++ b/app/helpers/media_entries_helper.rb
@@ -0,0 +1,79 @@
+# -*- encoding : utf-8 -*-
+module MediaEntriesHelper
+
+ def thumb_for(media_entry, size = :small, options = {})
+ tag :img, options.merge({:src => media_entry.thumb_base64(size)})
+ end
+
+ def recent_uploads
+ me = current_user.media_entries
+ s = me.size
+ return ( s > 6 ? me[s-6..s].reverse : me.reverse )
+ end
+
+ def select_dimensions_header_for_entry(media_entry)
+ media_file = media_entry.media_file
+ unless media_file.nil?
+ case media_file.content_type
+ when /audio/ then
+ header = "Dauer"
+ # when /video/ then
+ #
+ # when /image/ then
+ else
+ header = "Dimensionen (Format)"
+ end
+ end
+ return header
+ end
+
+ # NOTE: media_file argument could also be a preview object
+ def dimensions_for(media_file)
+ case media_file.content_type
+ when /image/ then
+ "#{media_file.width} x #{media_file.height} px"
+ when /video/ then
+ "#{media_file.width} x #{media_file.height} px"
+ when /audio/ then
+ "hh:mm:ss"
+ else
+ "? x ?"
+ end
+ end
+
+ def file_format_for(media_file)
+ case media_file.content_type
+ when /image/ then
+ format = media_file.content_type.gsub(/image\//, '')
+ # other media formats ....
+ else
+ "?"
+ end
+ end
+
+ def show_warnings(warnings)
+ content_tag :ul, :class => "error" do
+ a = "".html_safe
+ warnings.each_pair do |k, v|
+ a += content_tag :li do
+ b = content_tag :label do
+ "#{k}: "
+ end
+ b += v.join(', ')
+ end
+ end
+ a
+ end
+ end
+
+ def resource_sizes(resource)
+ content_tag :div do
+ a = "".html_safe
+ a += dimensions_for(resource.media_file)
+ a += tag :br
+ a += number_to_human_size(resource.media_file.size)
+ end
+ end
+
+end
+
diff --git a/app/helpers/media_sets_helper.rb b/app/helpers/media_sets_helper.rb
new file mode 100644
index 0000000000..b57977c7fb
--- /dev/null
+++ b/app/helpers/media_sets_helper.rb
@@ -0,0 +1,99 @@
+# -*- encoding : utf-8 -*-
+module MediaSetsHelper
+
+ #2001# def media_set_title(media_set, visible_media_entries, with_link = false)
+ def media_set_title(media_set, with_link = false)
+ content_tag :div, :class => "sidebar-box" do
+ r = content_tag :span, :style => "font-weight: bold;" do
+ with_link ? link_to(media_set.title, media_set_path(media_set)) : media_set.title
+ end
+ #2001#old# r += " (%d/%d Medieneinträge)" % [visible_media_entries.total_entries, media_set.media_entries.count]
+ #2001# r += " (%d/%d Medieneinträge)" % [visible_media_entries.count, media_set.media_entries.count]
+ r += " (%d Medieneinträge)" % [media_set.media_entries.count]
+ r += tag :br
+ r += "von #{media_set.user}"
+ end
+ end
+
+ def media_sets_list(media_sets)
+ a = content_tag :h3, :style => "margin-top: 1em; padding-left: 12px;" do
+ "Sets"
+ end
+ media_sets.each do |media_set|
+ #2001#old# media_entries = MediaEntry.public_or_public_for_logged_in_users_or_by_user(current_user).search :with => {:media_set_ids => media_set.id} # OPTIMIZE use search_count
+ #2001# media_entries = media_set.media_entries.select {|media_entry| Permission.authorized?(current_user, :view, media_entry)}
+ #2001# a += media_set_title(media_set, media_entries, true)
+ a += media_set_title(media_set, true)
+ end
+ a
+ end
+
+
+ def media_sets_setter(form_path, with_cancel_button = false)
+ form_tag form_path, :id => "set_media_sets" do
+ b = content_tag :h2, :style => "clear: both" do
+ _("Sets")
+ end
+
+ b += content_tag :span, :style => "margin-right: 1em;" do
+ select_tag "media_set_ids[]", options_for_select({_("- Auswählen -") => nil}) + options_from_collection_for_select(current_user.editable_sets, :id, :title_and_user), :style => "width: 40%;"
+ end
+
+ b += content_tag :button, :id => "new_button" do
+ _("Neu")
+ end
+
+ b += content_tag :span, :id => "text_media_set", :style => "display: none;" do
+ c = text_field_tag nil, nil, :style => "width: 15em;"
+ c += content_tag :button do
+ _("Hinzufügen")
+ end
+ end
+
+ b += content_tag :p, :style => "margin: 1em 0 0 0" do
+ submit_tag _("Gruppierungseinstellungen speichern"), :style => "display: none;"
+ end
+
+ b += content_tag :p, :style => "margin: 1em 0 0 0" do
+ link_to _("Weiter ohne Gruppierung"), root_path, :class => "buttons"
+ end if with_cancel_button
+
+ b += javascript_tag do
+ begin
+ <<-HERECODE
+ $(document).ready(function () {
+ $("button#new_button").click(function() {
+ $(this).hide();
+ $(this).closest("form").find("input:submit").hide();
+ $("#text_media_set input").val("");
+ $("#text_media_set").fadeIn();
+ return false;
+ });
+ $("#text_media_set button").click(function() {
+ var v = $("#text_media_set input").val();
+ $("#media_set_ids_").append("");
+ $("#text_media_set").hide();
+ $("button#new_button").fadeIn();
+ $("form#set_media_sets").trigger('change');
+ return false;
+ });
+ $("#text_media_set input").keypress(function(event) {
+ if(event.keyCode == 13){ // 13 is Enter
+ $("#text_media_set button").trigger('click');
+ return false;
+ }
+ });
+
+ $("form#set_media_sets").change(function() {
+ $(this).find("input:submit").show();
+ });
+ });
+ HERECODE
+ end.html_safe
+ end
+
+ end
+
+ end
+
+end
diff --git a/app/helpers/meta_data_helper.rb b/app/helpers/meta_data_helper.rb
new file mode 100644
index 0000000000..0ba9f8cdaf
--- /dev/null
+++ b/app/helpers/meta_data_helper.rb
@@ -0,0 +1,509 @@
+# -*- encoding : utf-8 -*-
+module MetaDataHelper
+
+ # TODO merge with MetaDatum#to_s
+ def formatted_value(meta_datum)
+ case meta_datum.meta_key.object_type
+ when "Person"
+ s = Array(meta_datum.deserialized_value).map do |p|
+ next unless p
+ #temp# link_to p, p
+ link_to p, media_entries_path(:query => p.fullname)
+ end
+ s.join(' ').html_safe
+ when "Keyword"
+ s = Array(meta_datum.deserialized_value).map do |v|
+ next unless v
+ link_to v, media_entries_path(:query => v.to_s)
+ end
+ s.join(', ').html_safe
+ when "Meta::Date"
+ s = meta_datum.deserialized_value
+ s.join(' - ').html_safe
+ when "Date"
+ _("%s Uhr") % meta_datum.deserialized_value.to_formatted_s(:date_time)
+ else
+ s = meta_datum.to_s
+ #(s =~ /\n/ ? simple_format(s) : s)
+ #old#
+ auto_link(s, :all, :target => "_blank")
+ #new1# auto_link(s, :href_options => { :target => '_blank' })
+ #new2# to_list(s)
+ end
+ end
+
+###########################################################
+
+ def widget_meta_terms(meta_datum, meta_key, meta_terms, ui)
+ if meta_terms.size <= 10
+ half_size = (meta_terms.size / 2) + (meta_terms.size % 2)
+ content_tag :ul, :class => "meta_terms" do
+ c = content_tag :li do
+ content_tag :ul do
+ meta_terms[0..(half_size-1)].collect do |term|
+ checkbox_for_term(term, meta_datum, ui)
+ end.join.html_safe
+ end
+ end
+ c += content_tag :li do
+ content_tag :ul do
+ a = meta_terms[half_size..-1].collect do |term|
+ checkbox_for_term(term, meta_datum, ui)
+ end.join.html_safe
+ a += content_tag :li do
+ new_term_field(meta_key)
+ end if meta_key.is_extensible_list?
+ a
+ end
+ end
+ end
+ else
+ widget_meta_terms_multiselect(meta_datum, meta_key, meta_terms)
+ end
+ end
+
+ def widget_meta_terms_multiselect(meta_datum, meta_key, meta_terms)
+ a = "".html_safe
+ @js_5 ||= false
+ unless @js_5
+ @js_5 = true
+ locale = "de"
+ a += stylesheet_link_tag "jquery/plugins/ui.multiselect"
+ # a += javascript_include_tag "jquery/plugins/multiselect/jquery.localisation-min",
+ # "jquery/plugins/multiselect/jquery.blockUI",
+ # #tmp 02.18.11# "jquery/plugins/multiselect/jquery.tmpl.1.1.1", # conflicts with madek11's jquery.tmpl.js
+ # "jquery/plugins/multiselect/ui.multiselect",
+ # "jquery/plugins/multiselect/locale/ui.multiselect-#{locale}"
+ # 02.21.11 Switching to newer version of multiselect plugin with less dependencies
+ a += javascript_include_tag "/themes/madek11/javascripts/jquery/plugins/multiselect/jquery.localisation-min.js",
+ "/themes/madek11/javascripts/jquery/plugins/multiselect/ui.multiselect.js",
+ "/themes/madek11/javascripts/jquery/plugins/multiselect/locale/ui.multiselect-#{locale}.js"
+ a += javascript_tag do
+ begin
+ <<-HERECODE
+ $(document).ready(function(){
+ $(".multiselect").multiselect({dividerLocation: 0.5, sortable: false});
+ });
+ HERECODE
+ end.html_safe
+ end
+ end
+ all_options = meta_terms.collect {|x| [x.to_s, x.id]}
+ selected_options = meta_datum.object.value # TODO ?? .deserialized_value.collect(&:id)
+ a += meta_datum.select :value, options_for_select(all_options, selected_options), {}, {:multiple => true, :class => "multiselect"}
+ a += content_tag :div do
+ new_term_field(meta_key)
+ end if meta_key.is_extensible_list?
+ a
+ end
+
+ def checkbox_for_term(term, meta_datum, ui)
+ is_checked = (meta_datum.object.value and meta_datum.object.value.include?(term.id))
+ content_tag :li do
+ a = case ui
+ when :radio_button
+ radio_button_tag "#{meta_datum.object_name}[value][]", term.id, is_checked
+ else
+ check_box_tag "#{meta_datum.object_name}[value][]", term.id, is_checked
+ end
+ a += term.to_s
+ end
+ end
+
+ def new_term_field(meta_key)
+ a = text_field_tag :new_term, nil
+ a += link_to meta_key_meta_terms_path(meta_key), :class => "new_term", :remote => true, :method => :post do
+ icon_tag("button_add_value")
+ end
+
+ @js_6 ||= false
+ unless @js_6
+ @js_6 = true
+ a += javascript_tag do
+ begin
+ <<-HERECODE
+ $(document).ready(function(){
+ var h;
+ $("a.new_term[data-remote]").bind('click', function(){
+ h = $(this).attr("href");
+ var v = $(this).prev("input").val();
+ $(this).attr("href", h +"?new_term=" + v);
+ }).bind('ajax:success', function(xhr, data, status){
+ parsed_data = $.parseJSON(data);
+ $(this).attr("href", h);
+ $(this).prev("input").val("");
+
+ var parent = $(this).parent();
+ var s = parent.siblings("select.multiselect:first");
+ if(s.length){
+ s.multiselect('addOptions', parsed_data.id+'='+parsed_data.value);
+ //tmp// s.multiselect('select', '"'+parsed_data.value+'"');
+ }else{
+ // FIXME doesn't work if no term exists yet
+ s = parent.prev();
+ var c = s.clone().insertAfter(s); // TODO use .tmpl() ??
+ c.children("input:first").val(parsed_data.id).attr("checked", "checked");
+ c.contents(":last").replaceWith(parsed_data.value); // TODO jquery >= 1.4.3 .text(parsed_data.value);
+ }
+ });
+
+ $("input[name='new_term']").keypress(function(event) {
+ if (event.keyCode == '13') {
+ event.preventDefault();
+ $(this).next("a.new_term[data-remote]").trigger('click');
+ }
+ });
+ });
+ HERECODE
+ end.html_safe
+ end
+ end
+ a
+ end
+
+###########################################################
+
+ def widget_meta_countries(meta_datum, meta_key)
+ file = "#{Rails.root}/config/definitions/helpers/country_codes.yml"
+ entries = YAML.load(File.read(file))
+
+ all_options = entries.collect {|x| ["#{x["country_code"]} - #{x["country_name"]}", x["country_code"]]}.sort
+ selected_option = meta_datum.object.value
+
+ all_options << [selected_option, selected_option] unless all_options.collect{|x| x[1]}.include?(selected_option)
+
+ meta_datum.select :value, options_for_select(all_options, selected_option), {:include_blank => true}
+ end
+
+###########################################################
+
+ def widget_meta_departments(meta_datum, meta_key)
+ all_options = Meta::Department.all.collect do |d|
+ [d.to_limited_s, d.id, {:title => d.to_s}]
+ end
+ selected_option = meta_datum.object.value
+
+ meta_datum.select :value, options_for_select(all_options, selected_option), {:include_blank => true}, {:multiple => true}
+ end
+
+###########################################################
+
+ def field_tag(meta_datum, context, autofocus = false, with_actions = false)
+ h = meta_datum.hidden_field :meta_key_id
+
+ meta_key = meta_datum.object.meta_key
+ field_id = "#{sanitize_to_id(meta_datum.object_name)}_value"
+ definition = meta_key.meta_key_definitions.for_context(context)
+ is_required = (definition.meta_field.is_required ? true : nil)
+ key_id = meta_datum.object.meta_key_id
+
+ if meta_key.object_type == "Meta::Country"
+ h += widget_meta_countries(meta_datum, meta_key)
+
+ elsif meta_key.object_type
+ klass = meta_key.object_type.constantize
+
+ @js_3 ||= false
+ unless @js_3
+ @js_3 = true
+ h += stylesheet_link_tag "jquery/fcbkcomplete.css", "jquery/fcbkcomplete_custom.css"
+ h += javascript_include_tag "jquery/fcbkcomplete.min.js"
+ h += javascript_tag do
+ begin
+ <<-HERECODE
+ $(document).ready(function(){
+ $("select.fcbkcomplete").fcbkcomplete({
+ firstselected: true,
+ filter_selected: true,
+ newel: true,
+ maxitems: 99999,
+ addontab: true
+ });
+
+ $(".dialog_link").click(function(){
+ var source = $(this);
+ var next_container = source.next();
+ if(next_container.length > 0){
+ next_container.slideToggle();
+ source.children("img:last").toggleClass("expanded");
+ }else{
+ $.ajax({
+ url: source.attr("href"),
+ success: function(response){
+ source.children("img:last").toggleClass("expanded");
+ source.after(response);
+ source.next().hide().slideDown();
+
+ $("form[data-remote] input:submit").click(function(event){
+ $(this).closest("form").trigger("submit");
+ return false;
+ });
+
+ $("form[data-remote]").bind("ajax:success", function(xhr, data, status){
+ parsed_data = $.parseJSON(data);
+ if (parsed_data.value != null) source.siblings("select.fcbkcomplete").trigger("addItem", parsed_data);
+ source.children("img:last").toggleClass("expanded");
+ $(this).closest(".tabs").remove();
+ });
+ }
+ });
+ }
+ return false;
+ });
+ });
+ HERECODE
+ end.html_safe
+ end
+ end
+
+ case klass.name
+# TODO set String for 'subject' key, TODO multiple fields for array
+# when "String"
+# h += text_area_tag "media_entry[meta_data_attributes][0][value]", meta_datum.object.to_s
+ when "Keyword"
+ keywords = meta_datum.object.deserialized_value
+ meta_term_ids = keywords.collect(&:meta_term_id)
+ all_grouped_keywords = Keyword.group(:meta_term_id)
+ all_grouped_keywords = all_grouped_keywords.where(["meta_term_id NOT IN (?)", meta_term_ids]) unless meta_term_ids.empty?
+ all_options = (keywords + all_grouped_keywords).collect {|x| [x.to_s, x.id]}.sort {|a,b| a[0].downcase <=> b[0].downcase}
+ selected_options = keywords.collect(&:id)
+
+ #new# TODO save keywords as entities (Keyword ??)
+ #all_values = Array(meta_datum.object.value).compact
+ #all_options = all_values.collect {|x| [x.to_s, x.id]}
+ #selected_options = all_values.collect(&:id) # TODO
+
+ h += meta_datum.select :value, options_for_select(all_options, selected_options), {}, {:multiple => true, :class => "fcbkcomplete"}
+
+ h += link_to icon_tag("button_add_keyword") + " " + icon_tag("toggler-arrow-closed"), keywords_media_entries_path, :class => "dialog_link", :style => "margin-top: .5em;"
+
+ when "Meta::Term"
+ meta_terms = meta_key.meta_terms
+ ui = (definition.meta_field.length_max and definition.meta_field.length_max == 1 ? :radio_button : :check_box )
+ h += widget_meta_terms(meta_datum, meta_key, meta_terms, ui)
+
+ when "Person"
+ # NOTE prefetch all people and cache them
+ @people ||= klass.with_media_entries
+
+ all_options = @people.collect {|x| [x.to_s, x.id]}
+ selected_options = meta_datum.object.deserialized_value.collect(&:id)
+ h += meta_datum.select :value, options_for_select(all_options, selected_options), {}, {:multiple => true, :class => "fcbkcomplete"}
+
+ h += link_to icon_tag("button_add_person") + " " + icon_tag("toggler-arrow-closed"), new_person_path, :class => "dialog_link", :style => "margin-top: .5em;"
+
+ when "Meta::Date"
+ meta_datum.object.value ||= [] # OPTIMIZE
+ at = from = to = at_time = ""
+ selected_option = "freetext"
+ case meta_datum.object.value.size
+ when 2
+ f = meta_datum.object.value.first
+ l = meta_datum.object.value.last
+ if f.parsed and l.parsed
+ #old# from = f.to_s
+ #old# to = l.to_s
+ from = f.parsed.to_formatted_s(:date)
+ to = l.parsed.to_formatted_s(:date)
+ selected_option = "from-to"
+ end
+ when 1
+ f = meta_datum.object.value.first
+ if f.parsed
+ #old# at = f.to_s
+ at = f.parsed.to_formatted_s(:date)
+ if f.parsed.seconds_since_midnight > 0
+ at_time = f.parsed.to_formatted_s(:time_full) + " " + f.parsed.formatted_offset
+ end
+ selected_option = "at"
+ end
+ end
+
+ h += select_tag "dateSelect", options_for_select([["am", "at"], ["von - bis", "from-to"], ["Freie Eingabe", "freetext"]], selected_option)
+
+ h += content_tag :span, :class => "dates" do
+ a = content_tag :span, :rel => "at" do
+ b = text_field_tag "datepicker_at_#{key_id}", at, :class => "datepicker", :placeholder => "TT.MM.JJJJ"
+ b += text_field_tag "at_#{key_id}_tiem", at_time, :class => "time", :placeholder => "HH:MM:SS +HH:MM" unless at_time.blank?
+ b
+ end
+ a += content_tag :span, :rel => "from-to" do
+ b = text_field_tag "datepicker_from_#{key_id}", from, :class => "datepicker", :placeholder => "TT.MM.JJJJ"
+ b += " - "
+ b += text_field_tag "datepicker_to_#{key_id}", to, :class => "datepicker", :placeholder => "TT.MM.JJJJ"
+ end
+ a += content_tag :span, :rel => "freetext" do
+ meta_datum.object.value = meta_datum.object.value.join(' - ')
+ meta_datum.text_field :value, :placeholder => "Wird als Freitext gespeichert."
+ end
+ end
+
+ @js_1 ||= false
+ unless @js_1
+ @js_1 = true
+ locale = "de-CH"
+ h += javascript_include_tag "jquery/i18n/jquery.ui.datepicker-#{locale}"
+ h += javascript_tag do
+ begin
+ <<-HERECODE
+ $(document).ready(function(){
+ $("[name='dateSelect']").change(function(){
+ var selected_value = $(this).val();
+ $(this).next(".dates").find("span").hide();
+ var to_show = $(this).next(".dates").find("span[rel='"+selected_value+"']");
+ to_show.show();
+ if(selected_value != "freetext") to_show.find("input:first").trigger("change");
+ }).trigger("change");
+
+ $(".datepicker").datepicker(
+ $.extend({
+ showOn: "button",
+ buttonImage: "/images/icons/calendar.png",
+ buttonImageOnly: true,
+ changeMonth: true,
+ changeYear: true,
+ onClose: function(dateText, inst) {
+ $(inst.input.context).trigger("blur");
+ }
+ }, $.datepicker.regional["#{locale}"])
+ );
+
+ $(".dates input.datepicker").bind("change", function() {
+ var source = $(this);
+ if(source.val() != source.attr("placeholder")){
+ var v = source.siblings(".datepicker").andSelf().map(function() {
+ var t = $(this).nextAll(".time").first();
+ var r = this.value;
+ if(t.length) r = r + " " + t.val();
+ return r;
+ }).get().join(' - ');
+ source.closest(".dates").find("[rel='freetext'] input").val(v);
+ }
+ }).trigger("change");
+
+ $(".time").bind("change", function() {
+ $(this).prevAll(".datepicker").first().trigger("change");
+ });
+ });
+ HERECODE
+ end.html_safe
+ end
+ end
+
+ when "Meta::Department"
+ h += widget_meta_departments(meta_datum, meta_key)
+
+ when "Copyright"
+ h += meta_datum.hidden_field :value, :class => "copyright_value"
+### h += hidden_field_tag field_id, meta_datum.object.value.first, :class => "copyright_value"
+
+ @copyright_all ||= Copyright.all # OPTIMIZE
+ @copyright_roots ||= Copyright.roots
+ value = meta_datum.object.deserialized_value.try(:first) # OPTIMIZE
+ selected = @copyright_roots.detect{|s| (value and s.is_or_is_ancestor_of?(value)) }.try(:id)
+ h += select_tag "options_root", options_from_collection_for_select(@copyright_roots, :id, :to_s, selected), :class => "options_root"
+
+ @copyright_roots.each do |s|
+ next if s.leaf?
+ grouped_options = s.children.collect do |t|
+ if t.leaf?
+ [nil, [[t.label, t.id]]]
+ else
+ [t.label, t.children.collect {|c| [c.label, c.id] }]
+ end
+ end
+ is_selected = (value and s.is_or_is_ancestor_of?(value))
+ h += select_tag "options_#{s.id}", grouped_options_for_select(grouped_options, value.try(:id)), :class => "nested_options options_#{s.id}", :style => (is_selected ? nil : "display: none;")
+ end
+
+ @js_2 ||= false
+ h += javascript_tag do
+ @js_2 = true
+ begin
+ <<-HERECODE
+ $(document).ready(function(){
+ var copyrights = {};
+ var custom_copyright_id;
+ $.each(#{@copyright_all.to_json}, function(i,item){
+ copyrights[item.copyright.id] = item.copyright;
+ if(item.copyright.is_custom) custom_copyright_id = item.copyright.id;
+ });
+
+ $("select.nested_options, select.options_root").change(function(event){
+ selected = copyrights[$(this).val()];
+ block = $(this).closest(".meta_data_block");
+ block.find(".copyright_value").val(selected.id);
+ if(!selected.is_custom){
+ block.find("[data-meta_key='copyright_usage'] textarea").val(selected.usage);
+ block.find("[data-meta_key='copyright_url'] textarea").val(selected.url);
+ }
+ });
+
+ $("select.options_root").change(function(event){
+ block = $(this).closest(".meta_data_block");
+ block.find(".nested_options").hide();
+ block.find(".options_" + selected.id).show().change();
+
+ usage = block.find("[data-meta_key='copyright_usage']");
+ if(selected.usage == null){
+ usage.hide();
+ }else{
+ usage.show();
+ }
+ url = block.find("[data-meta_key='copyright_url']");
+ if(selected.url == null){
+ url.hide();
+ }else{
+ url.show();
+ }
+ });
+
+ $("[data-meta_key='copyright_usage'], [data-meta_key='copyright_url']").change(function(event){
+ block = $(this).closest(".meta_data_block");
+ block.find("select.options_root").val(custom_copyright_id).trigger('change');
+ });
+
+ //temp//doesn't work with generic nested meta_data// $("select.nested_options:visible, select.options_root").trigger('change');
+ });
+ HERECODE
+ end.html_safe
+ end unless @js_2
+ end
+
+ elsif definition.meta_field.length_max and definition.meta_field.length_max <= 255
+ #tmp# h += meta_datum.text_field :value, :class => "value", :"data-required" => is_required
+ h += text_field_tag "#{meta_datum.object_name}[value]", meta_datum.object.to_s, :class => "value", :"data-required" => is_required
+ h += content_tag :span, :class => "with_actions" do
+ link_to _("Übertragen auf andere Medien"), "#", :class => "buttons"
+ end if with_actions # TODO see _bulk_edit
+ else
+ #tmp# h += meta_datum.text_area :value, :"data-required" => is_required #, :rows => 2
+ h += text_area_tag "#{meta_datum.object_name}[value]", meta_datum.object.to_s, :"data-required" => is_required, :rows => 2
+ end
+
+ @js_4 ||= false
+ h += javascript_tag do
+ @js_4 = true
+ begin
+ <<-HERECODE
+ $(document).ready(function(){
+ $("##{field_id}").focus();
+ });
+ HERECODE
+ end.html_safe
+ end if autofocus and !@js_4
+
+ h
+ end
+
+ def description_toggler(definition)
+ d = definition.meta_field.description.try(:to_s)
+ unless d.blank?
+ r = link_to "?", "#", :class => "description_toggler"
+ r += content_tag :span, :style => "display: none;", :class => "dialog hint" do
+ auto_link(d, :all, :target => "_blank")
+ end
+ end
+ end
+
+end
diff --git a/app/helpers/permissions_helper.rb b/app/helpers/permissions_helper.rb
new file mode 100644
index 0000000000..b65bca4125
--- /dev/null
+++ b/app/helpers/permissions_helper.rb
@@ -0,0 +1,58 @@
+# -*- encoding : utf-8 -*-
+module PermissionsHelper
+
+ # 23.02.11: should be obsolete soon
+ def view_permission_string(resource)
+ if resource.acl?(:view, :all)
+ "(#{_("Öffentlich")})"
+ elsif resource.acl?(:view, :logged_in_users)
+ "(#{_("Öffentlich für angemeldete Benutzer")})"
+ elsif resource.acl?(:view, :only, current_user)
+ "(#{_("Nur für Sie selbst")})"
+ else
+ # MediaEntries that only I and certain others have access to
+ end
+ end
+
+ # caution: only works with new theme
+ def display_permission_icon(resource)
+ if resource.acl?(:view, :all)
+ theme_image_tag("icons/eye.png")
+ elsif resource.acl?(:view, :only, current_user)
+ theme_image_tag("icons/icon_button_perm.png")
+ end
+ end
+
+ def display_favorite_icon(resource, user)
+ if user.favorites.include?(resource)
+ theme_image_tag("icons/heart_red.png")
+ else
+ theme_image_tag("icons/icon_button_fav.png")
+ end
+ end
+
+ def display_edit_icon(resource, user)
+ if user && Permission.authorized?(user, :edit, resource)
+ url = resource.is_a?(MediaEntry) ? edit_media_entry_path(resource) : edit_media_set_path(resource)
+ link_to theme_image_tag("icons/icon_button_edit.png"), url
+ else
+ theme_image_tag("icons/icon_button_edit.png")
+ end
+ end
+
+ def display_delete_icon(resource, user)
+ if user && Permission.authorized?(user, :manage, resource)
+ if resource.is_a?(MediaEntry)
+ url = media_entry_path(resource)
+ confirm = "Sind Sie sicher?"
+ else
+ url = media_set_path(resource)
+ confirm = "Sind Sie sicher? Das Set wird gelöscht."
+ end
+ link_to theme_image_tag("icons/icon_button_delete.png"), url, :method => :delete, :confirm => confirm
+ else
+ theme_image_tag("icons/icon_button_delete.png")
+ end
+ end
+
+end
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
new file mode 100644
index 0000000000..aaf8febd9c
--- /dev/null
+++ b/app/helpers/users_helper.rb
@@ -0,0 +1,94 @@
+# -*- encoding : utf-8 -*-
+module UsersHelper
+
+ #
+ # Use this to wrap view elements that the user can't access.
+ # !! Note: this is an *interface*, not *security* feature !!
+ # You need to do all access control at the controller level.
+ #
+ # Example:
+ # <%= if_authorized?(:index, User) do link_to('List all users', users_path) end %> |
+ # <%= if_authorized?(:edit, @user) do link_to('Edit this user', edit_user_path) end %> |
+ # <%= if_authorized?(:destroy, @user) do link_to 'Destroy', @user, :confirm => 'Sind Sie sicher?', :method => :delete end %>
+ #
+ #
+ def if_authorized?(action, resource, &block)
+ if authorized?(action, resource)
+ yield action, resource
+ end
+ end
+
+ #
+ # Link to user's page ('users/1')
+ #
+ # By default, their login is used as link text and link title (tooltip)
+ #
+ # Takes options
+ # * :content_text => 'Content text in place of user.login', escaped with
+ # the standard h() function.
+ # * :content_method => :user_instance_method_to_call_for_content_text
+ # * :title_method => :user_instance_method_to_call_for_title_attribute
+ # * as well as link_to()'s standard options
+ #
+ # Examples:
+ # link_to_user @user
+ # # => barmy
+ #
+ # # if you've added a .name attribute:
+ # content_tag :span, :class => :vcard do
+ # (link_to_user user, :class => 'fn n', :title_method => :login, :content_method => :name) +
+ # ': ' + (content_tag :span, user.email, :class => 'email')
+ # end
+ # # => Cyril Fotheringay-Phipps: barmy@blandings.com
+ #
+ # link_to_user @user, :content_text => 'Your user page'
+ # # => Your user page
+ #
+ def link_to_user(user, options={})
+ raise "Invalid user" unless user
+ options.reverse_merge! :content_method => :login, :title_method => :login, :class => :nickname
+ content_text = options.delete(:content_text)
+ content_text ||= user.send(options.delete(:content_method))
+ options[:title] ||= user.send(options.delete(:title_method))
+ link_to h(content_text), user_path(user), options
+ end
+
+ #
+ # Link to login page using remote ip address as link content
+ #
+ # The :title (and thus, tooltip) is set to the IP address
+ #
+ # Examples:
+ # link_to_login_with_IP
+ # # => 169.69.69.69
+ #
+ # link_to_login_with_IP :content_text => 'not signed in'
+ # # => not signed in
+ #
+ def link_to_login_with_IP content_text=nil, options={}
+ ip_addr = request.remote_ip
+ content_text ||= ip_addr
+ options.reverse_merge! :title => ip_addr
+ if tag = options.delete(:tag)
+ content_tag tag, h(content_text), options
+ else
+ link_to h(content_text), login_path, options
+ end
+ end
+
+ #
+ # Link to the current user's page (using link_to_user) or to the login page
+ # (using link_to_login_with_IP).
+ #
+ def link_to_current_user(options={})
+ if current_user
+ link_to_user current_user, options
+ else
+ content_text = options.delete(:content_text) || 'not signed in'
+ # kill ignored options from link_to_user
+ [:content_method, :title_method].each{|opt| options.delete(opt)}
+ link_to_login_with_IP content_text, options
+ end
+ end
+
+end
diff --git a/app/metal/download.rb b/app/metal/download.rb
new file mode 100644
index 0000000000..7c1f797f7c
--- /dev/null
+++ b/app/metal/download.rb
@@ -0,0 +1,131 @@
+# -*- encoding : utf-8 -*-
+
+class Download
+ def self.call(env)
+ request = Rack::Request.new(env)
+ params = request.params
+ session = env['rack.session']
+
+ current_user = User.find_by_id(session[:user_id]) if session[:user_id]
+
+# e.g.
+# 'zip' param present means original file + xml sidecar of meta-data all zipped as one file
+# 'update' param present means original file updated by exiftool with current state of madek meta-data for that mediaentry
+# (update and zip should be treated as mutally exclusive in the context of one download call)
+# neither zip nor update present? just give the original file, as it was uploaded.
+# WE SHOULD NEVER UPDATE AN UPLOADED FILE WITH MADEK METADATA.
+
+#####################################################################################################################
+#####################################################################################################################
+ unless params['id'].blank?
+
+ @media_entry = MediaEntry.where(:id => params['id']).first
+
+ unless @media_entry.nil?
+
+ # This is broken, presumably because of ruby 1.8.x not having any native idea of character encodings.
+ # If we move the gsub to execute after the unescape has processed, we can easily lose part of the
+ # filename if it contains diacritics and spaces.
+ filename = CGI::unescape(@media_entry.media_file.filename.gsub(/\+/, '_'))
+ size = params['size'].try(:to_sym)
+ if size
+ preview = @media_entry.media_file.get_preview(size)
+ filename = [filename.split('.', 2).first, preview.filename.gsub(@media_entry.media_file.guid, '')].join
+ content_type = preview.content_type
+ return [500, {"Content-Type" => "text/html"}, ["Sie haben nicht die notwendige Zugriffsberechtigung."]] unless Permission.authorized?(current_user, :view, @media_entry)
+ else
+ content_type = @media_entry.media_file.content_type
+ return [500, {"Content-Type" => "text/html"}, ["Sie haben nicht die notwendige Zugriffsberechtigung."]] unless Permission.authorized?(current_user, :hi_res, @media_entry)
+ end
+
+
+#####################################################################################################################
+#####################################################################################################################
+# A media file updated with current madek meta-data, zipped up together with a bunch of side-car meta-data files.
+# At present these are yaml and xml files, but they are pretty raw ATM - exposing the internals of the model/schema
+# instead of following a well formed and easier to comprehend xml/yml schema..
+#####################################################################################################################
+#####################################################################################################################
+ unless params['zip'].blank?
+
+ path = @media_entry.updated_resource_file(false, size) # false means we don't want to blank all the tags
+
+ # create the zipfile - we need a name that hopefully won't collide as it's being written to..
+ race_free_filename = [Time.now.to_i.to_s, @media_entry.id.to_s, filename].join("_")
+
+ Zip::ZipOutputStream.open("#{ZIP_STORAGE_DIR}/#{race_free_filename}.zip") do
+ |zos|
+ zos.put_next_entry(filename)
+ zos.print IO.read(path)
+ zos.put_next_entry("#{filename}.xml")
+ zos.print @media_entry.to_xml(:include => {:meta_data => {:include => :meta_key}} )
+ zos.put_next_entry("#{filename}.yml")
+ zos.print @media_entry.to_yaml(:include => {:include => :meta_key} )
+ end
+
+ if path
+ return [200, {"Content-Type" => "application/zip", "Content-Disposition" => "attachment; filename=#{filename}.zip"},
+ [File.read("#{ZIP_STORAGE_DIR}/#{race_free_filename}.zip")]]
+ else
+ return [500, {"Content-Type" => "text/html"}, ["Something went wrong!"]]
+ end
+
+ # TODO - Background job submission to remove the unlocked (ie downloaded) zipfile.
+ # since it fails if we try here (because the file is locked while the user
+ # downloads it at some arbitrarily slow speed)
+ end
+
+#####################################################################################################################
+#####################################################################################################################
+# An updated file - updated with the current set of madek meta-data
+#####################################################################################################################
+#####################################################################################################################
+ unless params['update'].blank?
+
+ # path = @media_entry.media_file.update_file_metadata(@media_entry.to_metadata_tags)
+ path = @media_entry.updated_resource_file(false, size) # false means we don't want to blank all the tags
+ if path
+ return [200, {"Content-Type" => content_type, "Content-Disposition" => "attachment; filename=#{filename}" }, [File.read(path)]]
+ else
+ return [500, {"Content-Type" => "text/html"}, ["Something went wrong!"]]
+ end
+ end
+
+
+#####################################################################################################################
+#####################################################################################################################
+# A bare file - as little meta-data as can be allowed without breaking the file.
+#####################################################################################################################
+#####################################################################################################################
+ unless params['naked'].blank?
+
+ path = @media_entry.updated_resource_file(true, size) # true means we do want to blank all the tags
+
+ if path
+ return [200, {"Content-Type" => content_type, "Content-Disposition" => "attachment; filename=#{filename}" }, [File.read(path) ]]
+ else
+ return [500, {"Content-Type" => "text/html"}, ["Something went wrong!"]]
+ end
+ end
+
+#####################################################################################################################
+#####################################################################################################################
+# Provide a copy of the original file, not updated or nuffin'
+#####################################################################################################################
+#####################################################################################################################
+
+ path = @media_entry.media_file.file_storage_location
+ if size
+ outfile = File.join(DOWNLOAD_STORAGE_DIR, filename)
+ `convert "#{path}" -resize "#{THUMBNAILS[size]}" "#{outfile}"`
+ path = outfile
+ end
+
+ # return [200, {"Content-Type" => "text/html"}, [ "#{filename.inspect}" ]] # temp debugging aid
+ return [200, {"Content-Type" => content_type, "Content-Disposition" => "attachment; filename=#{filename}" }, [File.read(path) ]]
+ end
+
+ end
+
+ end # def
+end # class
diff --git a/app/metal/nagiosstat.rb b/app/metal/nagiosstat.rb
new file mode 100644
index 0000000000..cac5ab2931
--- /dev/null
+++ b/app/metal/nagiosstat.rb
@@ -0,0 +1,19 @@
+# -*- encoding : utf-8 -*-
+
+class Nagiosstat
+ def self.call(env)
+ # generate some status for sphinx. We check to see if the searchdaemon is up for our current environment and rails root
+ sphinx_status = "sphinx:" + (ThinkingSphinx.sphinx_running? ? 0 : 2).to_s
+ # test to see if we can communicate with the database
+ db_status = "database:" + begin
+ MediaFile.count
+ 0
+ rescue
+ 2
+ end.to_s
+
+ results = [sphinx_status, db_status].join("\n")
+
+ [200, {"Content-Type" => "text/html"}, [ results ]]
+ end
+end
diff --git a/app/metal/upload.rb b/app/metal/upload.rb
new file mode 100644
index 0000000000..83b425a56c
--- /dev/null
+++ b/app/metal/upload.rb
@@ -0,0 +1,67 @@
+# -*- encoding : utf-8 -*-
+
+class UploadEstimation
+ def self.call(env)
+ [200, {"Content-Type" => "text/html"}, [""]]
+ end
+end
+
+class Upload
+ def self.call(env)
+ request = Rack::Request.new(env)
+ params = request.params
+ session = env['rack.session']
+
+ current_user = User.find_by_id(session[:user_id]) if session[:user_id]
+
+ ThinkingSphinx.deltas_enabled = false #MediaEntry.suspended_delta do
+
+ files = if !params['uploaded_data'].blank?
+ params['uploaded_data']
+ elsif !params['import_path'].blank?
+ Dir[File.join(params['import_path'], '**', '*')]
+ else
+ nil
+ end
+
+ unless files.blank?
+ # OPTIMIZE append if already exists (multiple grouped posts)
+ #temp# upload_session = current_user.upload_sessions.latest
+ upload_session = current_user.upload_sessions.create
+
+ files.each do |f|
+ uploaded_data = if params['uploaded_data']
+ f
+ else
+ { :type=> `#{FILE_UTIL_PATH} "#{f}"`.split(";").first.gsub(/\n/,""),
+ :tempfile=> File.new(f, "r"),
+ :filename=> File.basename(f)}
+ end
+
+ # if uploaded_data['filename'].include?
+ # uploaded_data['current_user'] = current_user.login # for the use of media_file, if we get a zipfile
+ media_file = MediaFile.create(:uploaded_data => uploaded_data)
+ media_entry = upload_session.media_entries.create(:media_file => media_file)
+
+ uploaded_data[:tempfile].close unless params['uploaded_data']
+ end
+ end
+
+ ThinkingSphinx.deltas_enabled = true #end
+
+ # TODO check if all media_entries successfully saved
+
+ if env["CONTENT_TYPE"] =~ /AjaxUploader/
+ [200, {"Content-Type" => "text/html"}, [""]]
+ else
+ uri = if params['uploaded_data']
+ "/upload"
+ elsif params['import_path']
+ "/upload/import_summary"
+ else
+ "/upload/new"
+ end
+ [ 303, {'Content-Length'=>'0', 'Content-Type'=>'text/plain', 'Location' => uri}, []]
+ end
+ end
+end
diff --git a/app/models/copyright.rb b/app/models/copyright.rb
new file mode 100644
index 0000000000..69fcc273b5
--- /dev/null
+++ b/app/models/copyright.rb
@@ -0,0 +1,74 @@
+# -*- encoding : utf-8 -*-
+class Copyright < ActiveRecord::Base
+
+ acts_as_nested_set
+
+ validates_presence_of :label
+
+ def to_s
+ label
+ end
+
+ def usage(value = "")
+ (is_custom? ? value : read_attribute(:usage))
+ end
+
+ def url(value = "")
+ (is_custom? ? value : read_attribute(:url))
+ end
+
+#######################################
+
+ def self.default
+ @default ||= where(:is_default => true).first
+ end
+
+ def self.custom
+ @custom ||= where(:is_custom => true).first
+ end
+
+ # OPTIMIZE
+ def self.public
+ @public ||= where(:label => "Public Domain (gemeinfrei)").first
+ end
+
+#######################################
+
+ def self.init(reset = false)
+ return 0 unless reset or count == 0
+ delete_all
+
+ file = "#{Rails.root}/config/definitions/helpers/copyrights.yml"
+ entries = YAML.load(File.read(file))
+
+ save_as_nested_set(entries)
+
+ return count
+ end
+
+##################################################
+ class << self
+
+ def save_as_nested_set(nodes, parent = nil)
+ case nodes.class.name
+ when "Hash"
+ if nodes.keys.first.is_a?(Hash)
+ nodes.each_pair do |key,value|
+ new_parent = create(key)
+ new_parent.move_to_child_of parent if parent
+ save_as_nested_set(value, new_parent) if value.is_a?(Array)
+ end
+ else
+ new_leaf = create(nodes)
+ new_leaf.move_to_child_of parent if parent
+ end
+ when "Array"
+ nodes.each do |value|
+ save_as_nested_set(value, parent)
+ end
+ end
+ end
+
+ end
+
+end
diff --git a/app/models/edit_session.rb b/app/models/edit_session.rb
new file mode 100644
index 0000000000..5413a1e75c
--- /dev/null
+++ b/app/models/edit_session.rb
@@ -0,0 +1,11 @@
+# -*- encoding : utf-8 -*-
+class EditSession < ActiveRecord::Base
+
+ belongs_to :user
+ belongs_to :resource, :polymorphic => true
+
+ validates_presence_of :user_id
+
+ default_scope order("created_at DESC")
+
+end
diff --git a/app/models/group.rb b/app/models/group.rb
new file mode 100644
index 0000000000..c0199ece45
--- /dev/null
+++ b/app/models/group.rb
@@ -0,0 +1,20 @@
+# -*- encoding : utf-8 -*-
+class Group < ActiveRecord::Base
+ include Subject
+ # FIXME breaking permissions # include Resource
+
+ has_and_belongs_to_many :users
+
+ validates_presence_of :name
+
+ scope :departments, where(:type => "Meta::Department")
+
+ def to_s
+ name
+ end
+
+ def is_readonly?
+ ["Admin", "Expert", "MIZ-Archiv"].include?(name)
+ end
+
+end
diff --git a/app/models/keyword.rb b/app/models/keyword.rb
new file mode 100644
index 0000000000..8f1cd09485
--- /dev/null
+++ b/app/models/keyword.rb
@@ -0,0 +1,33 @@
+# -*- encoding : utf-8 -*-
+class Keyword < ActiveRecord::Base
+
+ belongs_to :meta_term, :class_name => "Meta::Term"
+ belongs_to :user # TODO person ??
+ #belongs_to :media_entry
+
+ validates_presence_of :meta_term_id
+
+ default_scope :include => :meta_term
+
+ def to_s
+ "#{meta_term}"
+ end
+
+ #tmp# wrong! TODO through new method meta_data
+# def resources
+# a = []
+# MetaKey.where(:object_type => "Keyword").each do |key|
+# key.meta_data.each do |md|
+# a += [md.resource_type, md.resource_id] if md.value.include?(id)
+# end
+# end
+# a
+# end
+
+ def meta_data
+ MetaDatum.joins(:meta_key).
+ where(:meta_keys => {:object_type => self.class.name}).
+ where(["value REGEXP ?", "-\ #{id}\n" ])
+ end
+
+end
diff --git a/app/models/media/collection.rb b/app/models/media/collection.rb
new file mode 100644
index 0000000000..4db032189e
--- /dev/null
+++ b/app/models/media/collection.rb
@@ -0,0 +1,5 @@
+class Media::Collection < Media::Set
+
+ # NOTE a Media::Collection cannot be nested
+
+end
diff --git a/app/models/media/featured_set.rb b/app/models/media/featured_set.rb
new file mode 100644
index 0000000000..896987c30b
--- /dev/null
+++ b/app/models/media/featured_set.rb
@@ -0,0 +1,7 @@
+class Media::FeaturedSet < Media::Set
+
+ def to_s
+ # TODO meta_data.get_value_for("title")
+ "Ausgewählte Sets"
+ end
+end
diff --git a/app/models/media/project.rb b/app/models/media/project.rb
new file mode 100644
index 0000000000..97688af783
--- /dev/null
+++ b/app/models/media/project.rb
@@ -0,0 +1,13 @@
+class Media::Project < Media::Set
+
+ has_and_belongs_to_many :individual_contexts, :class_name => "MetaContext",
+ :join_table => :media_projects_meta_contexts,
+ :foreign_key => :media_project_id
+
+
+ # TODO this is used to construct url_path and partials, find a better solution!!! (route alias, ...)
+ def self.model_name
+ superclass.model_name
+ end
+
+end
diff --git a/app/models/media/set.rb b/app/models/media/set.rb
new file mode 100644
index 0000000000..507171d5b7
--- /dev/null
+++ b/app/models/media/set.rb
@@ -0,0 +1,76 @@
+# -*- encoding : utf-8 -*-
+module Media
+ def self.table_name_prefix
+ "media_"
+ end
+
+ class Set < ActiveRecord::Base # TODO rename to Media::Group
+ include Resource
+
+ has_dag_links :link_class_name => 'Media::SetLink'
+
+ belongs_to :user
+ has_and_belongs_to_many :media_entries, :join_table => "media_entries_media_sets",
+ :foreign_key => "media_set_id" do
+ def push_uniq(members)
+ i = 0
+ Array(members).each do |member|
+ next if exists? member
+ push member
+ member.sphinx_reindex
+ i += 1
+ end
+ i
+ end
+ end
+
+ def self.find_by_id_or_create_by_title(values, user)
+ records = Array(values).map do |v|
+ if v.is_a?(Numeric) or !!v.match(/\A[+-]?\d+\Z/) # TODO path to String#is_numeric? method
+ a = where(:id => v).first
+ else
+ a = user.media_sets.create # FIXME user can create non-uniquely named sets
+ a.meta_data.create(:meta_key => MetaKey.find_by_label("title"), :value => v)
+ end
+ a
+ end
+ records.compact
+ end
+
+ ########################################################
+
+ # TODO validation: if dynamic media_set, then media_entries must be empty
+ # TODO validation: if static media_set, then query must be nil
+
+ ########################################################
+
+ default_scope order("updated_at DESC")
+
+ scope :static, where("query IS NULL")
+ scope :dynamic, where("query IS NOT NULL")
+
+ scope :collections, where(:type => "Media::Collection")
+ scope :sets, where(:type => "Media::Set")
+ scope :projects, where(:type => "Media::Project")
+
+ ########################################################
+
+ def to_s
+ s = "#{title} "
+ s += "- %s " % self.class.name.split('::').last # OPTIMIZE get class name without module name
+ s += (static? ? "(#{media_entries.count})" : "(#{MediaEntry.search_count(query, :match_mode => :extended2)}) [#{query}]")
+ end
+
+ ########################################################
+
+ def dynamic?
+ not static?
+ end
+
+ def static?
+ query.nil?
+ end
+
+ end
+
+end
diff --git a/app/models/media/set_link.rb b/app/models/media/set_link.rb
new file mode 100644
index 0000000000..6a3c566648
--- /dev/null
+++ b/app/models/media/set_link.rb
@@ -0,0 +1,14 @@
+# -*- encoding : utf-8 -*-
+class Media::SetLink < ActiveRecord::Base
+
+ # TODO use dagnabit gem instead ??
+ acts_as_dag_links :node_class_name => 'Media::Set'
+
+ validate :validations
+
+ def validations
+ errors.add_to_base("A collection cannot be nested") if descendant.type == "Media::Collection"
+ end
+
+
+end
diff --git a/app/models/media_entry.rb b/app/models/media_entry.rb
new file mode 100644
index 0000000000..f63ed9c123
--- /dev/null
+++ b/app/models/media_entry.rb
@@ -0,0 +1,285 @@
+# -*- encoding : utf-8 -*-
+#= MediaEntry
+#
+# This class could just as easily also be known as MediaObject..
+# and one day might become so.
+
+class MediaEntry < ActiveRecord::Base
+
+ include Resource
+
+ belongs_to :media_file # TODO validates_presence # TODO on destroy, also destroy the media_file if this is the only related media_entry and snapshot
+ belongs_to :upload_session
+ has_and_belongs_to_many :media_sets, :class_name => "Media::Set",
+ :join_table => "media_entries_media_sets",
+ :association_foreign_key => "media_set_id" # TODO validate_uniqueness
+ has_many :snapshots
+
+ before_create :extract_subjective_metadata, :set_copyright
+
+ after_create do |record|
+ descr_author_value = record.meta_data.get("description author").value
+ record.meta_data.get("description author before import").update_attributes(:value => descr_author_value) if descr_author_value
+ end
+
+ # TODO remove and go through permissions ??
+ delegate :user, :user_id, :to => :upload_session
+
+########################################################
+
+ # OPTIMIZE
+ def individual_contexts
+ media_sets.projects.collect {|project| project.individual_contexts }.flatten.uniq
+ end
+
+########################################################
+
+ def to_s
+ "#{title}"
+ end
+
+ # compares two objects in order to sort them
+ # required by dot
+ def <=>(other)
+ self.updated_at <=> other.updated_at
+ end
+
+########################################################
+
+ def to_snapshot
+ if snapshotable?
+ snapshots.first.destroy unless snapshots.empty?
+ snapshots.create
+ end
+ end
+
+ # return true if there is no snapshot already
+ # or if there is a just one snapshot that is not edited yet
+ def snapshotable?
+ snapshots.empty? or (snapshots.count == 1 and not snapshots.first.edited?)
+ end
+
+########################################################
+# Sphinx
+
+ define_index do
+ # the index will be generated by the to_sphinxpipe class method
+ indexes :id # just to avoid plugin warning
+
+ set_property :delta => true # :delayed
+ end
+
+ # used to forcing sphinx live update
+ def sphinx_reindex
+ self.delta = true
+ save
+ end
+
+# TODO but override if other scope is called.
+# default_sphinx_scope :public
+ default_sphinx_scope :default_search
+ sphinx_scope(:default_search) { { :star => true, :order => :updated_at, :sort_mode => :desc } }
+
+ sphinx_scope(:by_user) { |user| { :with => {:user_id => user.id} } }
+ sphinx_scope(:not_by_user) { |user| { :without => {:user_id => user.id} } }
+ sphinx_scope(:public) { { :with => {:is_public => true} } }
+ sphinx_scope(:not_public) { { :with => {:is_public => false} } }
+ sphinx_scope(:by_ids) { |ids| { :with => {:sphinx_internal_id => ids} } }
+
+######################
+
+ def self.to_sphinxpipe(delta = 0)
+ update_all(:delta => 0) if delta == 0
+
+ xml = Builder::XmlMarkup.new
+ xml.instruct!
+ xml.tag!("sphinx:docset") do
+ xml.tag!("sphinx:schema") do
+ MetaKey.with_meta_data.each do |key|
+ xml.tag!("sphinx:field", :name => key.label.parameterize('_'))
+ end
+ ['user'].each do |field|
+ xml.tag!("sphinx:field", :name => field)
+ end
+
+ [['sphinx_internal_id', 'int'], ['class_crc', 'int'], ['sphinx_deleted', 'int', '0'], # required by thinking sphinx
+ ['user_id', 'int'], ['media_set_ids', 'multi'], ['media_file_id', 'int'], # association attributes
+ ['is_public', 'int', '0'], # attributes
+ #temp#facet# ['user_id_facet', 'int'], # facets
+ ['subject_sort', 'str2ordinal'], ['creator_sort', 'str2ordinal'], ['updated_at', 'timestamp'] # sorting attributes
+ ].each do |attr|
+ args = {:name => attr[0], :type => attr[1]}
+ args[:default] = attr[2] if attr.size > 2
+ xml.tag!("sphinx:attr", args)
+ end
+ end
+
+ media_entries = joins(:upload_session).where(:delta => delta, :upload_sessions => {:is_complete => true})
+ media_entries.each do |media_entry|
+ xml.tag!("sphinx:document", :id => media_entry.id) do
+ media_entry.meta_data.with_labels.each_pair do |key, value|
+ xml.tag!(key.parameterize('_'), value)
+ xml.tag!("#{key}_sort", value) if ['subject', 'creator'].include?(key)
+ end
+
+ ['sphinx_internal_id', 'class_crc',
+ 'user_id', 'media_set_ids', 'media_file_id',
+ #temp#facet# 'user_id_facet',
+ 'user'].each do |attr|
+ xml.tag!(attr, media_entry.send(attr))
+ end
+
+ ['updated_at'].each do |attr|
+ xml.tag!(attr, media_entry.send(attr).to_i)
+ end
+
+ #wip#
+ if media_entry.acl?(:view, :all)
+ xml.tag!("is_public", 1)
+ end
+ end
+ end
+ end
+
+ puts xml.target!
+ end
+
+ def sphinx_internal_id
+ id
+ end
+
+ def class_crc
+ self.class.to_crc32 #old#.to_s
+ end
+
+#temp#facet#
+# def user_id_facet
+# user_id
+# end
+
+ def media_set_ids
+ media_sets.collect(&:id).join(',')
+ end
+
+########################################################
+
+ private
+
+ # - used by metal/download.rb to collect the key_map tags and their values for writing into the
+ # copy of the original media file that the user is about to download.
+
+# Handler for extracting some subjective meta-data from whatever file has been handed to us
+#
+#--
+# TODO - more sophisticated importing validations.. some files have a key with a blank entry.. useful! (ie the import will fail if we allow blanks through)
+# TODO - generally everything we get via exiftool will have File and System tags.. do we really want this in subjective MD?
+# TODO - IFD0 tags will contain a camera manufacturer, possibly followed by that manufacturers own data. Parse or not to parse..
+# NOTE - java jar files are zipped, hence the group tag in application
+#++
+ def extract_subjective_metadata
+ return unless ["image", "audio", "video"].any? {|w| self.media_file.content_type.include? w }
+
+ fct = self.media_file.content_type
+ group_tags = case fct
+ when /image/
+ #NOTE - these two really don't bring much to the party, except broken character encodings.. # 'IPTC:', 'IPTC2']
+ ['XMP-madek', 'XMP-dc', 'XMP-photoshop', 'XMP-iptcCore', 'XMP-xmpRights', 'XMP-expressionmedia', 'XMP-mediapro']
+ when /video/ # exiftool has no idea about .mkv containers
+ ['QuickTime', 'Track', 'Composite', 'RIFF', 'BMP', 'Flash', 'M2TS', 'AC3', 'H264' ] # OPTIMIZE - some of these may move to Objective Metadata
+ when /audio/
+ ['MPEG', 'ID3', 'Track', 'Composite', 'ASF', 'FLAC' ] # OPTIMIZE - some of these may move to Objective Metadata
+ when /application/
+ ['FlashPix', 'PDF', 'XMP-', 'PostScript', 'Photoshop', 'EXE', 'ZIP' ] # OPTIMIZE - some of these may move to Objective Metadata
+ when /text/
+ ['HTML' ] # and inevitably more..
+ end
+ ignore_fields = case fct
+ when /image/
+ [/^XMP-photoshop:ICCProfileName$/,/^XMP-photoshop:LegacyIPTCDigest$/, /^XMP-expressionmedia:(?!UserFields)/, /^XMP-mediapro:(?!UserFields)/]
+ when /video/
+ []
+ when /audio/
+ []
+ when /application/
+ []
+ when /text/
+ []
+ end
+
+ blob = exiftool_subjective(self.media_file.file_storage_location, group_tags)
+ blob.each do |tag_array_entry|
+ tag_array_entry.each do |entry|
+ entry_key = entry[0]
+ entry_value = entry[1]
+ next if ignore_fields.detect {|e| entry_key =~ e}
+
+ if entry_key =~ /^XMP-(expressionmedia|mediapro):UserFields/
+ Array(entry_value).each do |s|
+ entry_key, entry_value = s.split('=', 2)
+
+ # TODO priority ??
+ case entry_key
+ when "Datum", "Datierung"
+ meta_key = MetaKey.find_by_label("portrayed object dates")
+ when "Autor/in"
+ meta_key = MetaKey.find_by_label("author")
+ else
+ next
+ end
+
+ # TODO dry
+ next if entry_value.blank? or meta_data.detect {|md| md.meta_key == meta_key } # we do sometimes receive a blank value in metadata, hence the check.
+ entry_value.gsub!(/\\n/,"\n") if entry_value.is_a?(String) # OPTIMIZE line breaks in text are broken somehow
+ meta_data.build(:meta_key => meta_key, :value => entry_value )
+ end
+ else
+ meta_key = MetaKey.meta_key_for(entry_key) #working here#10 , MetaContext.file_embedded)
+
+ next if entry_value.blank? or meta_data.detect {|md| md.meta_key == meta_key } # we do sometimes receive a blank value in metadata, hence the check.
+ entry_value.gsub!(/\\n/,"\n") if entry_value.is_a?(String) # OPTIMIZE line breaks in text are broken somehow
+ meta_data.build(:meta_key => meta_key, :value => entry_value )
+ end
+
+ end
+ end
+ end
+
+#temp#
+# def extract_mediapro_userfields
+# end
+
+ # see mapping table on http://code.zhdk.ch/projects/madek/wiki/Copyright
+ def set_copyright
+ copyright_status = meta_data.detect {|md| ["copyright status"].include?(md.meta_key.label) }
+ are_usage_or_url_defined = meta_data.detect {|md| ["copyright usage", "copyright url"].include?(md.meta_key.label) }
+
+ if !copyright_status
+ value = (are_usage_or_url_defined ? Copyright.custom : Copyright.default)
+ meta_data.build(:meta_key => MetaKey.find_by_label("copyright status"), :value => value)
+ elsif copyright_status.value.class == TrueClass or are_usage_or_url_defined
+ copyright_status.value = Copyright.custom
+ elsif copyright_status.value.class == FalseClass
+ copyright_status.value = Copyright.public
+ else
+ copyright_status.value = Copyright.default
+ end
+ end
+
+
+# parses the passed in file reference for the requested tag groups
+# returns an array of arrays of meta-data for the group tags requested
+
+#==== Depends on:
+# [external] exiftool meta-data manipulation perl library.
+
+ def exiftool_subjective(media, tags = nil)
+ result_set = []
+ parse_hash = JSON.parse(`#{EXIFTOOL_PATH} -s "#{media}" -a -u -G1 -D -j`).first
+
+ tags.each do |tag_group|
+ result_set << parse_hash.select {|k,v| k.include?(tag_group)}.sort
+ end
+ result_set
+ end
+
+end
diff --git a/app/models/media_file.rb b/app/models/media_file.rb
new file mode 100644
index 0000000000..beca5d76dc
--- /dev/null
+++ b/app/models/media_file.rb
@@ -0,0 +1,283 @@
+# -*- encoding : utf-8 -*-
+# require 'digest'
+
+class MediaFile < ActiveRecord::Base
+ # before_create :set_filename
+ before_create :validate_file
+ after_create :store_file
+ after_destroy :delete_file
+
+ validates_presence_of :uploaded_data
+
+ attr_accessor :uploaded_data
+
+ serialize :meta_data, Hash
+
+ has_many :media_entries # TODO validation: at least one media_entry (even empty)
+ has_many :previews # TODO - the eventual resting place of all preview files derived from the original (e.g. thumbnails)
+ has_one :preview_small, :class_name => "Preview", :conditions => {:thumbnail => "small"} # OPTIMIZE
+
+ scope :original, where(:parent_id => nil)
+
+#########################################################
+
+ def get_preview(size = nil)
+ unless size.blank?
+ p = previews.find_by_thumbnail(size.to_s)
+ p ||= begin
+ make_thumbnails([size])
+ previews.find_by_thumbnail(size.to_s)
+ end
+ # OPTIMIZE p could still be nil !!
+ return p
+ else
+ # get the original
+ return file_storage_location
+ end
+ end
+
+ def import
+ case content_type
+ when /image/ then
+ import_image_metadata(file_storage_location) if previews.empty? # TODO why?
+ make_thumbnails
+ when /video/ then
+ import_audio_video_metadata(full_path_file)
+ when /audio/ then
+ import_audio_metadata(full_path_file)
+ # when /application\/zip/ then
+ # logger.info "application/zip"
+ # explode_and_import(full_path_file)
+ when /application/ then
+ import_document_metadata(full_path_file)
+ else
+ # TODO implement other content_types
+ end
+ update_attributes(:meta_data => meta_data)
+ end
+
+
+# Write the file out to storage
+ def store_file
+ FileUtils.cp uploaded_data[:tempfile].path, file_storage_location
+
+ # TODO in background?
+ import if meta_data.nil?
+ end
+
+# We need to ensure that the media file is not still being used by another media_entry.
+ def delete_file
+ File.delete(file_storage_location)
+ end
+
+
+# The final resting place of the media file. consider it permanent storage.
+# basing the shard on (some non-zero) part of the guid gives us a trivial 'storage balancer' which completely ignores
+# any size attributes of the file, and distributes amongst directories pseudorandomly (which in practice averages out in the long-term).
+#
+ def file_storage_location
+ File.join(FILE_STORAGE_DIR, shard, guid)
+ end
+
+# remember, thumbnails *could* be on a faster storage medium than original files.
+ def thumbnail_storage_location
+ File.join(THUMBNAIL_STORAGE_DIR, shard, guid)
+ end
+
+# set some attributes, for use when storing the file.
+# NB Depending on if we are being called from a rake task or the webserver, we either get a tempfile or an array.
+ def set_filename
+ self.guid = get_guid
+ # Same issue as above, we get a hash or an object, depending on appserver or rake task call.
+ if uploaded_data.kind_of? Hash
+ self.filename = CGI::escape(uploaded_data[:filename])
+ self.size = File.size(uploaded_data[:tempfile].path)
+ self.content_type = uploaded_data[:type]
+ else
+ self.filename = CGI::escape(uploaded_data.original_filename)
+ self.size = uploaded_data.size
+ self.content_type = uploaded_data.content_type
+ end
+ end
+
+# the cornerstone of identity..
+# in an ideal world, this is farmed off to something that can crunch through large files _fast_
+ def get_guid
+ # TODO in background?
+ # Hash or object, we should be seeing a pattern here by now.
+ if uploaded_data.kind_of? Hash
+ g = Digest::SHA256.hexdigest(uploaded_data[:tempfile].read)
+ uploaded_data[:tempfile].rewind
+ else
+ g = Digest::SHA256.hexdigest(uploaded_data.read)
+ uploaded_data.rewind
+ end
+ g
+ end
+
+ def shard
+ # TODO variable length of sharding?
+ self.guid[0..0]
+ end
+
+ def make_thumbnails(sizes = nil)
+ # this should be a background job
+ if content_type.include?('image')
+ THUMBNAILS.each do |thumb_size,value|
+ next if sizes and !sizes.include?(thumb_size)
+ tmparr = thumbnail_storage_location
+ tmparr += "_#{thumb_size.to_s}"
+ outfile = [tmparr, 'jpg'].join('.')
+ conv_res = `convert -verbose "#{file_storage_location}" -auto-orient -thumbnail "#{value}" -flatten -unsharp 0x.5 "#{outfile}"`
+ if conv_res.blank?
+ # if convert failed, we need to take or delegate off some rescue action, ideally.
+ # but for the moment, lets just imply no-thumbnail need be made for this size
+ else
+ x,y = `identify -format "%wx%h" "#{outfile}"`.split('x')
+ if x and y
+ previews.create(:content_type => 'image/jpeg', :filename => outfile.split('/').last, :height => y, :width => x, :thumbnail => thumb_size.to_s )
+ end
+ end
+ end
+ end
+ end
+
+ def validate_file
+ #TODO - check for zip files and process accordingly
+ unless importable_zipfile?
+ set_filename
+ else
+ explode_and_import(uploaded_data)
+ # do the explode and import in the background
+ end
+ end
+
+ def importable_zipfile?
+ if uploaded_data.kind_of? Hash
+ ret = uploaded_data[:filename].include?('__IMPORT__') and uploaded_data[:filename].include?('.zip')
+ else
+ ret = uploaded_data.original_filename.include?('__IMPORT__') and uploaded_data.original_filename.include?('.zip')
+ end
+ ret
+ end
+
+
+# IMAGES
+ def import_image_metadata(full_path_file)
+ self.meta_data = {}
+ group_tags = ['File:', 'Composite:', 'IFD', 'ICC-','ICC_Profile','XMP-exif', 'XMP-xmpMM', 'XMP-aux', 'XMP-tiff', 'Photoshop:', 'ExifIFD:', 'JFIF', 'IFF:', 'GPS:', 'PNG:' ] #'System:' leaks system info
+ ignore_fields = ['UserComment','ImageDescription', 'ProfileCopyright', 'System:']
+ exif_hash = {}
+
+ blob = exiftool_obj(full_path_file, group_tags)
+ blob.each do |tag_array_entry|
+ tag_array_entry.each do |entry|
+ exif_hash[entry[0]]=entry[1] unless ignore_fields.any? {|w| entry[0].include? w }
+ end
+ meta_data.merge!(exif_hash)
+ end
+ # FIXME - We are inserting image-specific data into a model that is generic in intent, for the convenience of it all.
+ # Apparently IFD0 is not the best fit (some files don't contain it), perhaps we should use the Composite:ImageSize tag, till we get rid of these columns..
+ img_x, img_y = exif_hash["Composite:ImageSize"].split("x")
+ update_attributes(:width => img_x, :height => img_y)
+ end
+
+#####################################################################################################################
+
+ def import_audio_video_metadata(full_path_file)
+ # TODO refactor to use exiftool for metadata?
+ begin
+ blorb = `ffmpeg -i "#{full_path_file}" 2>&1`.split("\n")
+ rescue
+ blorb = nil
+ end
+
+ unless blorb.nil?
+ [1..8].each {blorb.pop}
+ self.meta_data = { "date" => Date.today,
+ "format" => content_type,
+ "properties" => (blorb.collect {|key| key.gsub(/\n/, "|") }).join("§")
+ }
+ end
+ end
+
+
+ def import_audio_metadata(full_path_file)
+
+ # TODO refactor to use exiftool for metadata?
+ begin
+ blorb = `ffmpeg -i "#{full_path_file}" 2>&1`.split("\n")
+ rescue
+ blorb = nil
+ end
+
+ unless blorb.nil?
+ [1..8].each {blorb.pop}
+ self.meta_data = { "date" => Date.today,
+ "format" => content_type,
+ "properties" => (blorb.collect {|key| key.gsub(/\n/, "|") }).join("§")
+ }
+ end
+ end
+
+# This kind of thing REALLY needs to happen of elsewhere asynchronously, otherwise we move inexorably towards the day the site gets DOS'd.
+# ie when a user uploads a malevolent zip that unpacks to some ridiculous storage-busting size..
+# TODO - explode and import the contents of a zip file
+# this may be a rag-tag collection of any old rubbish, so we need to try and impose a few minimal rules on the proceedings.
+# - contains some kind of media file (as per madek media types list)
+# - optionally contains an xml metadata file, conforming to the Dublin Core XML schema, or other agreed schemas
+ def explode_and_import(full_path_file)
+
+ racer_x = rand(Time.now.to_i).to_s
+ Dir.mkdir("#{Rails.root}/tmp/unzipfiles/#{racer_x}")
+ # logger.info "inspect: #{full_path_file[:tempfile].inspect}"
+ # logger.info "full_path_file[:tempfile] stat=#{full_path_file[:tempfile].stat.inspect}"
+ # logger.info "full_path_file[:tempfile] path=#{full_path_file[:tempfile].path.inspect}"
+ z = Zip::ZipFile.open(full_path_file[:tempfile].path)
+ mf = []
+ # logger.info { "*****************************************************************" }
+ # logger.info { "ZIPFLE HAS #{z.entries.size} ENTRIES" }
+ destination = "#{Rails.root}/tmp/unzipfiles/#{racer_x}/" # TODO configurable
+ z.each do |ent|
+ next if ent.name =~ /__MACOSX/ or ent.name =~ /\.DS_Store/ or !ent.file?
+ # logger.info "ZIPFLE Entry #{ent}"
+ f_path=File.join(destination, ent.name)
+ # logger.info "f_path=#{f_path}"
+ FileUtils.rm_rf f_path if File.exist?(f_path)
+ # logger.info "remove pth"
+ FileUtils.mkdir_p(File.dirname(f_path))
+ # logger.info "made directory"
+ z.extract(ent, f_path)
+ # logger.info "just extracted #{ent} to #{f_path}"
+ mimetype = `#{FILE_UTIL_PATH} "#{Rails.root}/tmp/unzipfiles/#{racer_x}/#{ent}"`.gsub(/\n/,"")
+ # logger.info "mimetype=#{mimetype}"
+
+ #TODO something intelligent and asynchronous here, to allow us to go through the files in the zip and insert them, optionally adding any yaml metadata we find that relate to media.
+ # mf << MediaFile.create(:uploaded_data => ActionController::TestUploadedFile.new("#{Rails.root}/tmp/unzipfiles/#{racer_x}/#{ent}", mimetype))
+ end
+ resout = `rake madek:importer:import[#{full_path_file["current_user"]}, "#{Rails.root}/tmp/unzipfiles/#{racer_x}/"]`
+ res = $?
+ end
+
+
+ def import_document_metadata(full_path_file)
+ #TODO - specifically for other non-zipped documents (e.g. source code, application binary, etc)
+ end
+
+
+ private
+
+
+ # parses the passed in file reference for the requested tag groups (using exiftool)
+ # returns an array of arrays of meta-data for the group tags requested
+ def exiftool_obj(full_path_file, tags = nil)
+ result_set = []
+ parse_hash = JSON.parse(`#{EXIFTOOL_PATH} -s "#{full_path_file}" -a -u -G1 -D -j`).first
+ tags.each do |tag_group|
+ result_set << parse_hash.select {|k,v| k.include?(tag_group)}.sort
+ end
+ result_set
+ end
+
+
+end
diff --git a/app/models/meta/date.rb b/app/models/meta/date.rb
new file mode 100644
index 0000000000..6c148fa005
--- /dev/null
+++ b/app/models/meta/date.rb
@@ -0,0 +1,97 @@
+class Meta::Date # TODO rename to Meta::DateTime ??
+
+ attr_accessor :timestamp, #old# :parsed # TODO enforce to DateTime ??
+ :timezone,
+ :free_text
+
+ def initialize(attributes = {})
+ attributes.each_pair do |key, value|
+ self.send("#{key}=", value)
+ end
+ end
+
+ def id
+ self
+ end
+
+ def to_s
+ if parsed
+ format = if parsed.to_datetime.seconds_since_midnight > 0 # TODO just .seconds_since_midnight
+ :date_time
+ else
+ :date
+ end
+ parsed.to_formatted_s(format)
+ else
+ @free_text
+ end
+ end
+
+ def parsed
+ Time.at(@timestamp) if @timestamp
+ end
+
+###################################
+ class << self
+
+ def where(args)
+ r = if args[:id].respond_to?(:ivars) and args[:id].class == "Meta::Date"
+ new(args[:id].ivars)
+ else
+ case args[:id].class.name
+ when "Meta::Date"
+ args[:id]
+ when "String"
+ parse(args[:id])
+ else
+ nil
+ end
+ end
+ [r]
+ end
+
+ def parse(string)
+ h = {:free_text => string}
+ begin
+ #old#
+ # r = if string =~ /^(\d{4}):(\d{2}):(\d{2}) (\d{2}):(\d{2}):(\d{2})[\+|\-](\d{2}):(\d{2})$/ # EXIF standard with time and zone
+ # ::DateTime.strptime(string, DateTime::DATE_FORMATS[:exif_date_time_zone])
+ # elsif string =~ /^(\d{4}):(\d{2}):(\d{2}) (\d{2}):(\d{2}):(\d{2})$/ # EXIF standard with time
+ # ::DateTime.strptime(string, DateTime::DATE_FORMATS[:exif_date_time])
+ # elsif string =~ /^(\d{4}):(\d{2}):(\d{2})$/ # EXIF standard without time
+ # ::DateTime.strptime(string, Date::DATE_FORMATS[:exif_date])
+ # else
+ # ::DateTime.parse(string)
+ # end
+
+ # OPTIMIZE
+ if string =~ /^(\d{4}):(\d{2}):(\d{2})/
+ string.sub!(':', '-').sub!(':', '-')
+ end
+
+ local_timezone = Time.zone.formatted_offset
+ zone = Date._parse(string)[:zone]
+ h[:timezone] = zone || local_timezone
+
+ r = Time.parse(string)
+
+ #old# h[:parsed] = r.new_offset(local_zone) # NOTE enforcing the local timezone. DateTime in Ruby 1.9.x preserves the timezone ??
+ #old# h[:parsed] = r
+ h[:timestamp] = r.to_i
+ rescue
+ # there was no exact match, so we only store the free text
+ end
+ new(h)
+ end
+
+ def parse_all
+ MetaKey.where(:object_type => "Meta::Date").each do |key|
+ key.meta_data.each do |md|
+ md.update_attributes(:value => md.value)
+ end
+ end
+ end
+
+ end
+
+end
\ No newline at end of file
diff --git a/app/models/meta/department.rb b/app/models/meta/department.rb
new file mode 100644
index 0000000000..4832a5f2b3
--- /dev/null
+++ b/app/models/meta/department.rb
@@ -0,0 +1,50 @@
+class Meta::Department < Group
+
+ default_scope order(:name)
+
+ def to_s
+ "#{name} (#{ldap_name})"
+ end
+
+ def to_limited_s(n = 80)
+ if to_s.mb_chars.size > n
+ "#{to_s.mb_chars.limit(n)}..."
+ else
+ to_s
+ end
+ end
+
+ def is_readonly?
+ true
+ end
+
+##########################################
+
+ LDAP_CONFIG = YAML::load_file("#{Rails.root}/config/LDAP.yml")
+
+ def self.fetch_from_ldap
+ ldap = Net::LDAP.new :host => LDAP_CONFIG[Rails.env]["host"],
+ :port => LDAP_CONFIG[Rails.env]["port"].to_i,
+ :encryption => LDAP_CONFIG[Rails.env]["encryption"].to_sym,
+ :base => LDAP_CONFIG[Rails.env]["base"],
+ :auth => {
+ :method=> :simple,
+ :username => LDAP_CONFIG[Rails.env]["bind_dn"],
+ :password => LDAP_CONFIG[Rails.env]["bind_pwd"] }
+
+ if ldap.bind
+ #ic = Iconv.new('utf-8//IGNORE//TRANSLIT', 'utf-8')
+ transaction do
+ ldap.search(:attributes => ["name", "extensionAttribute1", "extensionAttribute3"], # [ "cn" , "displayName", "extensionAttribute2"],
+ :filter => nil,
+ :return_result => true ) do |entry|
+ next if entry["extensionattribute3"].empty?
+ r = self.find_or_create_by_ldap_id(:ldap_id => entry["extensionattribute3"].first)
+ r.update_attributes(:ldap_name => entry["name"].first, :name => entry["extensionattribute1"].first) #ic.iconv(entry["displayname"].first)
+ end
+ end
+ end
+
+ end
+
+end
diff --git a/app/models/meta/term.rb b/app/models/meta/term.rb
new file mode 100644
index 0000000000..dc98b052b6
--- /dev/null
+++ b/app/models/meta/term.rb
@@ -0,0 +1,67 @@
+# -*- encoding : utf-8 -*-
+module Meta
+ def self.table_name_prefix
+ "meta_"
+ end
+
+ class Term < ActiveRecord::Base
+ has_and_belongs_to_many :meta_keys, :join_table => :meta_keys_meta_terms,
+ :foreign_key => :meta_term_id
+
+ validate :validations
+
+ def to_s(lang = nil)
+ lang ||= DEFAULT_LANGUAGE
+ self.send(lang)
+ end
+
+ ######################################################
+
+ def meta_data
+ meta_keys.collect(&:meta_data).flatten.select {|x| x.value.include?(self.id) }
+ end
+
+ def reassign_meta_data_to_term(term)
+ meta_data.each do |md|
+ md.value.map! do |x|
+ if x == self.id
+ term.id
+ else
+ x
+ end
+ end
+ md.save
+ end
+ end
+
+ ######################################################
+
+ def is_used?
+ self.class.used_ids.include?(self.id)
+ end
+
+ # TODO method cache
+ def self.used_ids
+ @used_ids ||= begin
+ ids = (MetaContext.all + MetaKeyDefinition.all).collect do |x|
+ # TODO fetch id directly
+ [x.meta_field.label.try(:id), x.meta_field.description.try(:id), x.meta_field.hint.try(:id)]
+ end
+ ids += MetaKey.where(:object_type => "Meta::Term").collect(&:meta_data).flatten.collect do |x|
+ x.value
+ end
+ ids.flatten.uniq.compact
+ end
+ end
+
+ ######################################################
+
+ private
+
+ def validations
+ errors.add_to_base("A term cannot be blank") if LANGUAGES.all? {|lang| send(lang).blank? }
+ end
+
+ end
+
+end
\ No newline at end of file
diff --git a/app/models/meta_context.rb b/app/models/meta_context.rb
new file mode 100644
index 0000000000..b1ee881063
--- /dev/null
+++ b/app/models/meta_context.rb
@@ -0,0 +1,52 @@
+# -*- encoding : utf-8 -*-
+#=MetaContext
+# A MetaContext is a representation of a set of meta-data requirements for a particular domain.
+# for example, we start with a base set ("Core") that has approximately 7 definitions.
+# Further contexts may 'inherit' from the Core defintions (actually, it's a nested set)
+# MetaContexts were originally intended to provide assistance selecting the right keys to be exported to a given external system
+# However, they are quite flexible, and may also be used for managing meta-data upon import.
+class MetaContext < ActiveRecord::Base
+
+ has_many :meta_key_definitions, :dependent => :destroy
+ has_many :meta_keys, :through => :meta_key_definitions, :order => :position
+
+ validates_presence_of :name
+
+ # NOTE the overridden method MUST come BEFORE the serialize statement or IT WILL FAIL ON LINUX!!
+ def meta_field=(hash = {})
+ f = meta_field || MetaField.new
+ f.update_attributes(hash)
+ write_attribute(:meta_field, f)
+ end
+ serialize :meta_field, MetaField
+
+##################################################################
+
+ scope :for_interface, where(:is_user_interface => true)
+ scope :for_import_export, where(:is_user_interface => false)
+
+##################################################################
+
+ def to_s
+ "#{meta_field.try(:label)}"
+ end
+
+ def next_position
+ meta_key_definitions.maximum(:position).try(:next).to_i
+ end
+
+##################################################################
+
+ def self.defaults
+ [media_content, media_object, copyright, zhdk_bereich]
+ end
+
+ def self.method_missing(*args)
+ # TODO identity_map for MetaContext similar to MetaKey ??
+ # @contexts ||= {} # doesn't reflect updated meta_keys position order
+ @contexts = {}
+ @contexts[args.first] ||= where(:name => args.first.to_s).first
+ @contexts[args.first] || super
+ end
+
+end
diff --git a/app/models/meta_datum.rb b/app/models/meta_datum.rb
new file mode 100644
index 0000000000..7255c04242
--- /dev/null
+++ b/app/models/meta_datum.rb
@@ -0,0 +1,163 @@
+# -*- encoding : utf-8 -*-
+#= MetaDatum
+# The Association class for relating a Resource (e.g. a MediaEntry) to a MetaKey and a value for that key.
+#
+# Values are serialized objects (but should we be using composed_of instead?)
+class MetaDatum < ActiveRecord::Base
+
+ belongs_to :resource, :polymorphic => true
+ belongs_to :meta_key
+
+ serialize :value
+
+ validates_uniqueness_of :meta_key_id, :scope => [:resource_type, :resource_id]
+ validates_presence_of :resource_type, :resource_id, :meta_key_id, :value
+
+ before_save do |record|
+ case record.meta_key.object_type
+ when nil, "Meta::Country"
+ #working here# TODO set String for 'subject' key
+ #when "String"
+ # record.value = record.value.split(',')
+ else
+ klass = record.meta_key.object_type.constantize
+ values = case klass.name
+ when "Person"
+ klass.split(Array(record.value))
+ when "Meta::Date"
+ record.value.to_s.split(' - ') # Needs to be a string because other objects might not have .split, which breaks
+ # parsing the date. Mostly a safety measure, but also to make migration from 0.1.2 to 0.1.3 work.
+ else
+ Array(record.value)
+ end
+ # TODO Person.suspend_delta
+ record.value = values.map do |v|
+ if v.is_a?(Fixnum) or (v.respond_to?(:match) and !!v.match(/\A[+-]?\d+\Z/)) # TODO patch to String#is_numeric? method
+ r = klass.where(:id => v).first
+ elsif klass == Copyright
+ r = record.value
+ elsif klass == Person
+ firstname, lastname = klass.parse(v)
+ r = klass.find_or_create_by_firstname_and_lastname(:firstname => firstname.try(:capitalize), :lastname => lastname.try(:capitalize)) if firstname or lastname
+ elsif klass == Keyword
+ # 2210
+ conditions = [[]]
+ LANGUAGES.each do |lang|
+ conditions.first << "#{lang} = ?"
+ conditions << v
+ end
+ conditions[0] = conditions.first.join(" OR ")
+ term = Meta::Term.where(conditions).first
+
+ term ||= begin
+ h = {}
+ LANGUAGES.each do |lang|
+ h[lang] = v
+ end
+ Meta::Term.create(h)
+ end
+
+ user = resource.editors.latest || (resource.respond_to?(:user) ? resource.user : nil)
+ r = Keyword.create(:meta_term => term, :user => user)
+
+ # TODO delete keywords records anymore referenced
+ elsif klass == Meta::Date
+ r = klass.parse(v)
+ end
+
+ (r ? r.id : nil )
+ end
+ record.value.compact!
+ end
+ end
+
+##########################################################
+
+ alias_method :orig_meta_key=, :meta_key=
+ def meta_key=(key)
+ self.orig_meta_key = if key.is_a? MetaKey
+ key
+ else
+ MetaKey.find_or_create_by_label(key.downcase)
+ #new# MetaKey.find_label(key.downcase)
+ end
+ end
+
+ def to_s
+ v = deserialized_value
+ if v.is_a?(Array)
+ return v.join(', ')
+ else
+ return v.to_s
+ end
+ end
+
+ # some meta_keys don't store values,
+ # then the returned value could be a stored one or dynamically computed
+#working here# TODO deserialized_value #value
+ def deserialized_value
+ if meta_key.is_dynamic?
+ case meta_key.label
+ when "uploaded by"
+ return resource.user
+ when "uploaded at"
+ return resource.created_at #old# .to_formatted_s(:date_time) # TODO resource.upload_session.created_at ??
+ when "copyright usage"
+ copyright = resource.meta_data.get("copyright status").deserialized_value.first || Copyright.default # OPTIMIZE array or single element
+ return copyright.usage(read_attribute(:value))
+ when "copyright url"
+ copyright = resource.meta_data.get("copyright status").deserialized_value.first || Copyright.default # OPTIMIZE array or single element
+ return copyright.url(read_attribute(:value))
+ when "public access"
+ return resource.acl?(:view, :all)
+ when "media type"
+ return resource.media_type
+ #when "gps"
+ # return resource.media_file.meta_data["GPS"]
+ end
+ else
+ case meta_key.object_type
+ when nil, "Meta::Country"
+ return read_attribute(:value)
+ else
+ klass = meta_key.object_type.constantize
+ return Array(read_attribute(:value)).map do |v| # OPTIMIZE 0,1,n limits, return single value if it isn't an Array
+ Rails.cache.fetch("#{klass}/#{v}", :expires_in => 10.minutes) do
+ #old# klass.find(v) if v
+ klass.where(:id => v).first if v
+ # TODO return "Reference not found" instead of nil ??
+ end
+ end.compact
+ end
+ end
+ end
+
+#old#
+# # compares two objects in order to sort them
+# def <=>(other)
+# self.meta_key.label <=> other.meta_key.label
+# end
+
+##########################################################
+
+ def context_warnings(context = MetaContext.core)
+ @context_warnings ||= {}
+ unless @context_warnings[context.id]
+ @context_warnings[context.id] = []
+
+ definition = meta_key.meta_key_definitions.for_context(context)
+ meta_field = definition.meta_field
+
+ @context_warnings[context.id] << "can't be blank" if value.blank? and meta_field.is_required
+ @context_warnings[context.id] << "is too short (min is #{meta_field.length_min} characters)" if meta_field.length_min and (value.blank? or value.size < meta_field.length_min)
+ @context_warnings[context.id] << "is too long (maximum is #{meta_field.length_max} characters)" if value and meta_field.length_max and value.size > meta_field.length_max
+ # TODO options
+ end
+ return @context_warnings[context.id]
+ end
+
+ def context_valid?(context = MetaContext.core)
+ context_warnings(context).empty?
+ end
+
+end
diff --git a/app/models/meta_field.rb b/app/models/meta_field.rb
new file mode 100644
index 0000000000..7673b07ec9
--- /dev/null
+++ b/app/models/meta_field.rb
@@ -0,0 +1,94 @@
+# -*- encoding : utf-8 -*-
+#=MetaField
+# provides a (serialized) container for meta_key_definitions
+#
+class MetaField
+
+ attr_accessor :is_required, # boolean
+ :length_min, # integer
+ :length_max, # integer
+ :options, # Meta::Term ids array ## TODO remove after migration 20100610103525
+ :label, # Meta::Term id
+ :description, # Meta::Term id
+ :hint # Meta::Term id
+
+ def update_attributes(attributes)
+ attributes.each_pair do |key, value|
+ self.send("#{key}=", value)
+ end
+ end
+
+### TODO generic getter and setter
+### TODO find_or_create just on before_save of MetaKeyDefinition ??
+ def label=(h)
+ @label = get_term(h).try(:id)
+ remove_instance_variable(:@label) if @label.blank?
+ end
+
+ def description=(h)
+ @description = get_term(h).try(:id)
+ remove_instance_variable(:@description) if @description.blank?
+ end
+
+ def hint=(h)
+ @hint = get_term(h).try(:id)
+ remove_instance_variable(:@hint) if @hint.blank?
+ end
+
+ # expected
+ # {:id1 => {:en_GB => ..., :de_CH => ...}, :id2 => {:en_GB => ..., :de_CH => ..., :id => ...}, ...}
+ # ["string 1", "string 2", ...]
+ def options=(values) ## TODO remove after migration 20100610103525
+ #old# values = values.split(/\n/) if values.is_a? String
+
+ if values.is_a? Hash
+ values.each_pair {|k,v| v[:id] = k.to_i if k.to_i > 0 } # add id to hash values
+ values = values.values # ignore the hash keys
+ end
+
+ @options = Array(values).collect do |h|
+ h = {:en_GB => h, :de_CH => h} if h.is_a? String
+
+ id = h.delete(:id)
+ term = Meta::Term.where(:id => id).first if id
+ if term
+ term.update_attributes(h)
+ term.id
+ else
+ get_term(h).try(:id)
+ end
+ end.compact
+ remove_instance_variable(:@options) if @options.blank?
+ end
+
+ # OPTIMIZE 2210 uniqueness
+ def get_term(h)
+ if h.is_a? Integer
+ Meta::Term.where(:id => h).first
+ elsif h.values.any? {|x| not x.blank? }
+ Meta::Term.find_or_create_by_en_GB_and_de_CH(h)
+ end
+ end
+
+### OPTIMIZE
+ def label
+ @label = Meta::Term.find(@label) if @label.is_a? Integer
+ @label
+ end
+
+ def description
+ @description = Meta::Term.find(@description) if @description.is_a? Integer
+ @description
+ end
+
+ def hint
+ @hint = Meta::Term.find(@hint) if @hint.is_a? Integer
+ @hint
+ end
+
+ def options ## TODO remove after migration 20100610103525
+ @options = Meta::Term.find(@options) if @options.is_a? Array and @options.all? {|x| x.is_a? Integer }
+ @options
+ end
+
+end
diff --git a/app/models/meta_key.rb b/app/models/meta_key.rb
new file mode 100644
index 0000000000..41323f06e9
--- /dev/null
+++ b/app/models/meta_key.rb
@@ -0,0 +1,136 @@
+# -*- encoding : utf-8 -*-
+#= MetaKey
+#
+# Holds the set of basic meta data keys
+class MetaKey < ActiveRecord::Base
+
+ has_many :meta_data
+ has_many :media_entries, :through => :meta_data, :uniq => true
+ has_many :meta_key_definitions do
+ def for_context(context)
+ @meta_key_definitions ||= {}
+ @meta_key_definitions[context.id] ||= scoped_by_meta_context_id(context).first
+ end
+ end
+ has_many :meta_contexts, :through => :meta_key_definition
+ has_and_belongs_to_many :meta_terms, :class_name => "Meta::Term", # TODO enforce object_type="Meta::Term" if meta_terms
+ :join_table => :meta_keys_meta_terms,
+ :association_foreign_key => :meta_term_id
+ accepts_nested_attributes_for :meta_terms, :allow_destroy => true, :reject_if => proc { |attributes| LANGUAGES.all? {|l| attributes[l].blank? } }
+
+ validates_uniqueness_of :label
+
+ #old#precedence problem# default_scope order(:label)
+ scope :with_meta_data, joins(:meta_data).group(:id)
+
+########################################################
+
+ before_save do |record|
+ record.object_type = nil if record.object_type.blank?
+ end
+
+ def to_s
+ label #.capitalize
+ end
+
+########################################################
+
+ #working here#9
+ def key_map_for(context)
+ d = meta_key_definitions.for_context(context)
+ d.key_map if d
+ end
+
+########################################################
+
+ def self.all_cached
+ Rails.cache.fetch("meta_keys", :expires_in => 10.minutes) do
+ all
+ end
+ end
+
+########################################################
+
+# Return a meta_key matching the provided key-map
+#
+# args: a keymap (fully namespaced)
+# returns: a meta_key
+#
+# NB: If no meta_key matching the key-map is found, it is created
+# along with a new meta_key_definition (albeit with minimal label and description data)
+ def self.meta_key_for(key_map) # TODO, context = nil)
+ # do we really need to find by context here?
+# mk = if context.nil?
+# MetaKeyDefinition.find_by_key_map(key_map).try(:meta_key)
+# else
+# context.meta_key_definitions.find_by_key_map(key_map).try(:meta_key)
+# end
+
+ mk = MetaKeyDefinition.where("key_map LIKE ?", "%#{key_map}%").first.try(:meta_key)
+
+ if mk.nil?
+ entry_name = key_map.split(':').last.underscore.gsub(/[_-]/,' ')
+ mk = MetaKey.find_by_label(entry_name)
+ end
+ # we have to create the meta key, since it doesnt exist
+ if mk.nil?
+ mk = MetaKey.find_or_create_by_label(entry_name)
+ mc = MetaContext.io_interface
+
+ # Would be nice to build some useful info into the meta_field for this new creation.. but we know nothing about it apart from its namespace:tagname
+ meta_field = { :label => {:en_GB => "", :de_CH => ""},
+ :description => {:en_GB => "", :de_CH => ""}
+ }
+
+ mk.meta_key_definitions.create( :meta_context => mc,
+ :meta_field => meta_field,
+ :key_map => key_map,
+ :key_map_type => nil,
+ :position => mc.meta_key_definitions.maximum("position") + 1 )
+ end
+ mk
+ end
+
+ def self.object_types
+ where("object_type IS NOT NULL").group(:object_type).collect(&:object_type).sort
+ end
+
+########################################################
+
+ # overriding framework method in order to have an identity map
+ @@identity_map ||= {}
+ def self.find(*args)
+ record = if args.first.is_a?(Fixnum) # or !!args.first.match(/\A[+-]?\d+\Z/) # TODO path to String#is_numeric? method
+ @@identity_map[args.first]
+ elsif args.size > 1 and args.last[:conditions] and args.last[:conditions][:label]
+ @@identity_map[args.last[:conditions][:label]]
+ end
+ unless record
+ record = super(*args)
+ Array(record).each do |r|
+ @@identity_map[r.id] = @@identity_map[r.label] = r
+ end
+ end
+ record
+ end
+
+########################################################
+
+#old#
+# def self.init(reset = false)
+# puts "Metakey::init"
+# return 0 unless reset or count == 0
+# delete_all
+#
+# keys = YAML.load(File.read("#{METADATA_CONFIG_DIR}/key.yml"))
+#
+# keys.each do |key|
+# meta_terms = key.delete("meta_terms")
+# k = create(key)
+# k.meta_terms.create(meta_terms) if meta_terms
+# end
+#
+# return count
+# end
+
+end
diff --git a/app/models/meta_key_definition.rb b/app/models/meta_key_definition.rb
new file mode 100644
index 0000000000..c667ba48b0
--- /dev/null
+++ b/app/models/meta_key_definition.rb
@@ -0,0 +1,166 @@
+# -*- encoding : utf-8 -*-
+#= MetaKeyDefinition
+#
+# Our association object between a MetaContext and a MetaKey, with a serialized value.
+#
+# A meta key definition provides a description and label for a particular meta-key in a particular context.
+
+class MetaKeyDefinition < ActiveRecord::Base
+
+ belongs_to :meta_context
+ belongs_to :meta_key
+
+ validates_presence_of :meta_field, :meta_key_id
+ validate do |record|
+ # FIXME undefined method `add_to_base' for #
+ if record.meta_context.is_user_interface?
+ record.errors.add_to_base("key_map has to be blank") unless record.key_map.blank?
+ else
+ record.errors.add_to_base("key_map can't be blank") if record.key_map.blank?
+ end
+ end
+
+ before_validation {|record| record.meta_field = {} unless record.meta_field }
+
+ # NOTE the overridden method MUST come BEFORE the serialize statement or IT WILL FAIL ON LINUX!!
+ def meta_field=(hash = {})
+ f = meta_field || MetaField.new
+ f.update_attributes(hash)
+ write_attribute(:meta_field, f)
+ end
+ serialize :meta_field, MetaField
+
+###################################################
+
+ # NOTE config.gem "rgl", :lib => "rgl/adjacency"
+ # http://rgl.rubyforge.org/ - http://www.graphviz.org/
+ # require 'rgl/adjacency'
+ require 'rgl/dot'
+ # TODO use ruby-graphviz gem instead ??
+ def self.keymapping_graph
+ g = RGL::DOT::Digraph.new({ 'name' => 'MAdeK keymapping',
+ 'style' => "filled",
+ 'nodesep' => ".075",
+ 'label' => "Key Mapping Graph\n#{DateTime.now.to_formatted_s(:date_time)}",
+ 'labelloc' => 't',
+ 'labeljust' => 'l',
+ 'ranksep' => "4.0",
+ 'rankdir' => "LR" })
+ # node [shape=box,width=.1,height=.1]
+
+ ####### Internal cluster
+ sg_keys = RGL::DOT::Subgraph.new({ 'name' => "cluster_internal",
+ 'label' => "Internal",
+ 'color' => '#A1D4F1'})
+
+ MetaKey.all.each do |meta_key|
+ sg_keys << RGL::DOT::Node.new({'name' => meta_key.label,
+ 'shape' => "box",
+ 'style' => meta_key.is_dynamic? ? "filled" : "",
+ 'width' => "2.7", 'height' => "0" })
+ end
+
+ ####### for_interface
+ MetaContext.for_interface.each do |context|
+ sg = RGL::DOT::Node.new({'name' => context,
+ 'shape' => "box",
+ 'style' => "filled",
+ 'width' => "1.5", 'height' => "1.5" })
+ sg_keys << sg
+ color = "#"
+ 3.times { c = rand(8); color << "#{c}"*2 }
+ context.meta_key_definitions.all.each do |definition|
+ sg_keys << RGL::DOT::DirectedEdge.new({'from' => definition.meta_key.label,
+ 'to' => context,
+ 'arrowhead' => 'none',
+ 'arrowtail' => 'none',
+ 'headport' => 'w',
+ 'tailport' => 'e',
+ 'color' => color })
+ end
+ end
+ g << sg_keys
+
+
+ ####### External cluster
+ sg_keys = RGL::DOT::Subgraph.new({ 'name' => "cluster_external",
+ 'label' => "External",
+ 'color' => '#A1D4F1'})
+
+#working here#10
+# all(:select => :key_map, :group => :key_map, :conditions => "key_map IS NOT NULL").each do |definition|
+# sg_keys << RGL::DOT::Node.new({ 'name' => definition.key_map, # TODO split(',')
+# 'shape' => "box",
+# 'width' => "0", 'height' => "0" })
+# end
+
+ colors = {}
+ ####### for_import_export
+ MetaContext.for_import_export.each do |context|
+ sg = RGL::DOT::Node.new({ 'name' => context,
+ 'shape' => "box",
+ 'style' => "filled",
+ 'width' => "1.5", 'height' => "1.5" })
+ sg_keys << sg
+
+ color = "#"
+ 3.times { c = rand(8); color << "#{c}"*2 }
+ colors[context] = color
+
+#working here#10
+# context.meta_key_definitions.each do |definition|
+# sg_keys << RGL::DOT::DirectedEdge.new({'from' => context,
+# 'to' => definition.key_map, # TODO split(',')
+# 'dir' => 'back',
+# 'color' => color })
+# sg_keys << RGL::DOT::DirectedEdge.new({'from' => definition.key_map, # TODO split(',')
+# 'to' => definition.meta_key.label,
+# 'dir' => 'back',
+# 'color' => color })
+# end
+ end
+
+ group(:key_map).where("key_map IS NOT NULL").each do |definition|
+ definition.key_map.split(',').collect do |km|
+ km.strip!
+
+ sg_keys << RGL::DOT::Node.new({ 'name' => km,
+ 'shape' => "box",
+ 'width' => "3.6", 'height' => "0" })
+
+ sg_keys << RGL::DOT::DirectedEdge.new({'from' => definition.meta_context, #working here#10 crashes if many meta_key_definitions are found!!!
+ 'to' => km,
+ 'arrowhead' => 'none',
+ 'arrowtail' => 'none',
+ 'headport' => 'w',
+ 'tailport' => 'e',
+ #'dir' => 'back',
+ 'color' => colors[definition.meta_context] })
+ sg_keys << RGL::DOT::DirectedEdge.new({'from' => km,
+ 'to' => MetaKey.meta_key_for(km).label,
+ 'arrowhead' => 'none',
+ 'arrowtail' => 'none',
+ 'headport' => 'w',
+ 'tailport' => 'e',
+ #'dir' => 'back',
+ 'color' => colors[definition.meta_context] })
+ end
+ end
+ g << sg_keys
+
+
+ fmt = 'svg' # 'png'
+ dotfile = "public/images/graphs/meta"
+ src = dotfile + ".dot"
+ dot = dotfile + "." + fmt
+
+ File.open(src, 'w') do |f|
+ f << g.to_s << "\n"
+ end
+ system( "#{DOT_PATH} -T#{fmt} #{src} -o #{dot}" ) # dot # neato # twopi # circo # fdp # sfdp
+ dot.gsub('public', '')
+
+ ############ end graph
+ end
+
+end
diff --git a/app/models/permission.rb b/app/models/permission.rb
new file mode 100644
index 0000000000..f3973e3bec
--- /dev/null
+++ b/app/models/permission.rb
@@ -0,0 +1,245 @@
+# -*- encoding : utf-8 -*-
+class Permission < ActiveRecord::Base
+
+ class Actions
+ attr_accessor :keys
+
+ def initialize(attributes = {})
+ @keys ||= {}
+ attributes.each_pair do |key, value|
+ @keys[key] = value
+ end
+ end
+
+ def set_actions(hash)
+ hash.each_pair { |key, value| set_action(key,value) }
+ end
+
+ private
+
+ # @args: key as symbol; value as boolean, symbol or nil
+ def set_action(key, value)
+ case value.class.name
+ when "NilClass"
+ @keys.delete(key.to_sym)
+ when "TrueClass", "Symbol"
+ @keys[key.to_sym] = value
+ else
+ @keys[key.to_sym] = false
+ end
+ end
+
+ end
+
+#################################################
+
+ belongs_to :subject, :polymorphic => true
+ belongs_to :resource, :polymorphic => true
+
+ serialize :actions_object #, Actions
+ validates_presence_of :actions_object
+ validates_uniqueness_of :subject_id, :scope => [:subject_type, :resource_id, :resource_type]
+
+ #old#precedence problem# default_scope order("created_at DESC")
+ scope :with_subject, where("subject_id IS NOT NULL AND subject_type IS NOT NULL")
+
+ # TODO validate not empty actions_object
+ after_initialize do |record|
+ record.actions_object = Actions.new unless actions_object
+ end
+
+ after_save :invalidate_cache
+ before_destroy :invalidate_cache
+
+# Returns the hash of assigned permissions
+ def actions # TODO rename to .real_action or .hard_action or .assigned_actions or .stored_actions
+ actions_object.keys
+ end
+
+ # TODO refactor to Permission.merged_actions (but prevent fetching record twice)
+# returns hash of all actions, correctly merged
+ def merged_actions
+ self.class.resource_default_actions(resource).merge(actions)
+ end
+
+ def set_actions(hash)
+ actions_object.set_actions(hash)
+ save
+ resource.sphinx_reindex if resource.try(:respond_to?, :sphinx_reindex) and subject.nil? # OPTIMIZE after_save ??
+ end
+
+ private
+
+ # Returns key value: boolean, symbol or nil
+ def action(key)
+ merged_actions[key.to_sym]
+ end
+
+ def invalidate_cache
+ #regex = /permissions\/#{subject_type}_#{subject_id}\/#{resource_type}_#{resource_id}\/actions.*/
+ regex = /permissions.*/
+ Permission.delete_matched_cached_keys(regex)
+ end
+
+
+##################################################
+ class << self
+
+ # OPTIMIZE could be the subject argument a Group ?? or it's always a User ??
+ # is a subject authorized to perform action on a resource?
+ # returns true or false
+ def authorized?(subject, action, resource)
+ # TODO default manage permission for associated user (owner) ??
+ #return true if action == :manage and subject == resource.user
+
+ b = merged_actions(subject, resource)[action]
+ # TODO cache b
+ if b.is_a?(Symbol)
+ case b
+ when :logged_in_users
+ !!subject # returning false if subject is not defined
+ else
+ false # action denied if not recognized string
+ end
+ else
+ !!b # force to boolean
+ end
+ end
+
+ def resource_viewable_only_by_user?(resource, subject)
+ all = cached_permissions_by(resource)
+ default = all.select {|p| p.subject.nil? }
+ without_default = all - default
+ without_default.size == 1 and !default.first.actions[:view] and without_default.first.subject.id == subject.id
+ end
+
+ # set up the default system actions
+ def init(reset = false)
+ return 0 unless reset or count == 0
+ delete_all
+
+ p = new
+ p.set_actions(DEFAULT_ACTION_PERMISSIONS)
+
+ return count
+ end
+
+ #################################################
+
+ # Lowest level of permission defaults.
+ def system_default_actions
+ # NOTE cache tree structure: "permissions/subject_type_id/resource_type_id/actions/action_key"
+ key = "permissions/_/_/actions"
+ Rails.cache.fetch(key, :expires_in => 10.minutes) do
+ p = where(:subject_id => nil, :subject_type => nil, :resource_type => nil, :resource_id => nil).first
+ p ? p.actions : {}
+ end
+ end
+
+ def resource_default_actions(resource)
+ #p = resource.default_permission
+ p = cached_permissions_by(resource).detect {|x| x.subject.nil? }
+ system_default_actions.merge(p ? p.actions : {})
+ end
+
+ def cached_permissions_by(resource)
+ key = "permissions/_/#{resource.class}_#{resource.id}/actions"
+ Rails.cache.fetch(key, :expires_in => 10.minutes) do
+ add_to_cached_keys(key)
+ resource.permissions.all
+ end
+ end
+
+ #################################################
+
+# private
+
+ # returns the whole permissions hashes all merged in correct order.
+ def merged_actions(subject, resource)
+ actions = resource_default_actions(resource)
+
+ if subject
+ if subject.class == User # OPTIMIZE could be the subject argument a Group ??
+ #group_permissions = resource.permissions.where(:subject_type => "Group", :subject_id => subject.group_ids)
+ group_permissions = cached_permissions_by(resource).select {|x| x.subject_type == "Group" and subject.group_ids.include?(x.subject_id) }
+ group_permissions.each do |group_permission|
+ group_permission.actions.each_pair do |k,v|
+ actions[k] = (actions[k] or v)
+ end
+ end
+ end
+
+ #perm_subject_resource = resource.permissions.where(:subject_type => subject.class.base_class.name, :subject_id => subject.id).first
+ perm_subject_resource = cached_permissions_by(resource).detect {|x| x.subject_type == subject.class.base_class.name and x.subject_id == subject.id }
+ actions = actions.merge(perm_subject_resource.actions) if perm_subject_resource
+ end
+ actions
+ end
+
+ #####
+ # TODO move to an initializer or use
+ # http://railsforum.com/viewtopic.php?id=42738
+ def cached_keys
+ Rails.cache.read("cached_keys") || []
+ end
+
+ def cached_keys=(keys)
+ Rails.cache.write("cached_keys", keys)
+ end
+
+ def add_to_cached_keys(key)
+ self.cached_keys = (cached_keys + [key]) unless cached_keys.include?(key)
+ end
+
+ def delete_matched_cached_keys(regex)
+ matched_keys = cached_keys.select {|v| v =~ regex }
+ matched_keys.each do |key|
+ Rails.cache.delete(key)
+ end
+ self.cached_keys = (cached_keys - matched_keys)
+ end
+ #
+ #####
+
+ def accessible_by_user(resource_type, user, action = :view)
+ key = "permissions/#{user.class}_#{user.id}/#{resource_type}_/actions/#{action}"
+ Rails.cache.fetch(key, :expires_in => 10.minutes) do
+ add_to_cached_keys(key)
+
+ #1+3
+ user_groups_true = select(:resource_id).
+ where(:resource_type => resource_type).
+ where("(subject_type = 'Group' AND subject_id IN (?)) OR (subject_type = 'User' AND subject_id = ?)", user.groups, user.id).
+ where("actions_object LIKE '%#{action}: true%'").
+ collect(&:resource_id).uniq
+
+ #2
+ user_false = user.permissions.select(:resource_id).
+ where(:resource_type => resource_type).
+ where("actions_object LIKE '%#{action}: false%'").
+ collect(&:resource_id).uniq
+
+
+ #5
+ public_true = select(:resource_id).
+ where(:resource_type => resource_type).
+ where(:subject_type => nil).
+ where("actions_object LIKE '%#{action}: true%' OR actions_object LIKE '%#{action}: :logged_in_users%'").
+ collect(&:resource_id).uniq
+
+
+ #2+4
+ user_groups_false = select(:resource_id).
+ where(:resource_type => resource_type).
+ where("(subject_type = 'Group' AND subject_id IN (?)) OR (subject_type = 'User' AND subject_id = ?)", user.groups, user.id).
+ where("actions_object LIKE '%#{action}: false%'").
+ collect(&:resource_id).uniq
+
+ ((user_groups_true - user_false) + (public_true - user_groups_false)).uniq
+ end
+ end
+
+ end
+
+
+end
diff --git a/app/models/person.rb b/app/models/person.rb
new file mode 100644
index 0000000000..d4539ee3eb
--- /dev/null
+++ b/app/models/person.rb
@@ -0,0 +1,120 @@
+# -*- encoding : utf-8 -*-
+#= Person
+#
+# The Person class is a minimal value-object representation of a natural Person.
+#
+
+class Person < ActiveRecord::Base
+
+ has_one :user
+
+ default_scope order(:lastname)
+
+ validate do |record|
+ errors.add(:base, "Name cannot be blank") if [record.firstname, record.lastname, record.pseudonym].all? {|x| x.blank? }
+ end
+
+ # TODO hay_many :media_entries (where the person is related through meta_data)
+# def media_entries
+# MediaEntry.search self.to_s
+# # TODO through new method meta_data
+# end
+
+ def self.with_media_entries
+ #old#
+ # all.delete_if {|p| MediaEntry.search_count(p.to_s) < 1 }
+ # all.select {|p| p.meta_data.count > 0 }
+
+ ids = MetaDatum.joins(:meta_key).
+ where(:meta_keys => {:object_type => self.name}).
+ collect(&:value).flatten.uniq
+ find(ids)
+ end
+
+ def meta_data
+ MetaDatum.joins(:meta_key).
+ where(:meta_keys => {:object_type => self.class.name}).
+ where(["value REGEXP ?", "-\ #{id}\n" ])
+ end
+
+#######################################
+
+ define_index do
+ indexes :firstname
+ indexes :lastname #, :sortable => true
+ indexes :pseudonym
+
+ #TODO has user(:id), :as => :user_id
+
+ set_property :delta => true # :delayed
+ end
+
+ default_sphinx_scope :default_search
+ sphinx_scope(:default_search) { { :star => true } }
+
+#######################################
+
+ def to_s
+ name
+ end
+
+ def name
+ a = []
+ a << lastname unless lastname.blank?
+ a << firstname unless firstname.blank?
+ r = a.join(", ")
+ r += " (#{pseudonym})" unless pseudonym.blank?
+ r += " [Gruppe]" if is_group?
+ r
+ end
+
+ # TODO drop this method, use to_s instead
+ def fullname
+ r = "#{firstname} #{lastname}"
+ r += " (#{pseudonym})" unless pseudonym.blank?
+ r
+ end
+
+# class method to parse a name out of something that purports
+# to be a name representing a natural person.
+# Input is presented either as:
+# Firstname Lastname , or
+# Lastname, Firstname
+ def self.parse(value)
+ #TODO untrivialise this name splitter
+ #TODO does this really belong here?
+ value.gsub!(/[*%;]/,'')
+ if value.include?(",") # input comes to us as lastnamefirstname(s)
+ x = value.downcase.strip.squeeze(" ").split(/\s*,\s*/,2)
+ fn = x.pop
+ ln = x.pop
+ else # Last word is family name, everything else is firstname(s)
+ x = value.downcase.strip.split(/\s{1}/,-1)
+ ln = x.pop
+ fn = x.each {|e| e.capitalize }.join(' ')
+ end
+ # OPTIMIZE
+ fn = nil if fn.blank?
+ ln = nil if ln.blank?
+ return fn, ln
+ end
+
+ def self.split(values)
+ values.map {|v| v.respond_to?(:split) ? v.split(';') : v }.flatten
+ end
+
+#######################################
+
+#temp#
+# def to_tms(xml)
+# xml.person do
+# xml.firstname do
+# firstname
+# end
+# xml.lastname do
+# lastname
+# end
+# end
+# end
+
+end
diff --git a/app/models/preview.rb b/app/models/preview.rb
new file mode 100644
index 0000000000..4b724b5172
--- /dev/null
+++ b/app/models/preview.rb
@@ -0,0 +1,14 @@
+# -*- encoding : utf-8 -*-
+class Preview < ActiveRecord::Base
+
+ belongs_to :media_file
+
+ def full_path
+ File.join(THUMBNAIL_STORAGE_DIR, filename[0,1], filename)
+ end
+
+ def size
+ File.size(full_path)
+ end
+
+end
diff --git a/app/models/resource.rb b/app/models/resource.rb
new file mode 100644
index 0000000000..1ecaf24e7d
--- /dev/null
+++ b/app/models/resource.rb
@@ -0,0 +1,353 @@
+# -*- encoding : utf-8 -*-
+module Resource
+
+ def self.included(base)
+
+ # TODO observe bulk changes and reindex once
+ base.has_many :meta_data, :as => :resource, :dependent => :destroy do #working here#7 :include => :meta_key
+ def all_cached
+ # OPTIMIZE since we are using the cache_key, we dont' actually need the expires_in, but let's keep it just for safety
+ Rails.cache.fetch("#{proxy_owner.class}/#{proxy_owner.cache_key}/meta_data", :expires_in => 10.minutes) do
+ all
+ end
+ end
+
+ def get(key_id)
+ # unless ... and !!v.match(/\A[+-]?\d+\Z/) # TODO path to String#is_numeric? method
+ #key_id = MetaKey.find_by_label(key_id.downcase).id unless key_id.is_a?(Fixnum)
+ key_id = MetaKey.all_cached.detect {|mk| mk.label == key_id.downcase }.id unless key_id.is_a?(Fixnum)
+
+ #r = where(:meta_key_id => key_id).first # OPTIMIZE prevent find if is_dynamic meta_key
+ r = all_cached.detect {|md| md.meta_key_id == key_id}
+
+ r ||= build(:meta_key_id => key_id)
+ end
+
+ def get_value_for(key_id)
+ get(key_id).to_s
+ end
+
+ # indexing to sphinx
+ def with_labels
+ h = {}
+ all_cached.each do |meta_datum|
+ h[meta_datum.meta_key.label] = meta_datum.to_s
+ end
+ h
+ end
+ end
+ base.accepts_nested_attributes_for :meta_data, :allow_destroy => true,
+ :reject_if => proc { |attributes| attributes['value'].blank? and attributes['_destroy'].blank? }
+ # NOTE the check on _destroy should be automatic, check Rails > 3.0.3
+
+#temp#
+# # enforce meta_key uniqueness updating existing meta_datum
+# # also useful for bulk meta_data updates such as Copyright, Organizer forms,...
+# base.before_validation(:on => :update) do |record|
+# new_meta_data = record.meta_data.select{|md| md.new_record? }
+# new_meta_data.each do |new_md|
+# old_md = record.meta_data.detect{|md| !md.new_record? and md.meta_key_id == new_md.meta_key_id }
+# if old_md
+# old_md.value = new_md.value
+# record.meta_data.delete(new_md)
+# end
+# end
+# end
+
+ base.has_many :permissions, :as => :resource, :dependent => :destroy
+ base.has_one :default_permission, :as => :resource, :class_name => "Permission", :conditions => {:subject_id => nil, :subject_type => nil}
+ base.after_create :generate_permissions
+
+ base.has_many :edit_sessions, :as => :resource, :dependent => :destroy, :readonly => true, :limit => 5
+ base.has_many :editors, :through => :edit_sessions, :source => :user do
+ def latest
+ first
+ end
+ end
+
+ base.validates_presence_of :user_id, :if => Proc.new { |record| record.respond_to?(:user_id) }
+
+ def update_attributes_with_pre_validation(attributes)
+ self.updated_at = Time.now # OPTIMIZE touch or sphinx_touch ?? (only for media_entries actually)
+
+ # we need to deep copy the attributes for batch edit (multiple resources)
+ dup_attributes = Marshal.load(Marshal.dump(attributes))
+
+ dup_attributes[:meta_data_attributes].each_pair do |key, attr|
+ if attr[:value].is_a? Array and attr[:value].all? {|x| x.blank? }
+ attr[:value] = nil
+ end
+ if !attr[:id].blank? and attr[:value].blank?
+ attr[:_destroy] = true
+ #old# attr[:value] = "." # NOTE bypass the validation
+ elsif attr[:id].blank?
+ if (md = meta_data.all_cached.detect {|md| md.meta_key_id == attr[:meta_key_id].to_i}) #(md = meta_data.where(:meta_key_id => attr[:meta_key_id]).first)
+ attr[:id] = md.id
+ end
+ end
+ end if dup_attributes[:meta_data_attributes]
+
+ update_attributes_without_pre_validation(dup_attributes)
+ end
+ base.alias_method_chain :update_attributes, :pre_validation
+
+ end
+
+ # returns the meta_data for a particular resource, so that it can written into a media file that is to be exported.
+ # NB: this is exiftool specific at present, but can be refactored to take account of other tools if necessary.
+ # NB: In this case the 'export' in 'get_data_for_export' also means 'download'
+ # (since we write meta-data to the file anyway regardless of if we do a download or an export)
+ def to_metadata_tags
+ MetaContext.io_interface.meta_key_definitions.collect do |definition|
+ value = meta_data.get(definition.meta_key_id).deserialized_value
+
+ definition.key_map.split(',').collect do |km|
+ km.strip!
+ case definition.key_map_type
+ when "Array"
+ vo = ["-#{km}= "]
+ vo += value.collect {|m| "-#{km}='#{(m.respond_to?(:strip) ? m.strip : m)}'" } if value
+ vo
+ else
+ "-#{km}='#{value}'"
+ end
+ end
+
+ end.join(" ")
+ end
+
+ # Instance method to update a copy (referenced by path) of a media file with the meta_data tags provided
+ # args: blank_all_tags = flag indicating whether we clean all the tags from the file, or update the tags in the file
+ # returns: the path and filename of the updated copy or nil (if the copy failed)
+ def updated_resource_file(blank_all_tags = false, size = nil)
+ begin
+ source_filename = if size
+ media_file.get_preview(size).full_path
+ else
+ media_file.file_storage_location
+ end
+ FileUtils.cp( source_filename, DOWNLOAD_STORAGE_DIR )
+ # remember we want to handle the following:
+ # include all madek tags in file
+ # remove all (ok, as many as we can) tags from the file.
+ cleaner_tags = (blank_all_tags ? "-All= " : "-IPTC:All= ") + "-XMP-madek:All= -IFD0:Artist= -IFD0:Copyright= -IFD0:Software= " # because we do want to remove IPTC tags, regardless
+ tags = cleaner_tags + (blank_all_tags ? "" : to_metadata_tags)
+
+ path = File.join(DOWNLOAD_STORAGE_DIR, File.basename(source_filename))
+ # TODO - robustification
+ generate_exiftool_config if MetaContext.io_interface.meta_key_definitions.maximum("updated_at").to_i > File.stat(EXIFTOOL_CONFIG).mtime.to_i
+
+ resout = `#{EXIFTOOL_PATH} #{tags} "#{path}"`
+ FileUtils.rm("#{path}_original") if resout.include?("1 image files updated") # Exiftool backs up the original before editing. We don't need the backup.
+ return path.to_s
+ rescue
+ # "No such file or directory" ?
+ logger.error "MediaFile#update_file_metadata, copy failed with #{$!}"
+ return nil
+ end
+ end
+
+ # ad-hoc method that generates a new exiftool config file, when it is sensed that there are new keys/key_defs that should be saved in a file
+ # using the XMP-madek metadata namespace.
+ # TODO refactor the use of exiftool, so that for each media file/entry it is only called once,
+ # entrys' contents cached, and obj/subj meta-data extracted as necessary
+ def generate_exiftool_config
+ exiftool_keys = MetaContext.io_interface.meta_key_definitions.collect {|e| "#{e.key_map.split(":").last} => {#{e.key_map_type == "Array" ? " List => 'Bag'" : nil} },"}
+
+ skels = Dir.glob("#{METADATA_CONFIG_DIR}/ExifTool_config.skeleton.*")
+
+ exif_conf = File.open(EXIFTOOL_CONFIG, 'w')
+ exif_conf.puts IO.read(skels.first)
+ exiftool_keys.sort.each do |k|
+ exif_conf.puts "\t#{k}\n"
+ end
+ exif_conf.puts IO.read(skels.last)
+ exif_conf.close
+ end
+
+
+ # NEW and experimental for batch processes
+ def get_basic_info
+ core_context_keys = ["title", "author", "uploaded at", "uploaded by", "keywords", "copyright notice", "portrayed object dates"]
+ core_info = Hash.new
+
+ core_context_keys.each do |key|
+ core_info[key.gsub(' ', '_')] = meta_data.get_value_for(key)
+ end
+ core_info["thumb_base64_small"] = thumb_base64
+ core_info["thumb_base64_x_small"] = thumb_base64(:x_small)
+ core_info
+ end
+
+ def thumb_base64(size = :small)
+ media_file = if self.is_a?(Media::Set) # TODO never used yet, to be tested
+ self.media_entries.first.media_file
+ else
+ self.media_file
+ end
+
+ # TODO give access to the original one?
+ # available_sizes = THUMBNAILS.keys #old# ['small', 'medium']
+ # size = 'small' unless available_sizes.include?(size)
+
+ if media_file
+ preview = case media_file.content_type
+ when /video/ then
+ "Video"
+ when /audio/ then
+ "Audio"
+ when /image/ then
+ media_file.get_preview(size) || "Image"
+ else
+ "Doc"
+ end
+
+ # OPTIMIZE
+ unless preview.is_a? String
+ file = File.join(THUMBNAIL_STORAGE_DIR, media_file.shard, preview.filename)
+ if File.exist?(file)
+ output = File.read(file)
+ return "data:#{preview.content_type};base64,#{Base64.encode64(output)}"
+ else
+ preview = "Image" # OPTIMIZE
+ end
+ end
+
+ # nothing found, we show then a placeholder icon
+ size = if size == :large
+ :medium
+ else
+ :small
+ end
+ output = File.read("#{Rails.root}/public/images/#{preview}_#{size}.png")
+ return "data:#{media_file.content_type};base64,#{Base64.encode64(output)}"
+ end
+ end
+
+
+########################################################
+
+ # OPTIMIZE
+# scope :without_meta_data, :select => "media_entries.*",
+# #:joins => "LEFT JOIN items ON items.model_id = models.id",
+# #:conditions => ['items.model_id IS NULL']
+
+ def title
+ t = meta_data.get_value_for("title")
+ t = "Ohne Titel" if t.blank?
+ t
+ end
+
+ def title_and_user
+ "#{title} (#{user})"
+ end
+
+########################################################
+
+ def self.to_tms_doc(resources, context = MetaContext.tms)
+ xml = Builder::XmlMarkup.new
+ xml.instruct!
+ xml.madek(:version => RELEASE_VERSION) do
+ Array(resources).each do |resource|
+ resource.to_tms(xml, context)
+ end
+ end
+ end
+
+########################################################
+# TODO cache methods results
+
+ def meta_data_for_context(context = MetaContext.core, build_if_not_exists = true)
+ @meta_data_for_context ||= {}
+ # OPTIMIZE cache for build_if_not_exists
+ #unless @meta_data_for_context[context.id]
+ @meta_data_for_context[context.id] = []
+
+ context.meta_keys.each do |key|
+ md = key.meta_data.scoped_by_resource_type_and_resource_id(self.class.name, self.id).first # OPTIMIZE eager loading
+ if md
+ @meta_data_for_context[context.id] << md
+ elsif build_if_not_exists or key.is_dynamic?
+ @meta_data_for_context[context.id] << meta_data.build(:meta_key => key)
+ end
+ end if context
+ #end
+ return @meta_data_for_context[context.id]
+ end
+
+ def context_warnings(context = MetaContext.core)
+ @context_warnings ||= {}
+ unless @context_warnings[context.id]
+ @context_warnings[context.id] = {}
+ meta_data_for_context(context).each do |meta_datum|
+ w = meta_datum.context_warnings(context)
+ unless w.blank?
+ @context_warnings[context.id][meta_datum.meta_key.label] ||= []
+ @context_warnings[context.id][meta_datum.meta_key.label] << w
+ end
+ end
+ end
+ return @context_warnings[context.id]
+ end
+
+ def context_valid?(context = MetaContext.core)
+ meta_data_for_context(context).all? {|meta_datum| meta_datum.context_valid?(context) }
+ end
+
+########################################################
+
+ def media_type
+ r = case media_file.content_type
+ when /video/ then
+ "Video"
+ when /audio/ then
+ "Audio"
+ when /image/ then
+ "Image"
+ else
+ "Doc"
+ end if respond_to?(:media_file)
+
+ r ||= "Doc"
+ end
+
+########################################################
+# ACL
+
+ def acl?(action, scope, subject = nil)
+ case scope
+ when :all
+ # TODO ?? use :permissions association
+ Permission.authorized?(nil, action, self)
+ when :only
+ Permission.resource_viewable_only_by_user?(self, subject)
+ else
+ # scope could be :logged_in_users
+ # OPTIMIZE
+ Permission.merged_actions(nil, self)[action] == scope
+ end
+ end
+
+private
+
+ def generate_permissions
+ # OPTIMIZE
+ unless self.class == Snapshot
+ permissions.create(:subject => nil)
+ subject = self.user
+ else
+ permissions.build(:subject => nil).set_actions(media_entry.default_permission.actions)
+ subject = Group.find_or_create_by_name("MIZ-Archiv") # Group.scoped_by_name("MIZ-Archiv").first
+ end
+
+ # TODO solve inconsistency between search 'by_user' sphinx_scope and the actual permissions
+ # TODO validates presence of the owner's permissions?
+ if subject
+ user_default_permissions = {:view => true, :edit => true, :manage => true}
+ user_default_permissions[:high_res] = true if self.class == MediaEntry
+ permissions.build(:subject => subject).set_actions(user_default_permissions)
+ end # OPTIMIZE
+ end
+
+
+end
diff --git a/app/models/snapshot.rb b/app/models/snapshot.rb
new file mode 100644
index 0000000000..41dc95b333
--- /dev/null
+++ b/app/models/snapshot.rb
@@ -0,0 +1,139 @@
+# -*- encoding : utf-8 -*-
+class Snapshot < ActiveRecord::Base
+
+ include Resource
+
+ belongs_to :media_entry
+ belongs_to :media_file
+
+ # TODO type attribute ?? TMS, etc...
+
+ before_create do |record|
+ record.media_file = record.media_entry.media_file
+ end
+
+ after_create do |record|
+ record.media_entry.meta_data.each do |md|
+ nmd = md.clone
+ nmd.resource = record
+ nmd.save
+ end
+ descr_author_value = record.meta_data.get("description author").value
+ record.meta_data.get("description author before snapshot").update_attributes(:value => descr_author_value) if descr_author_value
+ end
+
+ default_scope order("created_at DESC")
+
+########################################################
+
+ def edited?
+ not edit_sessions.empty?
+ end
+
+########################################################
+
+ def to_tms(xml, context)
+ xml.snapshot do
+ #old# meta_data.each do |meta_datum|
+ meta_data_for_context(context, false).each do |meta_datum|
+ key_map = meta_datum.meta_key.key_map_for(context)
+ if key_map
+ # TODO use treetop gem
+ key_map.split('||').each do |km|
+ tokens = km.split(' ', 2)
+ name = tokens.first
+ attrs = {}
+#old#
+# tokens.last.split(' ').each do |token|
+# a = token.split('=', 2)
+# attrs[a.first] = a.last
+# end if tokens.size > 1
+
+ tokens = (tokens.size > 1 ? tokens.last : nil)
+
+ while not tokens.blank? do
+ a = tokens.split('=', 2)
+ k = a.first
+ if a.last.first == '"'
+ b = a.last.split('"', 3)
+ v = b[1]
+ tokens = (b.size > 2 ? b.last : nil)
+ else
+ b = a.last.split(' ', 2)
+ v = b[0]
+ tokens = (b.size > 1 ? b.last : nil)
+ end
+ attrs[k] = v
+ end
+
+#temp#
+ case meta_datum.meta_key.object_type
+ when "Meta::Term"
+ xml.tag!(name, attrs) do
+ meta_datum.deserialized_value.each do |dv|
+ xml.tag!("term", dv.to_s)
+ end
+ end
+ when "Person"
+ xml.tag!(name, attrs) do
+ meta_datum.deserialized_value.each do |dv|
+ xml.person do
+ xml.tag!("firstname", dv.firstname)
+ xml.tag!("lastname", dv.lastname)
+ end
+ end
+ end
+ else
+ value = meta_datum.to_s
+ case name
+ when "person"
+ xml.person(attrs) do
+ xml.tag!("name", value)
+ end
+ when "objects.creditline"
+ xml.tag!(name, attrs, "Verwaltet durch #{value}")
+ else
+ xml.tag!(name, attrs, value)
+ end
+ end
+
+# case name
+# when "person"
+# case meta_datum.meta_key.object_type
+# when "Person"
+# meta_datum.deserialized_value.each do |dv|
+# xml.person(attrs) do
+# xml.tag!("firstname", dv.firstname)
+# xml.tag!("lastname", dv.lastname)
+# end
+# end
+# else
+# xml.person(attrs) do
+# xml.tag!("name", meta_datum.to_s)
+# end
+# end
+## when "location"
+## when "keywords"
+## when "gattung"
+# else
+# value = meta_datum.to_s
+# xml.tag!(name, attrs, value)
+# end
+
+ end
+ end
+ end
+ end
+# xml.media_set do
+# xml.id id
+# xml.owner user.to_s
+# meta_data.each do |meta_datum|
+# xml.tag!(meta_datum.object.meta_key.meta_key_definitions.for_context(context).meta_field.label.parameterize('_'), meta_datum)
+# end
+# media_entries.each do |media_entry|
+# media_entry.to_tms(xml, context)
+# end
+# end
+ end
+
+end
diff --git a/app/models/subject.rb b/app/models/subject.rb
new file mode 100644
index 0000000000..efe934a835
--- /dev/null
+++ b/app/models/subject.rb
@@ -0,0 +1,8 @@
+# -*- encoding : utf-8 -*-
+module Subject
+
+ def self.included(base)
+ base.has_many :permissions, :as => :subject, :dependent => :destroy
+ end
+
+end
diff --git a/app/models/type_vocabulary.rb b/app/models/type_vocabulary.rb
new file mode 100644
index 0000000000..291a464740
--- /dev/null
+++ b/app/models/type_vocabulary.rb
@@ -0,0 +1,4 @@
+# -*- encoding : utf-8 -*-
+class TypeVocabulary < ActiveRecord::Base
+ has_many :meta_data
+end
diff --git a/app/models/upload_session.rb b/app/models/upload_session.rb
new file mode 100644
index 0000000000..c495cb6f95
--- /dev/null
+++ b/app/models/upload_session.rb
@@ -0,0 +1,17 @@
+# -*- encoding : utf-8 -*-
+class UploadSession < ActiveRecord::Base
+
+ belongs_to :user
+ has_many :media_entries, :dependent => :destroy
+
+ validates_presence_of :user_id
+
+ default_scope order("created_at DESC")
+
+ def to_s
+ # TODO cached count column for media_entries
+ "#{created_at.to_formatted_s(:date_time)} (#{media_entries.count})"
+ end
+
+
+end
diff --git a/app/models/usage_term.rb b/app/models/usage_term.rb
new file mode 100644
index 0000000000..2ad02809a8
--- /dev/null
+++ b/app/models/usage_term.rb
@@ -0,0 +1,8 @@
+# -*- encoding : utf-8 -*-
+class UsageTerm < ActiveRecord::Base
+
+ def self.current
+ r = first
+ r ||= create(:title => "Nutzungsbedingungen")
+ end
+end
\ No newline at end of file
diff --git a/app/models/user.rb b/app/models/user.rb
new file mode 100644
index 0000000000..20b2e6dde1
--- /dev/null
+++ b/app/models/user.rb
@@ -0,0 +1,105 @@
+# -*- encoding : utf-8 -*-
+# user is the system oriented representation of a User
+
+require 'digest/sha1'
+
+class User < ActiveRecord::Base
+
+ include Subject
+
+ belongs_to :person
+ delegate :name, :to => :person
+ delegate :fullname, :to => :person
+
+ has_many :upload_sessions do
+ def latest
+ first
+ end
+ def most_recents(limit = 3)
+ all(:limit => limit)
+ end
+ end
+ has_many :media_entries, :through => :upload_sessions
+# TODO ?? has_many :media_files, :through => :media_entries
+ has_many :media_sets, :class_name => "Media::Set"
+ has_and_belongs_to_many :favorites, :class_name => "MediaEntry", :join_table => "favorites" do
+ def toggle(media_entry_or_id)
+ media_entry_id = media_entry_or_id.is_a?(MediaEntry) ? media_entry_or_id.id : media_entry_or_id.to_i
+ if include?(media_entry_id)
+ media_entry = where(:id => media_entry_id).first
+ self.delete(media_entry)
+ else
+ new_favorite = MediaEntry.find(media_entry_id)
+ self << new_favorite
+ end
+ end
+
+ def include?(media_entry_id)
+ exists? :id => media_entry_id
+ end
+ end
+
+
+ has_and_belongs_to_many :groups do
+ def is_member?(group)
+ # OPTIMIZE
+ group = Group.find_or_create_by_name(group) if group.is_a? String
+ include?(group)
+ end
+ end
+
+#############################################################
+
+ # OPTIMIZE
+ # return own and somebody else's sets, on which current_user has edit permission
+ def editable_sets
+ #old# Media::Set.select {|s| Permission.authorized?(self, :edit, s) }
+ ids = Permission.accessible_by_user("Media::Set", self, :edit)
+ Media::Set.where(:id => ids)
+ end
+
+#############################################################
+
+ validates_presence_of :login
+ validates_length_of :login, :within => 3..40
+ validates_uniqueness_of :login
+ validates_format_of :login, :with => /\A\w[\w\.\-_@]+\z/, :message => "use only letters, numbers, and .-_@ please."
+
+ validates_presence_of :email
+ validates_length_of :email, :within => 6..100 #r@a.wk
+ validates_uniqueness_of :email
+ validates_format_of :email, :with => /\A[\w\.%\+\-]+@(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|jobs|museum)\z/i, :message => "should look like an email address."
+
+ validates_presence_of :person_id
+
+ # HACK HACK HACK -- how to do attr_accessible from here?
+ # prevents a user from submitting a crafted form that bypasses activation
+ # anything else you want your user to change should be added here.
+#temp# attr_accessible :login, :email, :person_id
+
+#############################################################
+
+ def to_s
+ name
+ end
+
+ def login=(value)
+ write_attribute :login, (value ? value.downcase : nil)
+ end
+
+ def email=(value)
+ write_attribute :email, (value ? value.downcase : nil)
+ end
+
+#############################################################
+
+ # TODO check against usage_terms version ??
+ def usage_terms_accepted?
+ usage_terms_accepted_at.to_i >= UsageTerm.current.updated_at.to_i
+ end
+
+ def usage_terms_accepted!
+ update_attributes(:usage_terms_accepted_at => Time.now)
+ end
+
+end
diff --git a/app/views/admin/contexts/_form.html.haml b/app/views/admin/contexts/_form.html.haml
new file mode 100644
index 0000000000..52cede3e5c
--- /dev/null
+++ b/app/views/admin/contexts/_form.html.haml
@@ -0,0 +1,33 @@
+= form_for @context, :url => path do |f|
+ = f.label :name
+ \:
+ - if @context.new_record?
+ = f.text_field :name
+ - else
+ = @context.name
+ %br
+
+ Label:
+ %br
+ - LANGUAGES.each do |lang|
+ - value = (@context.meta_field and @context.meta_field.label ? @context.meta_field.label.to_s(lang) : nil)
+ = lang
+ \:
+ = text_field_tag "meta_context[meta_field][label][#{lang}]", value
+ %br
+
+ Description:
+ %br
+ - LANGUAGES.each do |lang|
+ - value = (@context.meta_field and @context.meta_field.description ? @context.meta_field.description.to_s(lang) : nil)
+ = lang
+ \:
+ = text_area_tag "meta_context[meta_field][description][#{lang}]", value
+ %br
+
+ %br
+ = f.label :is_user_interface
+ \:
+ = f.check_box :is_user_interface
+ %br
+ = f.submit submit
diff --git a/app/views/admin/contexts/edit.js.erb b/app/views/admin/contexts/edit.js.erb
new file mode 100644
index 0000000000..5824e6e94e
--- /dev/null
+++ b/app/views/admin/contexts/edit.js.erb
@@ -0,0 +1 @@
+<%= render :partial => "form", :locals => { :path => admin_context_path(@context), :submit => _("Update") } %>
diff --git a/app/views/admin/contexts/index.html.haml b/app/views/admin/contexts/index.html.haml
new file mode 100644
index 0000000000..e673a63e02
--- /dev/null
+++ b/app/views/admin/contexts/index.html.haml
@@ -0,0 +1,5 @@
+#admin_tabs.tabs
+ %ul
+ - @contexts.collect do |context|
+ %li= link_to context, admin_context_definitions_path(context)
+ %li= link_to "+", new_admin_context_path
diff --git a/app/views/admin/contexts/new.js.erb b/app/views/admin/contexts/new.js.erb
new file mode 100644
index 0000000000..4abcfeecc8
--- /dev/null
+++ b/app/views/admin/contexts/new.js.erb
@@ -0,0 +1 @@
+<%= render :partial => "form", :locals => { :path => admin_contexts_path, :submit => _("Create") } %>
diff --git a/app/views/admin/definitions/_form.html.haml b/app/views/admin/definitions/_form.html.haml
new file mode 100644
index 0000000000..809c16850c
--- /dev/null
+++ b/app/views/admin/definitions/_form.html.haml
@@ -0,0 +1,55 @@
+= form_for @definition, :url => path do |f|
+ %table
+ %tr
+ %th
+ MetaKey
+ - keys = MetaKey.order(:label)
+ - keys -= (@context.meta_keys - [@definition.meta_key])
+ %td{:colspan => 2}
+ = f.hidden_field :meta_context_id
+ = f.select :meta_key_id, keys.collect {|k| [ k.label, k.id ] }, { :include_blank => true }
+
+ - unless @context.is_user_interface?
+ %tr
+ %th= f.label :key_map
+ %td{:colspan => 2}
+ = f.text_field :key_map
+ %tr
+ %th= f.label :key_map_type
+ %td{:colspan => 2}
+ = f.text_field :key_map_type
+ %tr
+ %th
+ Field
+ %td{:colspan => 2}
+ - [:is_required, :length_min, :length_max].each do |k|
+ = "#{k}: #{@definition.meta_field.try(k)}"
+ %br
+ %tr
+ %td
+ - LANGUAGES.each do |lang|
+ %th= lang.to_s
+ %tr
+ %th
+ Label
+ - LANGUAGES.each do |lang|
+ %td
+ - value = (@definition.meta_field.try(:label) ? @definition.meta_field.label.to_s(lang) : nil)
+ = text_field_tag "meta_key_definition[meta_field][label][#{lang}]", value
+ %tr
+ %th
+ Description
+ - LANGUAGES.each do |lang|
+ %td
+ - value = (@definition.meta_field.try(:description) ? @definition.meta_field.description.to_s(lang) : nil)
+ = text_area_tag "meta_key_definition[meta_field][description][#{lang}]", value
+ %tr
+ %th
+ Hint
+ - LANGUAGES.each do |lang|
+ %td
+ - value = (@definition.meta_field.try(:hint) ? @definition.meta_field.hint.to_s(lang) : nil)
+ = text_field_tag "meta_key_definition[meta_field][hint][#{lang}]", value
+ %tr
+ %td{:colspan => 3}
+ = f.submit submit
diff --git a/app/views/admin/definitions/edit.js.erb b/app/views/admin/definitions/edit.js.erb
new file mode 100644
index 0000000000..496bb4c579
--- /dev/null
+++ b/app/views/admin/definitions/edit.js.erb
@@ -0,0 +1 @@
+<%= render :partial => "form", :locals => { :path => admin_context_definition_path(@context, @definition), :submit => _("Update") } %>
diff --git a/app/views/admin/definitions/index.html.haml b/app/views/admin/definitions/index.html.haml
new file mode 100644
index 0000000000..30ff8d46b4
--- /dev/null
+++ b/app/views/admin/definitions/index.html.haml
@@ -0,0 +1,64 @@
+%table
+ %tbody
+ %tr
+ %td{:colspan => 4}
+ = "Name: #{@context.name}"
+ %br
+ = "Label: #{@context.meta_field.label}"
+ %br
+ != "Description: #{simple_format(@context.meta_field.description.to_s)}"
+ %br
+ = "#{_("For user interface")}: #{@context.is_user_interface?}"
+ %td{:colspan => 2, :style => "text-align: right; white-space: nowrap;"}
+ = link_to _("Edit"), edit_admin_context_path(@context), :class => "buttons", :"data-remote" => true
+ %br
+ = link_to _("Delete"), admin_context_path(@context), :class => "buttons", :"data-method" => "delete", :"data-confirm" => "Are you sure?"
+ %br
+ = link_to _("Add Key"), new_admin_context_definition_path(@context), :class => "buttons", :"data-remote" => true
+ %tr
+ %th
+ %th
+ MetaKey
+ %th
+ Label
+ %th
+ Description
+ %th
+ Hint
+ %th
+ %tbody.sortable
+ - @context.meta_key_definitions.each_with_index do |definition, index|
+ %tr{:class => ((index % 2).zero? ? "even" : "odd"), :id => "definition_#{definition.id}"}
+ %td
+ %span.ui-icon.ui-icon-arrowthick-2-n-s"
+ %td
+ = definition.meta_key.to_s
+ %br
+ %i
+ = definition.key_map.to_s
+ %br
+ = definition.key_map_type.to_s
+ %td
+ = definition.meta_field.label.to_s
+ %td
+ = definition.meta_field.description.to_s
+ %td
+ = definition.meta_field.hint.to_s
+ %td.with_actions
+ = link_to _("Edit"), edit_admin_context_definition_path(@context, definition), :class => "buttons", :"data-remote" => true
+ %br
+ = link_to _("Delete"), admin_context_definition_path(@context, definition), :class => "buttons", :method => :delete, :confirm => _("Sind Sie sicher?")
+
+:javascript
+ $(document).ready(function(){
+ $("tbody.sortable").sortable({
+ update: function(event, ui){
+ $.ajax({
+ url: "<%= reorder_admin_context_definitions_path(@context, :format => :js) %>",
+ type: 'PUT',
+ data: $(event.target).sortable('serialize'),
+ success: function(feedback){ $('#data').html(feedback); }
+ });
+ }
+ }); //temp//.disableSelection();
+ });
diff --git a/app/views/admin/definitions/new.js.erb b/app/views/admin/definitions/new.js.erb
new file mode 100644
index 0000000000..f9c4b48e8b
--- /dev/null
+++ b/app/views/admin/definitions/new.js.erb
@@ -0,0 +1 @@
+<%= render :partial => "form", :locals => { :path => admin_context_definitions_path(@context), :submit => _("Create") } %>
diff --git a/app/views/admin/groups/_form.html.haml b/app/views/admin/groups/_form.html.haml
new file mode 100644
index 0000000000..cb56b02338
--- /dev/null
+++ b/app/views/admin/groups/_form.html.haml
@@ -0,0 +1,11 @@
+= form_for @group, :url => path do |f|
+ %table
+ %tr
+ %th
+ = f.label :name
+ %td
+ = f.text_field :name
+ %tr
+ %td
+ %td
+ = f.submit submit
diff --git a/app/views/admin/groups/_user.html.haml b/app/views/admin/groups/_user.html.haml
new file mode 100644
index 0000000000..6264f16e5c
--- /dev/null
+++ b/app/views/admin/groups/_user.html.haml
@@ -0,0 +1,5 @@
+%tr
+ %td
+ = user
+ %td
+ = link_to _("Remove"), membership_admin_group_user_path(@group, user), :remote => true, :method => :delete
\ No newline at end of file
diff --git a/app/views/admin/groups/edit.js.haml b/app/views/admin/groups/edit.js.haml
new file mode 100644
index 0000000000..23ccd7d917
--- /dev/null
+++ b/app/views/admin/groups/edit.js.haml
@@ -0,0 +1,29 @@
+= render :partial => "form", :locals => {:path => admin_group_path(@group), :submit => _("Update") }
+
+%table#members
+ = render :partial => "/admin/groups/user", :collection => @group.users
+
+Add user:
+%input#new_user
+
+:javascript
+ $(function() {
+ $("input#new_user").autocomplete({
+ source: "/users",
+ minLength: 3,
+ select: function( event, ui ) {
+ $.ajax({
+ url: '#{membership_admin_group_user_path(@group)}',
+ data: {user_id: ui.item.id},
+ type: "post",
+ success: function(response){
+ $("input#new_user").val("");
+ $(response).appendTo('table#members').effect('highlight');
+ }
+ });
+ }
+ });
+ $("table#members a[data-method='delete']").live('ajax:success', function(){
+ $(this).closest("tr").fadeOut();
+ });
+ });
diff --git a/app/views/admin/groups/index.html.haml b/app/views/admin/groups/index.html.haml
new file mode 100644
index 0000000000..20a2a179e6
--- /dev/null
+++ b/app/views/admin/groups/index.html.haml
@@ -0,0 +1,17 @@
+%table
+ %tr
+ %td{:colspan => 3, :style => "text-align: right; white-space: nowrap;"}
+ = link_to _("New Group"), new_admin_group_path, :class => "buttons", :"data-remote" => true
+ %tr
+ - [_("Name"), _("Type"), _("Users"), ""].each do |s|
+ %th= s
+ - @groups.each_with_index do |group, index|
+ %tr{:class => ((index % 2).zero? ? "even" : "odd")}
+ %td= group
+ %td= group.type
+ %td
+ - users_count = group.users.count
+ = users_count
+ %td.with_actions
+ = link_to _("Edit"), edit_admin_group_path(group), :class => "buttons", :"data-remote" => true
+ = link_to _("Delete"), admin_group_path(group), :class => "buttons", :method => :delete, :confirm => _("Sind Sie sicher?") if users_count.zero?
diff --git a/app/views/admin/groups/new.js.haml b/app/views/admin/groups/new.js.haml
new file mode 100644
index 0000000000..231d2ed7b6
--- /dev/null
+++ b/app/views/admin/groups/new.js.haml
@@ -0,0 +1 @@
+= render :partial => "form", :locals => {:path => admin_groups_path, :submit => _("Create") }
diff --git a/app/views/admin/groups/show.html.erb b/app/views/admin/groups/show.html.erb
new file mode 100644
index 0000000000..0a89cecf05
--- /dev/null
+++ b/app/views/admin/groups/show.html.erb
@@ -0,0 +1 @@
+show
\ No newline at end of file
diff --git a/app/views/admin/keys/_form.html.erb b/app/views/admin/keys/_form.html.erb
new file mode 100644
index 0000000000..359a77789d
--- /dev/null
+++ b/app/views/admin/keys/_form.html.erb
@@ -0,0 +1,63 @@
+<%= form_for @key, :url => path do |f|
+ content_tag :table do
+ a = content_tag :tr do
+ b = content_tag :th do
+ f.label :label
+ end
+ b += content_tag :td do
+ f.text_field :label
+ end
+ end
+ a += content_tag :tr do
+ b = content_tag :th do
+ f.label :object_type
+ end
+ b += content_tag :td do
+ f.select :object_type, MetaKey.object_types.collect {|o| [o, o]}, { :include_blank => true }
+ end
+ end
+ if @key.object_type == "Meta::Term"
+ a += content_tag :tr do
+ b = content_tag :th do
+ "Terms"
+ end
+ b += content_tag :td do
+ content_tag :ul do
+ # OPTIMIZE new term fields
+ @key.meta_terms.build
+ f.fields_for :meta_terms do |term_f| %>
+ <%= content_tag :li, :style => "padding-bottom: 1em;" do
+ LANGUAGES.each do |lang| %>
+ <%= lang %>:
+ <%= term_f.text_field lang %>
+
+ <% end %>
+ <% if term_f.object.is_used? %>
+ Used
+ <% elsif not term_f.object.new_record? %>
+ <%= term_f.check_box '_destroy' %>
+ <%= term_f.label '_destroy', _("Delete") %>
+ <% end
+ end
+ end
+ end
+ end
+ end
+ a += content_tag :tr do
+ b = content_tag :th do
+ end
+ b += content_tag :td do
+ c = f.check_box :is_extensible_list
+ c += f.label :is_extensible_list
+ end
+ end
+ end
+ a += content_tag :tr do
+ b = content_tag :td do
+ end
+ b += content_tag :td do
+ f.submit submit
+ end
+ end
+ end
+end %>
diff --git a/app/views/admin/keys/edit.js.erb b/app/views/admin/keys/edit.js.erb
new file mode 100644
index 0000000000..7d0828b228
--- /dev/null
+++ b/app/views/admin/keys/edit.js.erb
@@ -0,0 +1 @@
+<%= render :partial => "form", :locals => {:path => admin_key_path(@key), :submit => _("Update") } %>
diff --git a/app/views/admin/keys/index.html.haml b/app/views/admin/keys/index.html.haml
new file mode 100644
index 0000000000..14d6a3b0a2
--- /dev/null
+++ b/app/views/admin/keys/index.html.haml
@@ -0,0 +1,32 @@
+%table
+ %tr
+ %td{:colspan => 5, :style => "text-align: right; white-space: nowrap;"}
+ = link_to _("New Key"), new_admin_key_path, :class => "buttons", :"data-remote" => true
+ %tr
+ %th
+ Label
+ %th
+ Object Type
+ %th
+ Is Dynamic
+ %th
+ Terms
+ %th
+ - @keys.each_with_index do |key, index|
+ %tr{:class => ((index % 2).zero? ? "even" : "odd")}
+ %td= key.label
+ %td
+ = key.object_type
+ - if key.is_extensible_list?
+ %br
+ = _("extensible list")
+ %td= key.is_dynamic
+ %td
+ - if key.meta_terms
+ %ul
+ - key.meta_terms.each do |term|
+ %li= term.to_s
+ %td.with_actions
+ = link_to _("Edit"), edit_admin_key_path(key), :class => "buttons", :"data-remote" => true
+ %br
+ = link_to _("Delete"), admin_key_path(key), :class => "buttons", :method => :delete, :confirm => _("Sind Sie sicher?") if key.meta_key_definitions.empty?
diff --git a/app/views/admin/keys/mapping.html.erb b/app/views/admin/keys/mapping.html.erb
new file mode 100644
index 0000000000..3adff5a7de
--- /dev/null
+++ b/app/views/admin/keys/mapping.html.erb
@@ -0,0 +1,7 @@
+<% if false %>
+ <%= image_tag @graph if @graph %>
+<% else %>
+
+
+
+<% end %>
diff --git a/app/views/admin/keys/new.js.erb b/app/views/admin/keys/new.js.erb
new file mode 100644
index 0000000000..b35cbda9ec
--- /dev/null
+++ b/app/views/admin/keys/new.js.erb
@@ -0,0 +1 @@
+<%= render :partial => "form", :locals => {:path => admin_keys_path, :submit => _("Create") } %>
diff --git a/app/views/admin/media_entries/import.html.erb b/app/views/admin/media_entries/import.html.erb
new file mode 100644
index 0000000000..c25d093fda
--- /dev/null
+++ b/app/views/admin/media_entries/import.html.erb
@@ -0,0 +1,5 @@
+<%= form_tag "/import" do
+ a = "Path: ".html_safe
+ a += text_field_tag :import_path
+ a += submit_tag _("Import")
+end %>
diff --git a/app/views/admin/media_sets/edit.html.haml b/app/views/admin/media_sets/edit.html.haml
new file mode 100644
index 0000000000..4e8693544b
--- /dev/null
+++ b/app/views/admin/media_sets/edit.html.haml
@@ -0,0 +1,23 @@
+= form_for @set, :as => :media_set, :url => admin_media_set_path(@set) do |f|
+ %table
+ %tr
+ %td Type
+ %td= f.object.type
+
+ - f.fields_for :meta_data, f.object.meta_data.get("title") do |ff|
+ %tr
+ %td= ff.object.meta_key.label
+ %td= field_tag(ff, MetaContext.media_set)
+
+ - if f.object.respond_to? :individual_contexts
+ %tr
+ %td Contexts
+ %td
+ %ul
+ - MetaContext.all.each do |context|
+ %li
+ = check_box_tag "individual_contexts[]", context.id, f.object.individual_contexts.include?(context)
+ = context
+
+ %tr{:colspan => 2}
+ %td= f.submit _("Update")
\ No newline at end of file
diff --git a/app/views/admin/media_sets/featured.html.haml b/app/views/admin/media_sets/featured.html.haml
new file mode 100644
index 0000000000..aaef18fb39
--- /dev/null
+++ b/app/views/admin/media_sets/featured.html.haml
@@ -0,0 +1,10 @@
+= form_for @set, :url => featured_admin_media_sets_path, :html => {:method => :post} do |f|
+ %ul
+ - # TODO Media::Set.all.collect do |set|
+ - Media::Set.where(:type => "Media::Set").each do |set|
+ - # TODO next if set is private ??
+ %li
+ = check_box_tag "children[]", set.id, @set.children.include?(set)
+ = " #{set} [#{view_permission_string(set)}] #{set.user}"
+
+ = f.submit _("Submit")
diff --git a/app/views/admin/media_sets/index.html.haml b/app/views/admin/media_sets/index.html.haml
new file mode 100644
index 0000000000..70a016ea8b
--- /dev/null
+++ b/app/views/admin/media_sets/index.html.haml
@@ -0,0 +1,20 @@
+%table
+ %tr
+ %td{:colspan => 5, :style => "text-align: right; white-space: nowrap;"}
+ = link_to _("New Set"), new_admin_media_set_path, :class => "buttons", :remote => true
+ %tr
+ %th Type
+ %th Title
+ %th Owner
+ %th MediaEntries
+ %th
+ - @sets.each_with_index do |set, index|
+ %tr{:class => ((index % 2).zero? ? "even" : "odd")}
+ %td= set.class
+ %td= set.title
+ %td= set.user
+ %td= set.media_entries.count
+ %td.with_actions
+ = link_to _("Edit"), edit_admin_media_set_path(set), :class => "buttons", :remote => true
+ %br
+ = link_to _("Delete"), admin_media_set_path(set), :class => "buttons", :method => :delete, :confirm => _("Sind Sie sicher?") if set.media_entries.empty?
diff --git a/app/views/admin/media_sets/new.html.haml b/app/views/admin/media_sets/new.html.haml
new file mode 100644
index 0000000000..ce8e79833d
--- /dev/null
+++ b/app/views/admin/media_sets/new.html.haml
@@ -0,0 +1,13 @@
+= form_for @set, :url => admin_media_sets_path do |f|
+ %table
+ %tr
+ %td Type
+ %td= f.select :type, [Media::Set, Media::Project].collect {|o| [o, o]}
+
+ - f.fields_for :meta_data, f.object.meta_data.get("title") do |ff|
+ %tr
+ %td= ff.object.meta_key.label
+ %td= field_tag(ff, MetaContext.media_set)
+
+ %tr{:colspan => 2}
+ %td= f.submit _("Create")
\ No newline at end of file
diff --git a/app/views/admin/meta/import.html.erb b/app/views/admin/meta/import.html.erb
new file mode 100644
index 0000000000..04debdd880
--- /dev/null
+++ b/app/views/admin/meta/import.html.erb
@@ -0,0 +1,14 @@
+<%= form_tag import_admin_meta_path, :multipart => true do %>
+
+ <%= file_field_tag "uploaded_data", :multiple => false %>
+
+ <%= submit_tag _("Import") + " »" %>
+<% end %>
+
+<%= content_tag :ul do
+ @buffer.collect do |b|
+ content_tag :li do
+ b
+ end
+ end.join.html_safe
+end %>
\ No newline at end of file
diff --git a/app/views/admin/people/_form.html.erb b/app/views/admin/people/_form.html.erb
new file mode 100644
index 0000000000..ca27ad7181
--- /dev/null
+++ b/app/views/admin/people/_form.html.erb
@@ -0,0 +1,36 @@
+<%= form_for @person, :url => path do |f| # TODO , :html => {:"data-remote" => true}
+ content_tag :table do
+ a = content_tag :tr do
+ a = content_tag :th do
+ f.label :firstname
+ end
+ a += content_tag :td do
+ f.text_field :firstname
+ end
+ end
+ a += content_tag :tr do
+ a = content_tag :th do
+ f.label :lastname
+ end
+ a += content_tag :td do
+ f.text_field :lastname
+ end
+ end
+ a += content_tag :tr do
+ a = content_tag :th do
+ f.label :pseudonym
+ end
+ a += content_tag :td do
+ f.text_field :pseudonym
+ end
+ end
+
+ a += content_tag :tr do
+ a = content_tag :td do
+ end
+ a += content_tag :td do
+ f.submit submit
+ end
+ end
+ end
+end %>
diff --git a/app/views/admin/people/edit.js.erb b/app/views/admin/people/edit.js.erb
new file mode 100644
index 0000000000..85ac142598
--- /dev/null
+++ b/app/views/admin/people/edit.js.erb
@@ -0,0 +1 @@
+<%= render :partial => "form", :locals => {:path => admin_person_path(@person), :submit => _("Update") } %>
diff --git a/app/views/admin/people/index.html.erb b/app/views/admin/people/index.html.erb
new file mode 100644
index 0000000000..92c6aeeb3c
--- /dev/null
+++ b/app/views/admin/people/index.html.erb
@@ -0,0 +1,27 @@
+<%= content_tag :table do
+ a = content_tag :tr do
+ [_("Firstname"),
+ _("Lastname"),
+ _("User"),
+ _("MetaData"),
+ ""].collect do |s|
+ content_tag :th do
+ s
+ end
+ end.join.html_safe
+ end
+ @people.each_with_index do |person, index|
+ a += content_tag :tr, :class => ((index % 2).zero? ? "even" : "odd") do
+ [person.firstname,
+ person.lastname,
+ "",
+ "#{person.meta_data.count}",
+ link_to(_("Edit"), edit_admin_person_path(person), :class => "buttons", :"data-remote" => true)].collect do |s|
+ content_tag :td do
+ s
+ end
+ end.join.html_safe
+ end
+ end
+ a
+end %>
diff --git a/app/views/admin/usage_terms/edit.html.erb b/app/views/admin/usage_terms/edit.html.erb
new file mode 100644
index 0000000000..5f24a43c49
--- /dev/null
+++ b/app/views/admin/usage_terms/edit.html.erb
@@ -0,0 +1,19 @@
+<%= form_for [:admin, @usage_term] do |f| %>
+ <%= f.label :intro %>
+ <%= f.text_area :intro %>
+ <%= tag :br %>
+
+ <%= f.label :title %>
+ <%= f.text_field :title %>
+ <%= tag :br %>
+
+ <%= f.label :version %>
+ <%= f.text_field :version %>
+ <%= tag :br %>
+
+ <%= f.label :body %>
+ <%= f.text_area :body, :style => "min-width: 100%; min-height: 30em;" %>
+ <%= tag :br %>
+
+ <%= f.submit _("Submit") %>
+<% end %>
\ No newline at end of file
diff --git a/app/views/admin/usage_terms/show.html.erb b/app/views/admin/usage_terms/show.html.erb
new file mode 100644
index 0000000000..f526340983
--- /dev/null
+++ b/app/views/admin/usage_terms/show.html.erb
@@ -0,0 +1,20 @@
+<%= stylesheet_link_tag "feedback", :media => "all" %>
+
+
\ No newline at end of file
diff --git a/app/views/application/feedback.html.erb b/app/views/application/feedback.html.erb
new file mode 100644
index 0000000000..8ef6a96897
--- /dev/null
+++ b/app/views/application/feedback.html.erb
@@ -0,0 +1,124 @@
+
+ <%= stylesheet_link_tag "feedback", :media => "all" %>
+ <%= stylesheet_link_tag "jquery/shadowbox", :media => "all" %>
+
+ <%= javascript_include_tag "jquery/shadowbox" %>
+
+
+
+
+
+
+
+
+
+
Feedback & Support
+
Das Medienarchiv der Künste ist nun im Release <%= RELEASE_VERSION %> verfügbar. Haben Sie es schon getestet? Machen Sie bei unserer Umfrage mit. Wir freuen uns auf Ihr Feedback!
+
1 Teilnahme an der Nutzerbefragung zum Release <%= RELEASE_VERSION %>
+
Aus aktuellem Anlass wird eine Medienarchiv-Feedbackrunde zum Release <%= RELEASE_VERSION %> durchgeführt. Über ein anonymes Google-Formular wurden ausgewählte Fragen zur aktuellen Version zusammengestellt. Mit Ihrer Teilnahme helfen Sie uns Ungereimtheiten im gegenwärtigen Release des Medienarchivs zu eruieren.
Keine Lust auf eine längere Umfrage? Dennoch etwas wichtiges mitzuteilen? Nutzen Sie unser kompaktes Feedback-Formular für Ihren kurzen Erfahrungsbericht oder sonstigen Anregungen.
Das Medienarchiv der Künste wird in enger Zusammenarbeit mit Angehörigen der ZHdK entwickelt. Haben Sie Interesse als Einzelperson oder mit einem Bereich aktiv am Entwicklungsprozess teilzunehmen? Melden Sie sich bei:
+
susanne.schumacher@zhdk.ch
+
Mehr Informationen zu den aktuellen Pilotprojekten finden Sie auf dem MAdeK-Wiki.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/views/authenticator/database_authentication/login.html.haml b/app/views/authenticator/database_authentication/login.html.haml
new file mode 100644
index 0000000000..cb18a6d76d
--- /dev/null
+++ b/app/views/authenticator/database_authentication/login.html.haml
@@ -0,0 +1,19 @@
+
+%p Log in here
+
+= flash[:notice] if flash[:notice]
+= flash[:error] if flash[:error]
+
+
+= form_tag({:action => 'login'}, {:method => :post}) do
+ %table
+ %tr
+ %td Login
+ %td
+ = text_field_tag :login
+ %tr
+ %td Password
+ %td
+ = password_field_tag :password
+
+ = submit_tag 'Log in'
\ No newline at end of file
diff --git a/app/views/layouts/_deploy_info.erb b/app/views/layouts/_deploy_info.erb
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb
new file mode 100644
index 0000000000..68e5e05c05
--- /dev/null
+++ b/app/views/layouts/_footer.html.erb
@@ -0,0 +1,12 @@
+
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb
new file mode 100644
index 0000000000..d543c09195
--- /dev/null
+++ b/app/views/layouts/_header.html.erb
@@ -0,0 +1,14 @@
+
+
+
<%= link_to "Medienarchiv der Künste<", root_path %>
+
+
+ <%= render :partial => '/layouts/menu' %>
+
+
+
+<%= render :partial => '/layouts/search' unless @disable_search %>
+
+<%= content_tag :div, :id => "ajaxLoading" do %>
+ <%= image_tag("spinner.gif") %> <%= _("Loading") %>...
+<% end %>
diff --git a/app/views/layouts/_menu.html.haml b/app/views/layouts/_menu.html.haml
new file mode 100644
index 0000000000..e1f57544fd
--- /dev/null
+++ b/app/views/layouts/_menu.html.haml
@@ -0,0 +1,24 @@
+- cache("users/#{current_user.id}/menu") do
+ %nav#menu
+ %ul
+ - unless @disable_user_bar
+ = render :partial => '/users/user_bar'
+ - if logged_in?
+ %li
+ %span.head_menu
+ = link_to _("Hochladen"), new_upload_path
+ =#future# image_tag "/images/icons/arrow.png", :width => 18, :height => 15, :align => "top", :class => "arrow" unless current_user.upload_sessions.empty?
+ - if false #future# unless current_user.upload_sessions.empty?
+ .sub_menu
+ - current_user.upload_sessions.most_recents.each do |us|
+ = link_to us, edit_upload_path(:upload_session_id => us)
+ =# link_to "Basic Uploader", new_upload_path
+ - @set = Media::FeaturedSet.first
+ - if @set and !@set.children.empty?
+ %li
+ %span.head_menu
+ = link_to _(@set), media_set_media_sets_path(@set)
+ - if logged_in?
+ %li
+ %span.head_menu_feedb
+ = link_to _("Feedback"), feedback_path
diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb
new file mode 100644
index 0000000000..4a1d376ec5
--- /dev/null
+++ b/app/views/layouts/_search.html.erb
@@ -0,0 +1,38 @@
+<%= content_tag :section, :id => "search" do
+ content_tag :div, :class => "container_12 clearfix" do
+ content_tag :div, :id => "quick-search", :class => "container_12 grid_12" do
+ form_tag media_entries_path, :method => :get do
+ content_tag :div, :class => "basic", :id => "search-query" do
+ content_tag :div, :style => "width: 620px; margin: 0 auto;" do
+ a = content_tag :label, :for => "query", :class => "query-label" do
+ _("Suche")
+ end
+ a += text_field_tag 'query', params[:query], :id => 'query', :onfocus => "this.value='';"
+ a += submit_tag _("»"), :id => 'search-submit'
+ end
+ end
+ end
+ end
+ end
+end %>
+
+<%= javascript_tag do %>
+ function submit_search(filter){
+ query = (filter ? $('#query').val() + " " + filter : $('#query').val() );
+
+ $.ajax({
+ url: "<%= media_entries_path(:format => :js) %>",
+ data:{ query:query //temp//, //TODO only available if _search partial is present!!
+ //temp// user_id:$('#user_id').val(),
+ //temp// media_set_id:$('#media_set_id').val(),
+ //temp// order:$('#order_by').val(),
+ //temp// per_page:$('#per_page').val()
+ },
+ success: function(response){
+ //temp// $("#results").replaceWith(response);
+ $("#content").html(response);
+ }
+ });
+ return false;
+ }
+<% end if false %>
diff --git a/app/views/layouts/admin/_menu.html.erb b/app/views/layouts/admin/_menu.html.erb
new file mode 100644
index 0000000000..09d7cd2727
--- /dev/null
+++ b/app/views/layouts/admin/_menu.html.erb
@@ -0,0 +1,42 @@
+<%= content_tag :nav, :id => "menu", :style => "margin-right: 1em;" do
+ content_tag :ul do
+ a = content_tag :li do
+ b = content_tag :span, :class => "head_menu" do
+ c = link_to _("Meta"), "#", :class => "arrow"
+ c += image_tag "/images/icons/arrow-user.png", :width => 18, :height => 15, :align => "top", :class => "arrow"
+ end
+ b += content_tag :div, :class => "sub_menu" do
+ c = link_to _("Keys"), admin_keys_path
+ c += link_to _("Contexts"), admin_contexts_path
+ c += link_to _("Mapping"), mapping_admin_keys_path
+ end
+ end
+ a += content_tag :li, :style => "margin-left: 1em;" do
+ b = content_tag :span, :class => "head_menu" do
+ c = link_to _("Subjects"), "#", :class => "arrow"
+ c += image_tag "/images/icons/arrow-user.png", :width => 18, :height => 15, :align => "top", :class => "arrow"
+ end
+ b += content_tag :div, :class => "sub_menu" do
+ c = link_to _("Users"), admin_users_path
+ c += link_to _("People"), admin_people_path
+ c += link_to _("Groups"), admin_groups_path
+ end
+ end
+ a += content_tag :li, :style => "margin-left: 1em;" do
+ b = content_tag :span, :class => "head_menu" do
+ c = link_to _("Resources"), "#", :class => "arrow"
+ c += image_tag "/images/icons/arrow-user.png", :width => 18, :height => 15, :align => "top", :class => "arrow"
+ end
+ b += content_tag :div, :class => "sub_menu" do
+ c = link_to _("Importer"), import_admin_media_entries_path
+ c += link_to _("Ausgewählte Sets"), featured_admin_media_sets_path
+ c += link_to _("Sets"), admin_media_sets_path
+ end
+ end
+ a += content_tag :li, :style => "margin-left: 1em;" do
+ content_tag :span, :class => "head_menu" do
+ link_to _("Usage Terms"), admin_usage_term_path
+ end
+ end
+ end
+end %>
diff --git a/app/views/layouts/admin/main.html.erb b/app/views/layouts/admin/main.html.erb
new file mode 100644
index 0000000000..d8c77324fe
--- /dev/null
+++ b/app/views/layouts/admin/main.html.erb
@@ -0,0 +1,89 @@
+
+
+
+
+ Admin
+
+ <%= stylesheet_link_tag "master", :media => "all" %>
+ <%= javascript_include_tag :defaults,
+ "madek10",
+ "jquery/plugins/jquery.elastic",
+ "jquery/plugins/jquery.placeholder",
+ "jquery/plugins/jquery.flickrmenu" %>
+
+ <%= csrf_meta_tag %>
+
+
+
+ <%= javascript_tag do %>
+ function edit_row_tpl(content, class, colspan){
+ return '
+
+ <%= content_tag :h3, :class => "tab-title" do #, :onclick => "$('#detail_specification').toggle();"
+ _("Metadaten")
+ end %>
+
+ <%= content_tag :div, :class => "tabs", :id => "detail_specification" do
+ content_tag :ul do
+ a = (MetaContext.defaults + media_entry.individual_contexts).collect do |meta_context|
+ content_tag :li do
+ link_to meta_context, polymorphic_path([media_entry, :meta_data], :context_id => meta_context)
+ end
+ end.join.html_safe
+
+ # OPTIMIZE iterator for meta_contexts (as for the edit)
+ a += content_tag :li do
+ link_to _("Datei"), polymorphic_path([:objective, media_entry, :meta_data])
+ end
+
+ meta_context = MetaContext.tms
+ a += content_tag :li do
+ link_to meta_context, polymorphic_path([media_entry, :meta_data], :context_id => meta_context)
+ end if is_expert
+ a
+ end
+ end %>
+
+
+ <%= content_tag :h3, :class => "tab-title", :style => "margin-top: 1em" do #, :onclick => "$('#further_information').toggle();"
+ _("Weitere Informationen")
+ end %>
+
+
+ <%= content_tag :ul do
+ a = content_tag :li do
+ link_to _("Aktivitäten"), "#usage-tabs-1"
+ end
+ a += content_tag :li do
+ link_to _("Zugriffsberechtigung"), (Permission.authorized?(current_user, :manage, media_entry) ? edit_multiple_media_entry_permissions_path(media_entry) : media_entry_permissions_path(media_entry))
+ end
+ end %>
+
+
+
+ <%= resource_sizes(@media_entry) %>
+
+ <%= content_tag :div do
+ a = "".html_safe
+ a += content_tag :div, :style => "font-size: 0.9em;", :class => "notice" do
+ date = @media_entry.snapshots.first.created_at.to_formatted_s(:date)
+ time = @media_entry.snapshots.first.created_at.to_formatted_s(:time)
+ "Ein Kopie dieses Medieneintrags wurde am #{date} um #{time} Uhr für das MIZ-Archiv erstellt."
+ end unless @media_entry.snapshots.empty?
+
+ a += content_tag :div, :style => "font-size: 0.9em;", :class => "notice" do
+ _("Diese Kopie wird gegenwärtig durch das MIZ-Archiv bearbeitet.")
+ end unless @media_entry.snapshotable?
+ a
+ end %>
+
+
+
+
+
+ <%= content_tag :h3 do
+ _("Metadaten für MIZ-Archiv editieren")
+ end %>
+
+
+ <%= form_for @media_entry, :as => :resource,
+ :url => [:update_multiple, @media_entry, :meta_data],
+ :html => {:method => :put} do |resource|
+
+ content_for :buttons do
+ content_tag :div, :style => "text-align: right; padding: 10pt; background: #DDDDDD;" do
+ b = resource.submit _("Speichern")
+ b += link_to _("Abbrechen"), @media_entry, :class => "buttons"
+ end
+ end
+
+ a = yield :buttons
+
+ meta_contexts = [MetaContext.tms]
+ a += content_tag :div, :class => "tabs", :id => "detail_specification" do
+ b = content_tag :ul do
+ meta_contexts.collect do |meta_context|
+ content_tag :li do
+ link_to meta_context, "##{meta_context.name}"
+ end
+ end.join.html_safe
+ end
+ meta_contexts.each do |meta_context|
+ b += render :partial => "/meta_data/edit_multiple_without_form", :locals => {:context => meta_context, :resource => resource }
+ end
+ b
+ end
+
+ a += yield :buttons
+ end %>
+
+
+
+
diff --git a/app/views/media_entries/favorites.html.erb b/app/views/media_entries/favorites.html.erb
new file mode 100644
index 0000000000..25cf1c3f94
--- /dev/null
+++ b/app/views/media_entries/favorites.html.erb
@@ -0,0 +1,5 @@
+
+ <%= _("Favoriten") %>
+
+
+<%= render :partial => 'index' %>
\ No newline at end of file
diff --git a/app/views/media_entries/graph.svg.erb b/app/views/media_entries/graph.svg.erb
new file mode 100644
index 0000000000..421e720ace
--- /dev/null
+++ b/app/views/media_entries/graph.svg.erb
@@ -0,0 +1,37 @@
+
+
+
+
diff --git a/app/views/media_entries/index.html.erb b/app/views/media_entries/index.html.erb
new file mode 100644
index 0000000000..e9bbd67573
--- /dev/null
+++ b/app/views/media_entries/index.html.erb
@@ -0,0 +1,3 @@
+<%= content_tag :div, :class => "container_12 clearfix" do %>
+ <%= render :partial => 'index' %>
+<% end %>
\ No newline at end of file
diff --git a/app/views/media_entries/keywords.html.erb b/app/views/media_entries/keywords.html.erb
new file mode 100644
index 0000000000..cbfaca00d9
--- /dev/null
+++ b/app/views/media_entries/keywords.html.erb
@@ -0,0 +1,61 @@
+<%= content_tag :div, :class => "tabs small" do %>
+ <%= content_tag :ul do
+ b = content_tag :li do
+ link_to _("Meine Schlagworte"), "#tabs_1"
+ end
+ b += content_tag :li do
+ link_to _("Beliebteste"), "#tabs_2"
+ end
+ b += content_tag :li do
+ link_to _("Neueste"), "#tabs_3"
+ end
+ end %>
+
+ <% [@my_keywords, @all_keywords, @all_keywords.sort{|a,b| b.created_at <=> a.created_at}].each_with_index do |keywords,index| %>
+ <%= content_tag :ul, :id => "tabs_#{index+1}", :class => "holder all", :style => "max-height: 20em; padding: 1.3em 0.3em 1em 0.3em; overflow-y: auto;" do
+ keywords.collect do |k|
+ content_tag :li, :class => "bit-box", :rel => "#{k}" do
+ a = "#{k} ".html_safe
+ a += content_tag :span do
+ "#{k.q}"
+ end
+ end
+ end.join.html_safe
+ end %>
+ <% end %>
+
+
+<% end %>
+
+<%= javascript_tag do %>
+ $(document).ready(function(){
+ // TODO already in application.js, use live()
+ $(".tabs").tabs({ cache: true,
+ add: function(event, ui) {
+ $(this).tabs('select', ui.index);
+ },
+ fx: { opacity: 'toggle' }
+ });
+
+ function hide_keyword(term){
+ $(".holder.all .bit-box[rel='"+term+"']").hide();
+ }
+ function hide_keywords(elements){
+ elements.each(function(){
+ hide_keyword($(this).html());
+ });
+ }
+
+ $(".holder.all .bit-box").live('click', function(){
+ $(this).closest(".Keyword[data-meta_key]").find("select.fcbkcomplete").trigger("addItem", [{"title": $(this).attr("rel"), "value": $(this).attr("rel")}]);
+ hide_keyword($(this).attr("rel"));
+ });
+
+ hide_keywords($(".Keyword[data-meta_key] select.fcbkcomplete option:selected"));
+
+ $("[data-meta_key='keywords'] select.fcbkcomplete").change(function(){
+ $(".holder.all .bit-box").show();
+ hide_keywords($(this).find("option:selected"));
+ });
+ });
+<% end %>
diff --git a/app/views/media_entries/remove.html.erb b/app/views/media_entries/remove.html.erb
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/app/views/media_entries/show.html.erb b/app/views/media_entries/show.html.erb
new file mode 100644
index 0000000000..349152caf5
--- /dev/null
+++ b/app/views/media_entries/show.html.erb
@@ -0,0 +1,2 @@
+<%= render @media_entry %>
+
diff --git a/app/views/media_sets/_media_set.html.haml b/app/views/media_sets/_media_set.html.haml
new file mode 100644
index 0000000000..c4f68ebcf0
--- /dev/null
+++ b/app/views/media_sets/_media_set.html.haml
@@ -0,0 +1,14 @@
+- max_thumbs = 4
+- media_entries = media_set.media_entries
+- total_entries = media_entries.count
+- media_entries.slice(0, max_thumbs)
+
+= media_set_title(media_set, true)
+%ul.items{:style => "margin: 1em; min-height: 10em;"}
+ - unless media_entries.empty?
+ - more_than_max_thumbs = total_entries > max_thumbs
+ = render :partial => "/media_entries/media_entry_thumb", :collection => (more_than_max_thumbs ? media_entries[0..max_thumbs-2] :media_entries), :as => :media_entry
+ - if more_than_max_thumbs
+ = link_to _("Restliche %d anzeigen") % (total_entries - max_thumbs + 1), media_set_path(media_set)
+ - else
+ = _("Keine Medieneinträge vorhanden")
\ No newline at end of file
diff --git a/app/views/media_sets/add_member.html.erb b/app/views/media_sets/add_member.html.erb
new file mode 100644
index 0000000000..b7fff2757c
--- /dev/null
+++ b/app/views/media_sets/add_member.html.erb
@@ -0,0 +1,27 @@
+
+<% end -%>
diff --git a/app/views/snapshots/index.html.erb b/app/views/snapshots/index.html.erb
new file mode 100644
index 0000000000..0dbb1d1bd8
--- /dev/null
+++ b/app/views/snapshots/index.html.erb
@@ -0,0 +1,28 @@
+<%= content_tag :h3 do
+ _("Kopien für MIZ-Archiv")
+end %>
+
+<%= content_tag :ul, :class => "items", :style => "margin: 1em; min-height: 10em;" do
+ @snapshots.collect do |snapshot|
+ content_tag :li do
+ a = content_tag :div, :style => "text-align: center;" do
+ link_to thumb_for(snapshot), snapshot_path(snapshot)
+ end
+ a += content_tag :p, :style => "font-size: 12px; text-align: center" do
+ title = snapshot.meta_data.get_value_for("title")
+ author = snapshot.meta_data.get_value_for("author")
+ b = content_tag :span, :style => "font-weight: bold" do
+ "#{title}"
+ end unless title.blank?
+ b += tag :br
+ b += content_tag :i do
+ "#{author}"
+ end unless author.blank?
+ b += tag :br
+ b += content_tag :span do
+ snapshot.created_at.to_formatted_s(:date_time)
+ end
+ end
+ end
+ end.join.html_safe
+end %>
diff --git a/app/views/snapshots/show.html.erb b/app/views/snapshots/show.html.erb
new file mode 100644
index 0000000000..ab648f4d65
--- /dev/null
+++ b/app/views/snapshots/show.html.erb
@@ -0,0 +1,68 @@
+<%= prevent_leaving_page %>
+
+
+
+
+
+
+ <%= thumb_for(@snapshot, :small) %>
+
+
+ <%= resource_sizes(@snapshot) %>
+
+ <%= content_tag :div, :id => "detail-action-bar", :style => "padding-top: 1.5em;" do
+ content_tag :ul do
+ a = content_tag :li do
+ link_to _("XML exportieren"), snapshot_path(@snapshot, :format => :tms), :style => "line-height: 1.1em; float: none; padding: 0.5em; font-size: 0.9em;"
+ end
+ a += content_tag :li do
+ link_to _("ZIP exportieren"), export_snapshots_path(:snapshot_ids => [@snapshot]), :style => "line-height: 1.1em; float: none; padding: 0.5em; font-size: 0.9em;"
+ end
+ a += content_tag :li do
+ link_to _("MIZ-Archiv Kopie löschen"), @snapshot, :style => "line-height: 1.1em; float: none; padding: 0.5em; font-size: 0.9em;", :method => :delete, :confirm => _("Sind Sie sicher?")
+ end
+ end
+ end %>
+
+
+
+
+
+ <%= content_tag :h3 do
+ _("Kopie für MIZ-Archiv editieren")
+ end %>
+
+
+ <%= form_for @snapshot, :as => :resource,
+ :url => [:update_multiple, @snapshot, :meta_data],
+ :html => {:method => :put} do |resource| %>
+
+ <%= content_for :buttons do
+ content_tag :div, :style => "text-align: right; padding: 10pt; background: #D2D2D2;" do
+ a = resource.submit _("Speichern")
+ a += link_to _("Abbrechen"), snapshots_path, :class => "buttons"
+ end
+ end %>
+
+ <%= yield :buttons %>
+
+ <%= content_tag :div, :class => "tabs", :id => "detail_specification" do
+ meta_contexts = [MetaContext.tms]
+ a = content_tag :ul do
+ meta_contexts.collect do |meta_context|
+ content_tag :li do
+ link_to meta_context, "##{meta_context.name}"
+ end
+ end.join.html_safe
+ end
+ meta_contexts.each do |meta_context|
+ a += render :partial => "/meta_data/edit_multiple_without_form", :locals => {:context => meta_context, :resource => resource }
+ end
+ a
+ end %>
+
+ <%= yield :buttons %>
+ <% end %>
+
+
+
\ No newline at end of file
diff --git a/app/views/upload/_files.html.erb b/app/views/upload/_files.html.erb
new file mode 100644
index 0000000000..6a97f57d0d
--- /dev/null
+++ b/app/views/upload/_files.html.erb
@@ -0,0 +1,76 @@
+<%= content_tag :table, :id => "upload-table",
+ :class => "upload_step_1 upload_step_2",
+ :style => "margin-top: 1em",
+ :ondragenter => "event.stopPropagation(); event.preventDefault();",
+ :ondragover => "event.stopPropagation(); event.preventDefault();",
+ :ondrop => "event.stopPropagation(); event.preventDefault(); append_to_queue(event.dataTransfer);" do
+ c = content_tag :tr do
+ a = "".html_safe
+ a += content_tag :th, :width => "20%" do
+ _("Ansicht")
+ end if false
+ a += content_tag :th, :width => "30%" do
+ _("Dateiname")
+ end
+ a += content_tag :th, :width => "30%" do
+ _("Grösse")
+ end
+ a += content_tag :th, :width => "20%" do
+ b = content_tag :span, :class => "upload_step_1", :style => "text-align: center" do
+ _("Entfernen?")
+ end
+ b += content_tag :span, :class => "upload_step_2" do
+ _("Uploadfortschritt")
+ end
+ end
+ end
+ if @media_entries
+ @media_entries.each do |media_entry|
+ c += content_tag :tr do
+ a = content_tag :td do
+ media_entry.media_file.filename
+ end
+ a += content_tag :td do
+ _("%d KB") % (media_entry.media_file.size / 1024).to_i
+ end
+ a += content_tag :td, :class => "progressbar" do # TODO share ok button with js
+ content_tag :p, :style => "margin: 0pt; padding: 0.5em; text-align: left; color: rgb(114, 114, 114);", :class => "ui-state-default ui-corner-all" do
+ b = content_tag :span, :class => "ui-icon ui-icon-circle-check" do
+ end
+ b += _("Upload OK!")
+ end
+ end
+ end
+ end
+ else
+ c += content_tag :tr, :id => "nofiles_row" do
+ content_tag :td, :colspan => 3, :style => "padding: 2em; font-size: 1.5em; text-align: center; color: #929292;" do
+ _("Es wurden noch keine Medien ausgewählt.")
+ end
+ end
+ end
+ c += content_tag :tr, :id => "totals", :style => "background: none repeat scroll 0% 0% lightblue; font-weight: bold;" do
+ a = content_tag :th do
+ b = content_tag :span, :id => "total_files" do
+ @media_entries ? @media_entries.size : 0
+ end
+ b += " " + _("Dateien")
+ end
+ a += content_tag :th do
+ b = content_tag :span, :id => "total_size" do
+ @media_entries ? number_with_delimiter((@media_entries.collect(&:media_file).collect(&:size).sum / 1024).to_i, :delimiter => "'") : 0
+ end
+ b += " KB "
+ b += content_tag :span, :id => "upload_estimation_time" do
+ end
+ end
+ a += content_tag :th do
+ content_tag :span, :class => "upload_step_2" do
+ b = content_tag :span, :id => "uploaded_files" do
+ @media_entries ? @media_entries.size : 0
+ end
+ b += " " + _("Uploads abgeschlossen")
+ end
+ end
+ end
+end %>
diff --git a/app/views/upload/_steps.html.erb b/app/views/upload/_steps.html.erb
new file mode 100644
index 0000000000..42a598e74e
--- /dev/null
+++ b/app/views/upload/_steps.html.erb
@@ -0,0 +1,50 @@
+<%= javascript_include_tag "jquery/jquery.numberformatter" %>
+
+
+
+
Medien hochladen
+ <%= content_tag :p, :style => "font-size: 90%" do %>
+ In diesem Monate haben Sie 0% von Ihrem Guthaben von 100MB aufgebraucht. Limit erhöhen?
+ <% end if false #future#
+ %>
+
+
+
+
+
+
+
+
1. Medien auswählen Fotos, Videos und Audiofiles bereitstellen
+ <% end if false #future# %>
+
+ <% with_actions = (@media_entries.size > 1) %>
+ <%= form_tag upload_path(:upload_session_id => params[:upload_session_id]), :method => :put do
+ a = "".html_safe
+ @media_entries.each do |media_entry|
+ a += content_tag :div, :class => "upload-me-metadata-container" do
+ b = content_tag :div, :class => "upload-me-autodata" do
+ c = content_tag :p do
+ thumb_for(media_entry, :medium, :style => "")
+ end
+ c += content_tag :p do
+ d = content_tag :strong do
+ "Filename:"
+ end
+ d += tag :br
+ d += media_entry.media_file.filename
+ end
+ c += content_tag :p do
+ d = content_tag :strong do
+ "Hochgeladen von:"
+ end
+ d += tag :br
+ d += media_entry.meta_data.get_value_for("uploaded by")
+ end
+ c += content_tag :p do
+ d = content_tag :strong do
+ "Hochgeladen am:"
+ end
+ d += tag :br
+ d += formatted_value(media_entry.meta_data.get("uploaded at"))
+ end
+ end
+ b += content_tag :div, :class => "upload-me-metadata" do
+ content_tag :div, :class => "meta_data_block meta_data" do
+ render :partial => "/meta_data/bulk_edit", :locals => { :resource => media_entry, :context => @context, :with_actions => with_actions }
+ end
+ end
+ end
+ end
+
+ a += content_tag :div, :class => "container_12" do
+ b = content_tag :div, :class => "grid_4" do
+ submit_tag _("Metadaten speichern und weiter") + " »"
+ end
+ b += content_tag :div, :class => "grid_7", :id => "required_message" do
+ _("Bitte füllen Sie die Pflichtfelder aus (\"Titel\" und \"Copyright\").")
+ end
+ end
+ end %>
+
+
+
+
+
+
diff --git a/app/views/upload/import_summary.html.erb b/app/views/upload/import_summary.html.erb
new file mode 100644
index 0000000000..98525f4ba2
--- /dev/null
+++ b/app/views/upload/import_summary.html.erb
@@ -0,0 +1,23 @@
+<%= content_tag :ul do
+ @media_entries.collect do |media_entry|
+ content_tag :li do
+ a = "#{media_entry.media_file.filename}"
+ a += if media_entry.context_valid?(@context)
+ " [ok]" # TODO display green icon or some reports?
+ else
+ warnings = media_entry.context_warnings(@context)
+ show_warnings(warnings)
+ end
+ end
+ end.join.html_safe
+end %>
+
+<%= if @all_valid
+ content_tag :h3, :class => "notice" do
+ _("Import has been completed succesfully! Imported %d files") % @media_entries.size
+ end
+ else
+ content_tag :h3, :class => "error" do
+ _("Import has failed!")
+ end
+ end %>
diff --git a/app/views/upload/new.html.erb b/app/views/upload/new.html.erb
new file mode 100644
index 0000000000..85424cefd6
--- /dev/null
+++ b/app/views/upload/new.html.erb
@@ -0,0 +1,88 @@
+<% content_for :head do %>
+ <%= javascript_include_tag "madek_ajax_upload", "jquery/plugins/jquery.filestyle.js" %>
+<% end %>
+
+
Probleme mit dem Firefox 3.6 Multiupload? Benutzen Sie unseren <%= link_to_function _("Basic Uploader") + "", "activate_step('1b')" %>.
+ <% end
+ end %>
+
+ <%= render :partial => "files" %>
+
+ <%= content_tag :div, :class => "upload_step_1" do %>
+
+
Akzeptierte Dateiformate
+
Bilder in den Formaten TIFF, JPEG und PNG werden direkt verarbeitet und dargestellt. Weitere Dateitypen (Videos, Dokumente etc.) können ebenfalls hochgeladen werden, sind vorerst jedoch nur nur als ZIP-Datei verfügbar.
+
+Filters added to this controller apply to all controllers in the
+application. Likewise, all the methods added will be available for all
+controllers.
+
+ # File app/helpers/application_helper.rb, line 26
+26: defto_list(msg = [])
+27: content_tag:uldo
+28: r = ""
+29: msg.to_a.eachdo|e|
+30: r+=content_tag:lido
+31: e
+32: end
+33: end
+34: r
+35: end
+36: end
+
+Redirect as appropriate when an access request fails.
+
+
+The default action is to redirect to the login screen.
+
+
+Override this method in your controllers if you want to have special
+behavior in case the user is not authorized to access the requested action.
+For example, a popup window might simply close itself.
+
+ # File lib/authenticated_system.rb, line 64
+64: defaccess_denied
+65: respond_todo|format|
+66: format.htmldo
+67: store_location
+68: redirect_tonew_session_path
+69: end
+70: # format.any doesn't work in rails version < http://dev.rubyonrails.org/changeset/8987
+71: # Add any other API formats here. (Some browsers, notably IE6, send Accept: */* and trigger
+72: # the 'format.any' block incorrectly. See http://bit.ly/ie6_borken or http://bit.ly/ie6_borken2
+73: # for a workaround.)
+74: format.any(:json, :xml) do
+75: request_http_basic_authentication'Web Password'
+76: end
+77: end
+78: end
+
+Override this method in your controllers if you want to restrict access to
+only a few actions or if you want to check if the user has the correct
+rights.
+
+
+Example:
+
+
+ # only allow nonbobs
+ def authorized?
+ current_user.login != "bob"
+ end
+
+ # File lib/authenticated_system.rb, line 169
+169: defhandle_remember_cookie!(new_cookie_flag)
+170: returnunless@current_user
+171: case
+172: whenvalid_remember_cookie?then@current_user.refresh_token# keeping same expiry date
+173: whennew_cookie_flagthen@current_user.remember_me
+174: else@current_user.forget_me
+175: end
+176: send_remember_cookie!
+177: end
+
+Called from current_user.
+Finaly, attempt to login by an expiring token in the cookie. for the
+paranoid: we should be storing user_token = hash(cookie_token,
+request IP)
+
+This is ususally what you want; resetting the session willy-nilly wreaks
+havoc with forgery protection, and is only strictly necessary on login.
+However, **all session state variables should be unset here**.
+
+ # File lib/authenticated_system.rb, line 136
+136: deflogout_keeping_session!
+137: # Kill server-side auth cookie
+138: @current_user.forget_meif@current_user.is_a?User
+139: @current_user = false# not logged in, and don't do it for me
+140: kill_remember_cookie!# Kill client-side auth cookie
+141: session[:user_id] = nil# keeps the session but kill our variable
+142: # explicitly kill any other session variables you set
+143: end
+
+The session should only be reset at the tail end of a form POST —
+otherwise the request forgery protection fails. It‘s only really
+necessary when you cross quarantine (logged-out to logged-in).
+
+ # File app/models/media_entry.rb, line 201
+201: defto_export_including_metadata_sources(meta_data_sources = "exif")
+202: #TODO - output the requested metadata-source data for the related media file (e.g. for images - exif, iptc..) in the result set.
+203: #NOTE - see metal/download.rb
+204: end
+
+ A MetaContext is a representation of a set of meta-data requirements for a particular domain.
+ for example, we start with a base set ("MadeK Core") that has approximately 7 definitions.
+ Further contexts may 'inherit' from the Core defintions (actually, it's a nested set)
+
+ # File app/models/meta/context.rb, line 29
+29: defself.init(reset = false)
+30: return0unlessresetorcount==0
+31: delete_all
+32:
+33: # parse/pre-process the key definitions and split/store by 'meta_context' e.g. 'MAdeK Core'
+34: # maybe we can do this inline, but it's still early morning for me..
+35:
+36: rec_yml = File.join("#{RAILS_ROOT}/config/definitions/metadata/","key_def_*.yml")
+37: src_yml = Dir.glob(rec_yml)
+38:
+39: contexts = { }
+40:
+41: src_yml.eachdo|file|
+42: key_defs = YAML.load(File.read(file))
+43:
+44: key_defs.eachdo|key_def|
+45: my_context = key_def.delete("meta_context").strip
+46: my_context_parent = key_def.delete("meta_context_parent").striprescuenil
+47: meta_key = key_def.delete("meta_key").strip
+48: field = key_def.delete("field")
+49: contexts[my_context] = [] unlesscontexts[my_context] # want to catch randomly placed entries, like in real-life..
+50: contexts[my_context] << { :parent =>my_context_parent, # we temporarily store the parent for the context in each entry, for later checking
+51: :meta_key =>meta_key,
+52: :field =>field
+53: }
+54: end
+55: end
+56:
+57: # Must really do the MAdeK Core first, on pain of death or horrible errors.
+58: ["MAdeK Core", "IPTC Core/XMP", "TMS", "Dublin Core", "MIA Web"].eachdo|context_name|# TODO could probably read this from a config file somewhere too..
+59: child_entry = contexts.delete(context_name)
+60: child_entry_parent = []
+61: child_entry.eachdo|e|
+62: child_entry_parent<<e.delete(:parent)
+63: e[:meta_key] = MetaKey.find_by_label(e[:meta_key])
+64: puts"MetaContext::init - meta_key found #{e[:meta_key]}"
+65: end
+66: child_entry_parent = child_entry_parent.uniq.first# TODO we really should croak here if we have any more than 1 entry
+67: puts"MetaContext::init - #{context_name}, parent=#{child_entry_parent} array=#{child_entry_parent}"
+68: context = create(:label =>context_name)
+69: context.meta_key_definitions.createchild_entry
+70: context.move_to_child_ofMetaContext.find_by_label(child_entry_parent) unlesschild_entry_parent.blank?orchild_entry_parent==context_name
+71: end
+72:
+73: returncount
+74: end
+
+ The Association class for relating a MediaEntry to a MetaKey and a value for that key.
+
+ Values are serialized objects (but should we be using composed_of instead?)
+
+ # File app/models/meta/datum.rb, line 51
+51: defcontext_warnings(label = "MAdeK Core")
+52: @context_warnings||= {}
+53: unless@context_warnings[label]
+54: @context_warnings[label] = []
+55:
+56: # TODO field definition based on the current context, instead of .first.field
+57: #context = MetaContext.find_by_label label
+58: field = meta_key.meta_key_definitions.first.field
+59: logger.info"context_warnings field=#{field.inspect}"
+60: @context_warnings[label] <<"can't be blank"ifvalue.blank?andfield.is_required
+61: @context_warnings[label] <<"is too short (min is #{field.length_min} characters)"iffield.length_minand (value.blank?orvalue.size<field.length_min)
+62: @context_warnings[label] <<"is too long (maximum is #{field.length_max} characters)"ifvalueandfield.length_maxandvalue.size>field.length_max
+63: # TODO options
+64: end
+65: return@context_warnings[label]
+66: end
+
+ # File app/models/meta/datum.rb, line 41
+41: defvalue
+42: v = read_attribute(:value)
+43: ifmeta_key.object_type
+44: v = meta_key.object_type.constantize.find(v) ifv
+45: end
+46: v
+47: end
+
+ # File app/models/meta/key.rb, line 11
+11: defto_s(context = nil)
+12: casecontext
+13: when"tms"
+14: c = MetaContext.find_by_label(context)
+15: d = meta_key_definitions.scoped_by_meta_context_id(c).first# OPTIMIZE
+16: r = d.field.label.to_s(:de_CH) ifd# OPTIMIZE language session
+17: #else
+18: # label.capitalize # TODO still capitalize?? or before_save downcase??
+19: end
+20: r||=label.capitalize
+21: end
+
+ # File app/models/permission.rb, line 51
+51: defactions# TODO rename to .real_action or .hard_action or .assigned_actions or .stored_actions
+52: actions_object.keys
+53: end
+
+ # File app/models/permission.rb, line 56
+56: defmerged_actions# TODO rename to .actions
+57: p = self.class.default_actions_for(media_entry) # TODO polymorphic resource
+58: p.merge(actions)
+59: end
+
+ # File app/models/person.rb, line 31
+31: defself.parse(value)
+32: #TODO untrivialise this name splitter
+33: #TODO does this really belong here?
+34: value.gsub!(/[*%;]/,'')
+35: ifvalue.include?(",") # input comes to us as lastname<comma>firstname(s)
+36: x = value.downcase.strip.squeeze(" ").split(/\s*,\s*/,2)
+37: fn = x.pop
+38: ln = x.pop
+39: else# Last word is family name, everything else is firstname(s)
+40: x = value.downcase.strip.split(/\s{1}/,-1)
+41: ln = x.pop
+42: fn = x.each {|e|e.capitalize }.join(' ')
+43: end
+44: returnfn, ln
+45: end
+
+ # File app/controllers/sessions_controller.rb, line 37
+37: defnote_failed_signin
+38: flash[:error] = "Couldn't log you in as '#{params[:login]}'"
+39: logger.warn"Failed login for '#{params[:login]}' from #{request.remote_ip} at #{Time.now.utc}"
+40: end
+
+Authenticates a user by their login name and unencrypted password. Returns
+the user or nil.
+
+
+uff. this is really an authorization, not authentication routine. We really
+need a Dispatch Chain here or something. This will also let us return a
+human error message.
+
+ # File app/models/user.rb, line 52
+52: defself.authenticate(login, password)
+53: returnniliflogin.blank?||password.blank?
+54: u = find_by_login(login.downcase) # need to get the salt
+55: u&&u.authenticated?(password) ?u:nil
+56: end
+
+ # File app/controllers/users_controller.rb, line 17
+17: defcreate
+18: logout_keeping_session!
+19: @user = User.new(params[:user])
+20: success = @user&&@user.save
+21: ifsuccess&&@user.errors.empty?
+22: # Protects against session fixation attacks, causes request forgery
+23: # protection if visitor resubmits an earlier form using back
+24: # button. Uncomment if you understand the tradeoffs.
+25: # reset session
+26: self.current_user = @user# !! now logged in
+27: redirect_back_or_default('/')
+28: flash[:notice] = "Thanks for signing up! We're sending you an email with your activation code."
+29: else
+30: flash[:error] = "We couldn't set up that account, sorry. Please try again, or contact an admin (link is above)."
+31: render:action =>'new'
+32: end
+33: end
+
+Use this to wrap view elements that the user can‘t access. !! Note:
+this is an interface, not security feature !! You need to do
+all access control at the controller level.
+
+
+Example: <%= if_authorized?(:index, User) do link_to(‘List all users’,
+users_path) end %> | <%= if_authorized?(:edit, @user) do
+link_to(‘Edit this user’, edit_user_path) end %> | <%= if_authorized?(:destroy, @user) do
+link_to ‘Destroy’, @user, :confirm => ‘Are you
+sure?’, :method => :delete end %>
+
+
+
+
\ No newline at end of file
diff --git a/doc/app/files/app/controllers/application_controller_rb.html b/doc/app/files/app/controllers/application_controller_rb.html
new file mode 100644
index 0000000000..d4f303e2d2
--- /dev/null
+++ b/doc/app/files/app/controllers/application_controller_rb.html
@@ -0,0 +1,109 @@
+
+
+
+
+
+ File: application_controller.rb
+
+
+
+
+
+
+
+
+
+
+
+
application_controller.rb
+
+
+
Path:
+
app/controllers/application_controller.rb
+
+
+
+
Last Update:
+
Thu Oct 01 16:54:12 +0200 2009
+
+
+
+
+
+
+
+
+
+
+
+
+
+Filters added to this controller apply to all controllers in the
+application. Likewise, all the methods added will be available for all
+controllers.
+
+ A MetaContext is a representation of a set of meta-data requirements for a particular domain.
+ for example, we start with a base set ("MadeK Core") that has approximately 7 definitions.
+ Further contexts may 'inherit' from the Core defintions (actually, it's a nested set)
+
+ The Association class for relating a MediaEntry to a MetaKey and a value for that key.
+
+ Values are serialized objects (but should we be using composed_of instead?)
+
+
+
+
\ No newline at end of file
diff --git a/doc/app/files/doc/README_FOR_APP.html b/doc/app/files/doc/README_FOR_APP.html
new file mode 100644
index 0000000000..c0faf54b26
--- /dev/null
+++ b/doc/app/files/doc/README_FOR_APP.html
@@ -0,0 +1,110 @@
+
+
+
+
+
+ File: README_FOR_APP
+
+
+
+
+
+
+
+
+
+
+
+
README_FOR_APP
+
+
+
Path:
+
doc/README_FOR_APP
+
+
+
+
Last Update:
+
Wed Oct 07 23:30:14 +0200 2009
+
+
+
+
+
+
+
+
+
+
+
+
+
MADEK
+
3rd party library (not gem nor plugin) requirements:
+
+ - exiftool (http://www.sno.phy.queensu.ca/~phil/exiftool/)
+ a platform independent Perl library/CLI for reading, writing and editing meta information in image, audio and video files.
+
"},_create:function(){this._tabify(true)},_setOption:function(d,h){if(d=="selected")this.options.collapsible&&
+h==this.options.selected||this.select(h);else{this.options[d]=h;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+f()},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+g());return b.cookie.apply(null,[d].concat(b.makeArray(arguments)))},_ui:function(d,h){return{tab:d,panel:h,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=
+b(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(d){function h(r,u){r.css("display","");!b.support.opacity&&u.opacity&&r[0].style.removeAttribute("filter")}var i=this,j=this.options,n=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=b(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return b("a",this)[0]});this.panels=b([]);this.anchors.each(function(r,u){var v=b(u).attr("href"),w=v.split("#")[0],y;if(w&&(w===location.toString().split("#")[0]||
+(y=b("base")[0])&&w===y.href)){v=u.hash;u.href=v}if(n.test(v))i.panels=i.panels.add(i.element.find(i._sanitizeSelector(v)));else if(v&&v!=="#"){b.data(u,"href.tabs",v);b.data(u,"load.tabs",v.replace(/#.*$/,""));v=i._tabId(u);u.href="#"+v;u=i.element.find("#"+v);if(!u.length){u=b(j.panelTemplate).attr("id",v).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(i.panels[r-1]||i.list);u.data("destroy.tabs",true)}i.panels=i.panels.add(u)}else j.disabled.push(r)});if(d){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
+this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(j.selected===c){location.hash&&this.anchors.each(function(r,u){if(u.hash==location.hash){j.selected=r;return false}});if(typeof j.selected!=="number"&&j.cookie)j.selected=parseInt(i._cookie(),10);if(typeof j.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)j.selected=
+this.lis.index(this.lis.filter(".ui-tabs-selected"));j.selected=j.selected||(this.lis.length?0:-1)}else if(j.selected===null)j.selected=-1;j.selected=j.selected>=0&&this.anchors[j.selected]||j.selected<0?j.selected:0;j.disabled=b.unique(j.disabled.concat(b.map(this.lis.filter(".ui-state-disabled"),function(r){return i.lis.index(r)}))).sort();b.inArray(j.selected,j.disabled)!=-1&&j.disabled.splice(b.inArray(j.selected,j.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
+if(j.selected>=0&&this.anchors.length){i.element.find(i._sanitizeSelector(i.anchors[j.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(j.selected).addClass("ui-tabs-selected ui-state-active");i.element.queue("tabs",function(){i._trigger("show",null,i._ui(i.anchors[j.selected],i.element.find(i._sanitizeSelector(i.anchors[j.selected].hash))[0]))});this.load(j.selected)}b(window).bind("unload",function(){i.lis.add(i.anchors).unbind(".tabs");i.lis=i.anchors=i.panels=null})}else j.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
+this.element[j.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");j.cookie&&this._cookie(j.selected,j.cookie);d=0;for(var q;q=this.lis[d];d++)b(q)[b.inArray(d,j.disabled)!=-1&&!b(q).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");j.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(j.event!=="mouseover"){var l=function(r,u){u.is(":not(.ui-state-disabled)")&&u.addClass("ui-state-"+r)},k=function(r,u){u.removeClass("ui-state-"+
+r)};this.lis.bind("mouseover.tabs",function(){l("hover",b(this))});this.lis.bind("mouseout.tabs",function(){k("hover",b(this))});this.anchors.bind("focus.tabs",function(){l("focus",b(this).closest("li"))});this.anchors.bind("blur.tabs",function(){k("focus",b(this).closest("li"))})}var m,o;if(j.fx)if(b.isArray(j.fx)){m=j.fx[0];o=j.fx[1]}else m=o=j.fx;var p=o?function(r,u){b(r).closest("li").addClass("ui-tabs-selected ui-state-active");u.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",
+function(){h(u,o);i._trigger("show",null,i._ui(r,u[0]))})}:function(r,u){b(r).closest("li").addClass("ui-tabs-selected ui-state-active");u.removeClass("ui-tabs-hide");i._trigger("show",null,i._ui(r,u[0]))},s=m?function(r,u){u.animate(m,m.duration||"normal",function(){i.lis.removeClass("ui-tabs-selected ui-state-active");u.addClass("ui-tabs-hide");h(u,m);i.element.dequeue("tabs")})}:function(r,u){i.lis.removeClass("ui-tabs-selected ui-state-active");u.addClass("ui-tabs-hide");i.element.dequeue("tabs")};
+this.anchors.bind(j.event+".tabs",function(){var r=this,u=b(r).closest("li"),v=i.panels.filter(":not(.ui-tabs-hide)"),w=i.element.find(i._sanitizeSelector(r.hash));if(u.hasClass("ui-tabs-selected")&&!j.collapsible||u.hasClass("ui-state-disabled")||u.hasClass("ui-state-processing")||i.panels.filter(":animated").length||i._trigger("select",null,i._ui(this,w[0]))===false){this.blur();return false}j.selected=i.anchors.index(this);i.abort();if(j.collapsible)if(u.hasClass("ui-tabs-selected")){j.selected=
+-1;j.cookie&&i._cookie(j.selected,j.cookie);i.element.queue("tabs",function(){s(r,v)}).dequeue("tabs");this.blur();return false}else if(!v.length){j.cookie&&i._cookie(j.selected,j.cookie);i.element.queue("tabs",function(){p(r,w)});i.load(i.anchors.index(this));this.blur();return false}j.cookie&&i._cookie(j.selected,j.cookie);if(w.length){v.length&&i.element.queue("tabs",function(){s(r,v)});i.element.queue("tabs",function(){p(r,w)});i.load(i.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
+b.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(d){if(typeof d=="string")d=this.anchors.index(this.anchors.filter("[href$="+d+"]"));return d},destroy:function(){var d=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var h=
+b.data(this,"href.tabs");if(h)this.href=h;var i=b(this).unbind(".tabs");b.each(["href","load","cache"],function(j,n){i.removeData(n+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){b.data(this,"destroy.tabs")?b(this).remove():b(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});d.cookie&&this._cookie(null,d.cookie);return this},add:function(d,
+h,i){if(i===c)i=this.anchors.length;var j=this,n=this.options;h=b(n.tabTemplate.replace(/#\{href\}/g,d).replace(/#\{label\}/g,h));d=!d.indexOf("#")?d.replace("#",""):this._tabId(b("a",h)[0]);h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var q=j.element.find("#"+d);q.length||(q=b(n.panelTemplate).attr("id",d).data("destroy.tabs",true));q.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(i>=this.lis.length){h.appendTo(this.list);q.appendTo(this.list[0].parentNode)}else{h.insertBefore(this.lis[i]);
+q.insertBefore(this.panels[i])}n.disabled=b.map(n.disabled,function(l){return l>=i?++l:l});this._tabify();if(this.anchors.length==1){n.selected=0;h.addClass("ui-tabs-selected ui-state-active");q.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){j._trigger("show",null,j._ui(j.anchors[0],j.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[i],this.panels[i]));return this},remove:function(d){d=this._getIndex(d);var h=this.options,i=this.lis.eq(d).remove(),j=this.panels.eq(d).remove();
+if(i.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(d+(d+1=d?--n:n});this._tabify();this._trigger("remove",null,this._ui(i.find("a")[0],j[0]));return this},enable:function(d){d=this._getIndex(d);var h=this.options;if(b.inArray(d,h.disabled)!=-1){this.lis.eq(d).removeClass("ui-state-disabled");h.disabled=b.grep(h.disabled,function(i){return i!=d});this._trigger("enable",null,
+this._ui(this.anchors[d],this.panels[d]));return this}},disable:function(d){d=this._getIndex(d);var h=this.options;if(d!=h.selected){this.lis.eq(d).addClass("ui-state-disabled");h.disabled.push(d);h.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))}return this},select:function(d){d=this._getIndex(d);if(d==-1)if(this.options.collapsible&&this.options.selected!=-1)d=this.options.selected;else return this;this.anchors.eq(d).trigger(this.options.event+".tabs");return this},
+load:function(d){d=this._getIndex(d);var h=this,i=this.options,j=this.anchors.eq(d)[0],n=b.data(j,"load.tabs");this.abort();if(!n||this.element.queue("tabs").length!==0&&b.data(j,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(d).addClass("ui-state-processing");if(i.spinner){var q=b("span",j);q.data("label.tabs",q.html()).html(i.spinner)}this.xhr=b.ajax(b.extend({},i.ajaxOptions,{url:n,success:function(l,k){h.element.find(h._sanitizeSelector(j.hash)).html(l);h._cleanup();i.cache&&b.data(j,
+"cache.tabs",true);h._trigger("load",null,h._ui(h.anchors[d],h.panels[d]));try{i.ajaxOptions.success(l,k)}catch(m){}},error:function(l,k){h._cleanup();h._trigger("load",null,h._ui(h.anchors[d],h.panels[d]));try{i.ajaxOptions.error(l,k,d,j)}catch(m){}}}));h.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
+url:function(d,h){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",h);return this},length:function(){return this.anchors.length}});b.extend(b.ui.tabs,{version:"1.8.9"});b.extend(b.ui.tabs.prototype,{rotation:null,rotate:function(d,h){var i=this,j=this.options,n=i._rotate||(i._rotate=function(q){clearTimeout(i.rotation);i.rotation=setTimeout(function(){var l=j.selected;i.select(++l)[^>]*$|#([\w\-]+)$)/,
+
+ // Check if a string has a non-whitespace character in it
+ rnotwhite = /\S/,
+
+ // Used for trimming whitespace
+ trimLeft = /^\s+/,
+ trimRight = /\s+$/,
+
+ // Check for digits
+ rdigit = /\d/,
+
+ // Match a standalone tag
+ rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+
+ // JSON RegExp
+ rvalidchars = /^[\],:{}\s]*$/,
+ rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
+ rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
+ rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
+
+ // Useragent RegExp
+ rwebkit = /(webkit)[ \/]([\w.]+)/,
+ ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
+ rmsie = /(msie) ([\w.]+)/,
+ rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
+
+ // Keep a UserAgent string for use with jQuery.browser
+ userAgent = navigator.userAgent,
+
+ // For matching the engine and version of the browser
+ browserMatch,
+
+ // Has the ready events already been bound?
+ readyBound = false,
+
+ // The deferred used on DOM ready
+ readyList,
+
+ // Promise methods
+ promiseMethods = "then done fail isResolved isRejected promise".split( " " ),
+
+ // The ready event handler
+ DOMContentLoaded,
+
+ // Save a reference to some core methods
+ toString = Object.prototype.toString,
+ hasOwn = Object.prototype.hasOwnProperty,
+ push = Array.prototype.push,
+ slice = Array.prototype.slice,
+ trim = String.prototype.trim,
+ indexOf = Array.prototype.indexOf,
+
+ // [[Class]] -> type pairs
+ class2type = {};
+
+jQuery.fn = jQuery.prototype = {
+ constructor: jQuery,
+ init: function( selector, context, rootjQuery ) {
+ var match, elem, ret, doc;
+
+ // Handle $(""), $(null), or $(undefined)
+ if ( !selector ) {
+ return this;
+ }
+
+ // Handle $(DOMElement)
+ if ( selector.nodeType ) {
+ this.context = this[0] = selector;
+ this.length = 1;
+ return this;
+ }
+
+ // The body element only exists once, optimize finding it
+ if ( selector === "body" && !context && document.body ) {
+ this.context = document;
+ this[0] = document.body;
+ this.selector = "body";
+ this.length = 1;
+ return this;
+ }
+
+ // Handle HTML strings
+ if ( typeof selector === "string" ) {
+ // Are we dealing with HTML string or an ID?
+ match = quickExpr.exec( selector );
+
+ // Verify a match, and that no context was specified for #id
+ if ( match && (match[1] || !context) ) {
+
+ // HANDLE: $(html) -> $(array)
+ if ( match[1] ) {
+ context = context instanceof jQuery ? context[0] : context;
+ doc = (context ? context.ownerDocument || context : document);
+
+ // If a single string is passed in and it's a single tag
+ // just do a createElement and skip the rest
+ ret = rsingleTag.exec( selector );
+
+ if ( ret ) {
+ if ( jQuery.isPlainObject( context ) ) {
+ selector = [ document.createElement( ret[1] ) ];
+ jQuery.fn.attr.call( selector, context, true );
+
+ } else {
+ selector = [ doc.createElement( ret[1] ) ];
+ }
+
+ } else {
+ ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
+ selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;
+ }
+
+ return jQuery.merge( this, selector );
+
+ // HANDLE: $("#id")
+ } else {
+ elem = document.getElementById( match[2] );
+
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ if ( elem && elem.parentNode ) {
+ // Handle the case where IE and Opera return items
+ // by name instead of ID
+ if ( elem.id !== match[2] ) {
+ return rootjQuery.find( selector );
+ }
+
+ // Otherwise, we inject the element directly into the jQuery object
+ this.length = 1;
+ this[0] = elem;
+ }
+
+ this.context = document;
+ this.selector = selector;
+ return this;
+ }
+
+ // HANDLE: $(expr, $(...))
+ } else if ( !context || context.jquery ) {
+ return (context || rootjQuery).find( selector );
+
+ // HANDLE: $(expr, context)
+ // (which is just equivalent to: $(context).find(expr)
+ } else {
+ return this.constructor( context ).find( selector );
+ }
+
+ // HANDLE: $(function)
+ // Shortcut for document ready
+ } else if ( jQuery.isFunction( selector ) ) {
+ return rootjQuery.ready( selector );
+ }
+
+ if (selector.selector !== undefined) {
+ this.selector = selector.selector;
+ this.context = selector.context;
+ }
+
+ return jQuery.makeArray( selector, this );
+ },
+
+ // Start with an empty selector
+ selector: "",
+
+ // The current version of jQuery being used
+ jquery: "1.5",
+
+ // The default length of a jQuery object is 0
+ length: 0,
+
+ // The number of elements contained in the matched element set
+ size: function() {
+ return this.length;
+ },
+
+ toArray: function() {
+ return slice.call( this, 0 );
+ },
+
+ // Get the Nth element in the matched element set OR
+ // Get the whole matched element set as a clean array
+ get: function( num ) {
+ return num == null ?
+
+ // Return a 'clean' array
+ this.toArray() :
+
+ // Return just the object
+ ( num < 0 ? this[ this.length + num ] : this[ num ] );
+ },
+
+ // Take an array of elements and push it onto the stack
+ // (returning the new matched element set)
+ pushStack: function( elems, name, selector ) {
+ // Build a new jQuery matched element set
+ var ret = this.constructor();
+
+ if ( jQuery.isArray( elems ) ) {
+ push.apply( ret, elems );
+
+ } else {
+ jQuery.merge( ret, elems );
+ }
+
+ // Add the old object onto the stack (as a reference)
+ ret.prevObject = this;
+
+ ret.context = this.context;
+
+ if ( name === "find" ) {
+ ret.selector = this.selector + (this.selector ? " " : "") + selector;
+ } else if ( name ) {
+ ret.selector = this.selector + "." + name + "(" + selector + ")";
+ }
+
+ // Return the newly-formed element set
+ return ret;
+ },
+
+ // Execute a callback for every element in the matched set.
+ // (You can seed the arguments with an array of args, but this is
+ // only used internally.)
+ each: function( callback, args ) {
+ return jQuery.each( this, callback, args );
+ },
+
+ ready: function( fn ) {
+ // Attach the listeners
+ jQuery.bindReady();
+
+ // Add the callback
+ readyList.done( fn );
+
+ return this;
+ },
+
+ eq: function( i ) {
+ return i === -1 ?
+ this.slice( i ) :
+ this.slice( i, +i + 1 );
+ },
+
+ first: function() {
+ return this.eq( 0 );
+ },
+
+ last: function() {
+ return this.eq( -1 );
+ },
+
+ slice: function() {
+ return this.pushStack( slice.apply( this, arguments ),
+ "slice", slice.call(arguments).join(",") );
+ },
+
+ map: function( callback ) {
+ return this.pushStack( jQuery.map(this, function( elem, i ) {
+ return callback.call( elem, i, elem );
+ }));
+ },
+
+ end: function() {
+ return this.prevObject || this.constructor(null);
+ },
+
+ // For internal use only.
+ // Behaves like an Array's method, not like a jQuery method.
+ push: push,
+ sort: [].sort,
+ splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+ var options, name, src, copy, copyIsArray, clone,
+ target = arguments[0] || {},
+ i = 1,
+ length = arguments.length,
+ deep = false;
+
+ // Handle a deep copy situation
+ if ( typeof target === "boolean" ) {
+ deep = target;
+ target = arguments[1] || {};
+ // skip the boolean and the target
+ i = 2;
+ }
+
+ // Handle case when target is a string or something (possible in deep copy)
+ if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+ target = {};
+ }
+
+ // extend jQuery itself if only one argument is passed
+ if ( length === i ) {
+ target = this;
+ --i;
+ }
+
+ for ( ; i < length; i++ ) {
+ // Only deal with non-null/undefined values
+ if ( (options = arguments[ i ]) != null ) {
+ // Extend the base object
+ for ( name in options ) {
+ src = target[ name ];
+ copy = options[ name ];
+
+ // Prevent never-ending loop
+ if ( target === copy ) {
+ continue;
+ }
+
+ // Recurse if we're merging plain objects or arrays
+ if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+ if ( copyIsArray ) {
+ copyIsArray = false;
+ clone = src && jQuery.isArray(src) ? src : [];
+
+ } else {
+ clone = src && jQuery.isPlainObject(src) ? src : {};
+ }
+
+ // Never move original objects, clone them
+ target[ name ] = jQuery.extend( deep, clone, copy );
+
+ // Don't bring in undefined values
+ } else if ( copy !== undefined ) {
+ target[ name ] = copy;
+ }
+ }
+ }
+ }
+
+ // Return the modified object
+ return target;
+};
+
+jQuery.extend({
+ noConflict: function( deep ) {
+ window.$ = _$;
+
+ if ( deep ) {
+ window.jQuery = _jQuery;
+ }
+
+ return jQuery;
+ },
+
+ // Is the DOM ready to be used? Set to true once it occurs.
+ isReady: false,
+
+ // A counter to track how many items to wait for before
+ // the ready event fires. See #6781
+ readyWait: 1,
+
+ // Handle when the DOM is ready
+ ready: function( wait ) {
+ // A third-party is pushing the ready event forwards
+ if ( wait === true ) {
+ jQuery.readyWait--;
+ }
+
+ // Make sure that the DOM is not already loaded
+ if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
+ // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+ if ( !document.body ) {
+ return setTimeout( jQuery.ready, 1 );
+ }
+
+ // Remember that the DOM is ready
+ jQuery.isReady = true;
+
+ // If a normal DOM Ready event fired, decrement, and wait if need be
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
+ return;
+ }
+
+ // If there are functions bound, to execute
+ readyList.resolveWith( document, [ jQuery ] );
+
+ // Trigger any bound ready events
+ if ( jQuery.fn.trigger ) {
+ jQuery( document ).trigger( "ready" ).unbind( "ready" );
+ }
+ }
+ },
+
+ bindReady: function() {
+ if ( readyBound ) {
+ return;
+ }
+
+ readyBound = true;
+
+ // Catch cases where $(document).ready() is called after the
+ // browser event has already occurred.
+ if ( document.readyState === "complete" ) {
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
+ return setTimeout( jQuery.ready, 1 );
+ }
+
+ // Mozilla, Opera and webkit nightlies currently support this event
+ if ( document.addEventListener ) {
+ // Use the handy event callback
+ document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+
+ // A fallback to window.onload, that will always work
+ window.addEventListener( "load", jQuery.ready, false );
+
+ // If IE event model is used
+ } else if ( document.attachEvent ) {
+ // ensure firing before onload,
+ // maybe late but safe also for iframes
+ document.attachEvent("onreadystatechange", DOMContentLoaded);
+
+ // A fallback to window.onload, that will always work
+ window.attachEvent( "onload", jQuery.ready );
+
+ // If IE and not a frame
+ // continually check to see if the document is ready
+ var toplevel = false;
+
+ try {
+ toplevel = window.frameElement == null;
+ } catch(e) {}
+
+ if ( document.documentElement.doScroll && toplevel ) {
+ doScrollCheck();
+ }
+ }
+ },
+
+ // See test/unit/core.js for details concerning isFunction.
+ // Since version 1.3, DOM methods and functions like alert
+ // aren't supported. They return false on IE (#2968).
+ isFunction: function( obj ) {
+ return jQuery.type(obj) === "function";
+ },
+
+ isArray: Array.isArray || function( obj ) {
+ return jQuery.type(obj) === "array";
+ },
+
+ // A crude way of determining if an object is a window
+ isWindow: function( obj ) {
+ return obj && typeof obj === "object" && "setInterval" in obj;
+ },
+
+ isNaN: function( obj ) {
+ return obj == null || !rdigit.test( obj ) || isNaN( obj );
+ },
+
+ type: function( obj ) {
+ return obj == null ?
+ String( obj ) :
+ class2type[ toString.call(obj) ] || "object";
+ },
+
+ isPlainObject: function( obj ) {
+ // Must be an Object.
+ // Because of IE, we also have to check the presence of the constructor property.
+ // Make sure that DOM nodes and window objects don't pass through, as well
+ if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+ return false;
+ }
+
+ // Not own constructor property must be Object
+ if ( obj.constructor &&
+ !hasOwn.call(obj, "constructor") &&
+ !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
+ return false;
+ }
+
+ // Own properties are enumerated firstly, so to speed up,
+ // if last one is own, then all properties are own.
+
+ var key;
+ for ( key in obj ) {}
+
+ return key === undefined || hasOwn.call( obj, key );
+ },
+
+ isEmptyObject: function( obj ) {
+ for ( var name in obj ) {
+ return false;
+ }
+ return true;
+ },
+
+ error: function( msg ) {
+ throw msg;
+ },
+
+ parseJSON: function( data ) {
+ if ( typeof data !== "string" || !data ) {
+ return null;
+ }
+
+ // Make sure leading/trailing whitespace is removed (IE can't handle it)
+ data = jQuery.trim( data );
+
+ // Make sure the incoming data is actual JSON
+ // Logic borrowed from http://json.org/json2.js
+ if ( rvalidchars.test(data.replace(rvalidescape, "@")
+ .replace(rvalidtokens, "]")
+ .replace(rvalidbraces, "")) ) {
+
+ // Try to use the native JSON parser first
+ return window.JSON && window.JSON.parse ?
+ window.JSON.parse( data ) :
+ (new Function("return " + data))();
+
+ } else {
+ jQuery.error( "Invalid JSON: " + data );
+ }
+ },
+
+ // Cross-browser xml parsing
+ // (xml & tmp used internally)
+ parseXML: function( data , xml , tmp ) {
+
+ if ( window.DOMParser ) { // Standard
+ tmp = new DOMParser();
+ xml = tmp.parseFromString( data , "text/xml" );
+ } else { // IE
+ xml = new ActiveXObject( "Microsoft.XMLDOM" );
+ xml.async = "false";
+ xml.loadXML( data );
+ }
+
+ tmp = xml.documentElement;
+
+ if ( ! tmp || ! tmp.nodeName || tmp.nodeName === "parsererror" ) {
+ jQuery.error( "Invalid XML: " + data );
+ }
+
+ return xml;
+ },
+
+ noop: function() {},
+
+ // Evalulates a script in a global context
+ globalEval: function( data ) {
+ if ( data && rnotwhite.test(data) ) {
+ // Inspired by code by Andrea Giammarchi
+ // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
+ var head = document.getElementsByTagName("head")[0] || document.documentElement,
+ script = document.createElement("script");
+
+ script.type = "text/javascript";
+
+ if ( jQuery.support.scriptEval() ) {
+ script.appendChild( document.createTextNode( data ) );
+ } else {
+ script.text = data;
+ }
+
+ // Use insertBefore instead of appendChild to circumvent an IE6 bug.
+ // This arises when a base node is used (#2709).
+ head.insertBefore( script, head.firstChild );
+ head.removeChild( script );
+ }
+ },
+
+ nodeName: function( elem, name ) {
+ return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
+ },
+
+ // args is for internal usage only
+ each: function( object, callback, args ) {
+ var name, i = 0,
+ length = object.length,
+ isObj = length === undefined || jQuery.isFunction(object);
+
+ if ( args ) {
+ if ( isObj ) {
+ for ( name in object ) {
+ if ( callback.apply( object[ name ], args ) === false ) {
+ break;
+ }
+ }
+ } else {
+ for ( ; i < length; ) {
+ if ( callback.apply( object[ i++ ], args ) === false ) {
+ break;
+ }
+ }
+ }
+
+ // A special, fast, case for the most common use of each
+ } else {
+ if ( isObj ) {
+ for ( name in object ) {
+ if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
+ break;
+ }
+ }
+ } else {
+ for ( var value = object[0];
+ i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
+ }
+ }
+
+ return object;
+ },
+
+ // Use native String.trim function wherever possible
+ trim: trim ?
+ function( text ) {
+ return text == null ?
+ "" :
+ trim.call( text );
+ } :
+
+ // Otherwise use our own trimming functionality
+ function( text ) {
+ return text == null ?
+ "" :
+ text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
+ },
+
+ // results is for internal usage only
+ makeArray: function( array, results ) {
+ var ret = results || [];
+
+ if ( array != null ) {
+ // The window, strings (and functions) also have 'length'
+ // The extra typeof function check is to prevent crashes
+ // in Safari 2 (See: #3039)
+ // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
+ var type = jQuery.type(array);
+
+ if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
+ push.call( ret, array );
+ } else {
+ jQuery.merge( ret, array );
+ }
+ }
+
+ return ret;
+ },
+
+ inArray: function( elem, array ) {
+ if ( array.indexOf ) {
+ return array.indexOf( elem );
+ }
+
+ for ( var i = 0, length = array.length; i < length; i++ ) {
+ if ( array[ i ] === elem ) {
+ return i;
+ }
+ }
+
+ return -1;
+ },
+
+ merge: function( first, second ) {
+ var i = first.length,
+ j = 0;
+
+ if ( typeof second.length === "number" ) {
+ for ( var l = second.length; j < l; j++ ) {
+ first[ i++ ] = second[ j ];
+ }
+
+ } else {
+ while ( second[j] !== undefined ) {
+ first[ i++ ] = second[ j++ ];
+ }
+ }
+
+ first.length = i;
+
+ return first;
+ },
+
+ grep: function( elems, callback, inv ) {
+ var ret = [], retVal;
+ inv = !!inv;
+
+ // Go through the array, only saving the items
+ // that pass the validator function
+ for ( var i = 0, length = elems.length; i < length; i++ ) {
+ retVal = !!callback( elems[ i ], i );
+ if ( inv !== retVal ) {
+ ret.push( elems[ i ] );
+ }
+ }
+
+ return ret;
+ },
+
+ // arg is for internal usage only
+ map: function( elems, callback, arg ) {
+ var ret = [], value;
+
+ // Go through the array, translating each of the items to their
+ // new value (or values).
+ for ( var i = 0, length = elems.length; i < length; i++ ) {
+ value = callback( elems[ i ], i, arg );
+
+ if ( value != null ) {
+ ret[ ret.length ] = value;
+ }
+ }
+
+ // Flatten any nested arrays
+ return ret.concat.apply( [], ret );
+ },
+
+ // A global GUID counter for objects
+ guid: 1,
+
+ proxy: function( fn, proxy, thisObject ) {
+ if ( arguments.length === 2 ) {
+ if ( typeof proxy === "string" ) {
+ thisObject = fn;
+ fn = thisObject[ proxy ];
+ proxy = undefined;
+
+ } else if ( proxy && !jQuery.isFunction( proxy ) ) {
+ thisObject = proxy;
+ proxy = undefined;
+ }
+ }
+
+ if ( !proxy && fn ) {
+ proxy = function() {
+ return fn.apply( thisObject || this, arguments );
+ };
+ }
+
+ // Set the guid of unique handler to the same of original handler, so it can be removed
+ if ( fn ) {
+ proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
+ }
+
+ // So proxy can be declared as an argument
+ return proxy;
+ },
+
+ // Mutifunctional method to get and set values to a collection
+ // The value/s can be optionally by executed if its a function
+ access: function( elems, key, value, exec, fn, pass ) {
+ var length = elems.length;
+
+ // Setting many attributes
+ if ( typeof key === "object" ) {
+ for ( var k in key ) {
+ jQuery.access( elems, k, key[k], exec, fn, value );
+ }
+ return elems;
+ }
+
+ // Setting one attribute
+ if ( value !== undefined ) {
+ // Optionally, function values get executed if exec is true
+ exec = !pass && exec && jQuery.isFunction(value);
+
+ for ( var i = 0; i < length; i++ ) {
+ fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+ }
+
+ return elems;
+ }
+
+ // Getting an attribute
+ return length ? fn( elems[0], key ) : undefined;
+ },
+
+ now: function() {
+ return (new Date()).getTime();
+ },
+
+ // Create a simple deferred (one callbacks list)
+ _Deferred: function() {
+ var // callbacks list
+ callbacks = [],
+ // stored [ context , args ]
+ fired,
+ // to avoid firing when already doing so
+ firing,
+ // flag to know if the deferred has been cancelled
+ cancelled,
+ // the deferred itself
+ deferred = {
+
+ // done( f1, f2, ...)
+ done: function() {
+ if ( !cancelled ) {
+ var args = arguments,
+ i,
+ length,
+ elem,
+ type,
+ _fired;
+ if ( fired ) {
+ _fired = fired;
+ fired = 0;
+ }
+ for ( i = 0, length = args.length; i < length; i++ ) {
+ elem = args[ i ];
+ type = jQuery.type( elem );
+ if ( type === "array" ) {
+ deferred.done.apply( deferred, elem );
+ } else if ( type === "function" ) {
+ callbacks.push( elem );
+ }
+ }
+ if ( _fired ) {
+ deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] );
+ }
+ }
+ return this;
+ },
+
+ // resolve with given context and args
+ resolveWith: function( context, args ) {
+ if ( !cancelled && !fired && !firing ) {
+ firing = 1;
+ try {
+ while( callbacks[ 0 ] ) {
+ callbacks.shift().apply( context, args );
+ }
+ }
+ finally {
+ fired = [ context, args ];
+ firing = 0;
+ }
+ }
+ return this;
+ },
+
+ // resolve with this as context and given arguments
+ resolve: function() {
+ deferred.resolveWith( jQuery.isFunction( this.promise ) ? this.promise() : this, arguments );
+ return this;
+ },
+
+ // Has this deferred been resolved?
+ isResolved: function() {
+ return !!( firing || fired );
+ },
+
+ // Cancel
+ cancel: function() {
+ cancelled = 1;
+ callbacks = [];
+ return this;
+ }
+ };
+
+ return deferred;
+ },
+
+ // Full fledged deferred (two callbacks list)
+ Deferred: function( func ) {
+ var deferred = jQuery._Deferred(),
+ failDeferred = jQuery._Deferred(),
+ promise;
+ // Add errorDeferred methods, then and promise
+ jQuery.extend( deferred, {
+ then: function( doneCallbacks, failCallbacks ) {
+ deferred.done( doneCallbacks ).fail( failCallbacks );
+ return this;
+ },
+ fail: failDeferred.done,
+ rejectWith: failDeferred.resolveWith,
+ reject: failDeferred.resolve,
+ isRejected: failDeferred.isResolved,
+ // Get a promise for this deferred
+ // If obj is provided, the promise aspect is added to the object
+ promise: function( obj , i /* internal */ ) {
+ if ( obj == null ) {
+ if ( promise ) {
+ return promise;
+ }
+ promise = obj = {};
+ }
+ i = promiseMethods.length;
+ while( i-- ) {
+ obj[ promiseMethods[ i ] ] = deferred[ promiseMethods[ i ] ];
+ }
+ return obj;
+ }
+ } );
+ // Make sure only one callback list will be used
+ deferred.then( failDeferred.cancel, deferred.cancel );
+ // Unexpose cancel
+ delete deferred.cancel;
+ // Call given func if any
+ if ( func ) {
+ func.call( deferred, deferred );
+ }
+ return deferred;
+ },
+
+ // Deferred helper
+ when: function( object ) {
+ var args = arguments,
+ length = args.length,
+ deferred = length <= 1 && object && jQuery.isFunction( object.promise ) ?
+ object :
+ jQuery.Deferred(),
+ promise = deferred.promise(),
+ resolveArray;
+
+ if ( length > 1 ) {
+ resolveArray = new Array( length );
+ jQuery.each( args, function( index, element ) {
+ jQuery.when( element ).then( function( value ) {
+ resolveArray[ index ] = arguments.length > 1 ? slice.call( arguments, 0 ) : value;
+ if( ! --length ) {
+ deferred.resolveWith( promise, resolveArray );
+ }
+ }, deferred.reject );
+ } );
+ } else if ( deferred !== object ) {
+ deferred.resolve( object );
+ }
+ return promise;
+ },
+
+ // Use of jQuery.browser is frowned upon.
+ // More details: http://docs.jquery.com/Utilities/jQuery.browser
+ uaMatch: function( ua ) {
+ ua = ua.toLowerCase();
+
+ var match = rwebkit.exec( ua ) ||
+ ropera.exec( ua ) ||
+ rmsie.exec( ua ) ||
+ ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
+ [];
+
+ return { browser: match[1] || "", version: match[2] || "0" };
+ },
+
+ sub: function() {
+ function jQuerySubclass( selector, context ) {
+ return new jQuerySubclass.fn.init( selector, context );
+ }
+ jQuery.extend( true, jQuerySubclass, this );
+ jQuerySubclass.superclass = this;
+ jQuerySubclass.fn = jQuerySubclass.prototype = this();
+ jQuerySubclass.fn.constructor = jQuerySubclass;
+ jQuerySubclass.subclass = this.subclass;
+ jQuerySubclass.fn.init = function init( selector, context ) {
+ if ( context && context instanceof jQuery && !(context instanceof jQuerySubclass) ) {
+ context = jQuerySubclass(context);
+ }
+
+ return jQuery.fn.init.call( this, selector, context, rootjQuerySubclass );
+ };
+ jQuerySubclass.fn.init.prototype = jQuerySubclass.fn;
+ var rootjQuerySubclass = jQuerySubclass(document);
+ return jQuerySubclass;
+ },
+
+ browser: {}
+});
+
+// Create readyList deferred
+readyList = jQuery._Deferred();
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+browserMatch = jQuery.uaMatch( userAgent );
+if ( browserMatch.browser ) {
+ jQuery.browser[ browserMatch.browser ] = true;
+ jQuery.browser.version = browserMatch.version;
+}
+
+// Deprecated, use jQuery.browser.webkit instead
+if ( jQuery.browser.webkit ) {
+ jQuery.browser.safari = true;
+}
+
+if ( indexOf ) {
+ jQuery.inArray = function( elem, array ) {
+ return indexOf.call( array, elem );
+ };
+}
+
+// IE doesn't match non-breaking spaces with \s
+if ( rnotwhite.test( "\xA0" ) ) {
+ trimLeft = /^[\s\xA0]+/;
+ trimRight = /[\s\xA0]+$/;
+}
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+
+// Cleanup functions for the document ready method
+if ( document.addEventListener ) {
+ DOMContentLoaded = function() {
+ document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+ jQuery.ready();
+ };
+
+} else if ( document.attachEvent ) {
+ DOMContentLoaded = function() {
+ // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+ if ( document.readyState === "complete" ) {
+ document.detachEvent( "onreadystatechange", DOMContentLoaded );
+ jQuery.ready();
+ }
+ };
+}
+
+// The DOM ready check for Internet Explorer
+function doScrollCheck() {
+ if ( jQuery.isReady ) {
+ return;
+ }
+
+ try {
+ // If IE is used, use the trick by Diego Perini
+ // http://javascript.nwbox.com/IEContentLoaded/
+ document.documentElement.doScroll("left");
+ } catch(e) {
+ setTimeout( doScrollCheck, 1 );
+ return;
+ }
+
+ // and execute any waiting functions
+ jQuery.ready();
+}
+
+// Expose jQuery to the global object
+return (window.jQuery = window.$ = jQuery);
+
+})();
+
+
+(function() {
+
+ jQuery.support = {};
+
+ var div = document.createElement("div");
+
+ div.style.display = "none";
+ div.innerHTML = "
a";
+
+ var all = div.getElementsByTagName("*"),
+ a = div.getElementsByTagName("a")[0],
+ select = document.createElement("select"),
+ opt = select.appendChild( document.createElement("option") );
+
+ // Can't get basic test support
+ if ( !all || !all.length || !a ) {
+ return;
+ }
+
+ jQuery.support = {
+ // IE strips leading whitespace when .innerHTML is used
+ leadingWhitespace: div.firstChild.nodeType === 3,
+
+ // Make sure that tbody elements aren't automatically inserted
+ // IE will insert them into empty tables
+ tbody: !div.getElementsByTagName("tbody").length,
+
+ // Make sure that link elements get serialized correctly by innerHTML
+ // This requires a wrapper element in IE
+ htmlSerialize: !!div.getElementsByTagName("link").length,
+
+ // Get the style information from getAttribute
+ // (IE uses .cssText insted)
+ style: /red/.test( a.getAttribute("style") ),
+
+ // Make sure that URLs aren't manipulated
+ // (IE normalizes it by default)
+ hrefNormalized: a.getAttribute("href") === "/a",
+
+ // Make sure that element opacity exists
+ // (IE uses filter instead)
+ // Use a regex to work around a WebKit issue. See #5145
+ opacity: /^0.55$/.test( a.style.opacity ),
+
+ // Verify style float existence
+ // (IE uses styleFloat instead of cssFloat)
+ cssFloat: !!a.style.cssFloat,
+
+ // Make sure that if no value is specified for a checkbox
+ // that it defaults to "on".
+ // (WebKit defaults to "" instead)
+ checkOn: div.getElementsByTagName("input")[0].value === "on",
+
+ // Make sure that a selected-by-default option has a working selected property.
+ // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+ optSelected: opt.selected,
+
+ // Will be defined later
+ deleteExpando: true,
+ optDisabled: false,
+ checkClone: false,
+ _scriptEval: null,
+ noCloneEvent: true,
+ boxModel: null,
+ inlineBlockNeedsLayout: false,
+ shrinkWrapBlocks: false,
+ reliableHiddenOffsets: true
+ };
+
+ // Make sure that the options inside disabled selects aren't marked as disabled
+ // (WebKit marks them as diabled)
+ select.disabled = true;
+ jQuery.support.optDisabled = !opt.disabled;
+
+ jQuery.support.scriptEval = function() {
+ if ( jQuery.support._scriptEval === null ) {
+ var root = document.documentElement,
+ script = document.createElement("script"),
+ id = "script" + jQuery.now();
+
+ script.type = "text/javascript";
+ try {
+ script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
+ } catch(e) {}
+
+ root.insertBefore( script, root.firstChild );
+
+ // Make sure that the execution of code works by injecting a script
+ // tag with appendChild/createTextNode
+ // (IE doesn't support this, fails, and uses .text instead)
+ if ( window[ id ] ) {
+ jQuery.support._scriptEval = true;
+ delete window[ id ];
+ } else {
+ jQuery.support._scriptEval = false;
+ }
+
+ root.removeChild( script );
+ // release memory in IE
+ root = script = id = null;
+ }
+
+ return jQuery.support._scriptEval;
+ };
+
+ // Test to see if it's possible to delete an expando from an element
+ // Fails in Internet Explorer
+ try {
+ delete div.test;
+
+ } catch(e) {
+ jQuery.support.deleteExpando = false;
+ }
+
+ if ( div.attachEvent && div.fireEvent ) {
+ div.attachEvent("onclick", function click() {
+ // Cloning a node shouldn't copy over any
+ // bound event handlers (IE does this)
+ jQuery.support.noCloneEvent = false;
+ div.detachEvent("onclick", click);
+ });
+ div.cloneNode(true).fireEvent("onclick");
+ }
+
+ div = document.createElement("div");
+ div.innerHTML = "";
+
+ var fragment = document.createDocumentFragment();
+ fragment.appendChild( div.firstChild );
+
+ // WebKit doesn't clone checked state correctly in fragments
+ jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
+
+ // Figure out if the W3C box model works as expected
+ // document.body must exist before we can do this
+ jQuery(function() {
+ var div = document.createElement("div"),
+ body = document.getElementsByTagName("body")[0];
+
+ // Frameset documents with no body should not run this code
+ if ( !body ) {
+ return;
+ }
+
+ div.style.width = div.style.paddingLeft = "1px";
+ body.appendChild( div );
+ jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
+
+ if ( "zoom" in div.style ) {
+ // Check if natively block-level elements act like inline-block
+ // elements when setting their display to 'inline' and giving
+ // them layout
+ // (IE < 8 does this)
+ div.style.display = "inline";
+ div.style.zoom = 1;
+ jQuery.support.inlineBlockNeedsLayout = div.offsetWidth === 2;
+
+ // Check if elements with layout shrink-wrap their children
+ // (IE 6 does this)
+ div.style.display = "";
+ div.innerHTML = "";
+ jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
+ }
+
+ div.innerHTML = "
t
";
+ var tds = div.getElementsByTagName("td");
+
+ // Check if table cells still have offsetWidth/Height when they are set
+ // to display:none and there are still other visible table cells in a
+ // table row; if so, offsetWidth/Height are not reliable for use when
+ // determining if an element has been hidden directly using
+ // display:none (it is still safe to use offsets if a parent element is
+ // hidden; don safety goggles and see bug #4512 for more information).
+ // (only IE 8 fails this test)
+ jQuery.support.reliableHiddenOffsets = tds[0].offsetHeight === 0;
+
+ tds[0].style.display = "";
+ tds[1].style.display = "none";
+
+ // Check if empty table cells still have offsetWidth/Height
+ // (IE < 8 fail this test)
+ jQuery.support.reliableHiddenOffsets = jQuery.support.reliableHiddenOffsets && tds[0].offsetHeight === 0;
+ div.innerHTML = "";
+
+ body.removeChild( div ).style.display = "none";
+ div = tds = null;
+ });
+
+ // Technique from Juriy Zaytsev
+ // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
+ var eventSupported = function( eventName ) {
+ var el = document.createElement("div");
+ eventName = "on" + eventName;
+
+ // We only care about the case where non-standard event systems
+ // are used, namely in IE. Short-circuiting here helps us to
+ // avoid an eval call (in setAttribute) which can cause CSP
+ // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
+ if ( !el.attachEvent ) {
+ return true;
+ }
+
+ var isSupported = (eventName in el);
+ if ( !isSupported ) {
+ el.setAttribute(eventName, "return;");
+ isSupported = typeof el[eventName] === "function";
+ }
+ el = null;
+
+ return isSupported;
+ };
+
+ jQuery.support.submitBubbles = eventSupported("submit");
+ jQuery.support.changeBubbles = eventSupported("change");
+
+ // release memory in IE
+ div = all = a = null;
+})();
+
+
+
+var rbrace = /^(?:\{.*\}|\[.*\])$/;
+
+jQuery.extend({
+ cache: {},
+
+ // Please use with caution
+ uuid: 0,
+
+ // Unique for each copy of jQuery on the page
+ // Non-digits removed to match rinlinejQuery
+ expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
+
+ // The following elements throw uncatchable exceptions if you
+ // attempt to add expando properties to them.
+ noData: {
+ "embed": true,
+ // Ban all objects except for Flash (which handle expandos)
+ "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
+ "applet": true
+ },
+
+ hasData: function( elem ) {
+ elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
+
+ return !!elem && !jQuery.isEmptyObject(elem);
+ },
+
+ data: function( elem, name, data, pvt /* Internal Use Only */ ) {
+ if ( !jQuery.acceptData( elem ) ) {
+ return;
+ }
+
+ var internalKey = jQuery.expando, getByName = typeof name === "string", thisCache,
+
+ // We have to handle DOM nodes and JS objects differently because IE6-7
+ // can't GC object references properly across the DOM-JS boundary
+ isNode = elem.nodeType,
+
+ // Only DOM nodes need the global jQuery cache; JS object data is
+ // attached directly to the object so GC can occur automatically
+ cache = isNode ? jQuery.cache : elem,
+
+ // Only defining an ID for JS objects if its cache already exists allows
+ // the code to shortcut on the same path as a DOM node with no cache
+ id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando;
+
+ // Avoid doing any more work than we need to when trying to get data on an
+ // object that has no data at all
+ if ( (!id || (pvt && id && !cache[ id ][ internalKey ])) && getByName && data === undefined ) {
+ return;
+ }
+
+ if ( !id ) {
+ // Only DOM nodes need a new unique ID for each element since their data
+ // ends up in the global cache
+ if ( isNode ) {
+ elem[ jQuery.expando ] = id = ++jQuery.uuid;
+ } else {
+ id = jQuery.expando;
+ }
+ }
+
+ if ( !cache[ id ] ) {
+ cache[ id ] = {};
+ }
+
+ // An object can be passed to jQuery.data instead of a key/value pair; this gets
+ // shallow copied over onto the existing cache
+ if ( typeof name === "object" ) {
+ if ( pvt ) {
+ cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name);
+ } else {
+ cache[ id ] = jQuery.extend(cache[ id ], name);
+ }
+ }
+
+ thisCache = cache[ id ];
+
+ // Internal jQuery data is stored in a separate object inside the object's data
+ // cache in order to avoid key collisions between internal data and user-defined
+ // data
+ if ( pvt ) {
+ if ( !thisCache[ internalKey ] ) {
+ thisCache[ internalKey ] = {};
+ }
+
+ thisCache = thisCache[ internalKey ];
+ }
+
+ if ( data !== undefined ) {
+ thisCache[ name ] = data;
+ }
+
+ // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should
+ // not attempt to inspect the internal events object using jQuery.data, as this
+ // internal data object is undocumented and subject to change.
+ if ( name === "events" && !thisCache[name] ) {
+ return thisCache[ internalKey ] && thisCache[ internalKey ].events;
+ }
+
+ return getByName ? thisCache[ name ] : thisCache;
+ },
+
+ removeData: function( elem, name, pvt /* Internal Use Only */ ) {
+ if ( !jQuery.acceptData( elem ) ) {
+ return;
+ }
+
+ var internalKey = jQuery.expando, isNode = elem.nodeType,
+
+ // See jQuery.data for more information
+ cache = isNode ? jQuery.cache : elem,
+
+ // See jQuery.data for more information
+ id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
+
+ // If there is already no cache entry for this object, there is no
+ // purpose in continuing
+ if ( !cache[ id ] ) {
+ return;
+ }
+
+ if ( name ) {
+ var thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ];
+
+ if ( thisCache ) {
+ delete thisCache[ name ];
+
+ // If there is no data left in the cache, we want to continue
+ // and let the cache object itself get destroyed
+ if ( !jQuery.isEmptyObject(thisCache) ) {
+ return;
+ }
+ }
+ }
+
+ // See jQuery.data for more information
+ if ( pvt ) {
+ delete cache[ id ][ internalKey ];
+
+ // Don't destroy the parent cache unless the internal data object
+ // had been the only thing left in it
+ if ( !jQuery.isEmptyObject(cache[ id ]) ) {
+ return;
+ }
+ }
+
+ var internalCache = cache[ id ][ internalKey ];
+
+ // Browsers that fail expando deletion also refuse to delete expandos on
+ // the window, but it will allow it on all other JS objects; other browsers
+ // don't care
+ if ( jQuery.support.deleteExpando || cache != window ) {
+ delete cache[ id ];
+ } else {
+ cache[ id ] = null;
+ }
+
+ // We destroyed the entire user cache at once because it's faster than
+ // iterating through each key, but we need to continue to persist internal
+ // data if it existed
+ if ( internalCache ) {
+ cache[ id ] = {};
+ cache[ id ][ internalKey ] = internalCache;
+
+ // Otherwise, we need to eliminate the expando on the node to avoid
+ // false lookups in the cache for entries that no longer exist
+ } else if ( isNode ) {
+ // IE does not allow us to delete expando properties from nodes,
+ // nor does it have a removeAttribute function on Document nodes;
+ // we must handle all of these cases
+ if ( jQuery.support.deleteExpando ) {
+ delete elem[ jQuery.expando ];
+ } else if ( elem.removeAttribute ) {
+ elem.removeAttribute( jQuery.expando );
+ } else {
+ elem[ jQuery.expando ] = null;
+ }
+ }
+ },
+
+ // For internal use only.
+ _data: function( elem, name, data ) {
+ return jQuery.data( elem, name, data, true );
+ },
+
+ // A method for determining if a DOM node can handle the data expando
+ acceptData: function( elem ) {
+ if ( elem.nodeName ) {
+ var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
+
+ if ( match ) {
+ return !(match === true || elem.getAttribute("classid") !== match);
+ }
+ }
+
+ return true;
+ }
+});
+
+jQuery.fn.extend({
+ data: function( key, value ) {
+ var data = null;
+
+ if ( typeof key === "undefined" ) {
+ if ( this.length ) {
+ data = jQuery.data( this[0] );
+
+ if ( this[0].nodeType === 1 ) {
+ var attr = this[0].attributes, name;
+ for ( var i = 0, l = attr.length; i < l; i++ ) {
+ name = attr[i].name;
+
+ if ( name.indexOf( "data-" ) === 0 ) {
+ name = name.substr( 5 );
+ dataAttr( this[0], name, data[ name ] );
+ }
+ }
+ }
+ }
+
+ return data;
+
+ } else if ( typeof key === "object" ) {
+ return this.each(function() {
+ jQuery.data( this, key );
+ });
+ }
+
+ var parts = key.split(".");
+ parts[1] = parts[1] ? "." + parts[1] : "";
+
+ if ( value === undefined ) {
+ data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+ // Try to fetch any internally stored data first
+ if ( data === undefined && this.length ) {
+ data = jQuery.data( this[0], key );
+ data = dataAttr( this[0], key, data );
+ }
+
+ return data === undefined && parts[1] ?
+ this.data( parts[0] ) :
+ data;
+
+ } else {
+ return this.each(function() {
+ var $this = jQuery( this ),
+ args = [ parts[0], value ];
+
+ $this.triggerHandler( "setData" + parts[1] + "!", args );
+ jQuery.data( this, key, value );
+ $this.triggerHandler( "changeData" + parts[1] + "!", args );
+ });
+ }
+ },
+
+ removeData: function( key ) {
+ return this.each(function() {
+ jQuery.removeData( this, key );
+ });
+ }
+});
+
+function dataAttr( elem, key, data ) {
+ // If nothing was found internally, try to fetch any
+ // data from the HTML5 data-* attribute
+ if ( data === undefined && elem.nodeType === 1 ) {
+ data = elem.getAttribute( "data-" + key );
+
+ if ( typeof data === "string" ) {
+ try {
+ data = data === "true" ? true :
+ data === "false" ? false :
+ data === "null" ? null :
+ !jQuery.isNaN( data ) ? parseFloat( data ) :
+ rbrace.test( data ) ? jQuery.parseJSON( data ) :
+ data;
+ } catch( e ) {}
+
+ // Make sure we set the data so it isn't changed later
+ jQuery.data( elem, key, data );
+
+ } else {
+ data = undefined;
+ }
+ }
+
+ return data;
+}
+
+
+
+
+jQuery.extend({
+ queue: function( elem, type, data ) {
+ if ( !elem ) {
+ return;
+ }
+
+ type = (type || "fx") + "queue";
+ var q = jQuery._data( elem, type );
+
+ // Speed up dequeue by getting out quickly if this is just a lookup
+ if ( !data ) {
+ return q || [];
+ }
+
+ if ( !q || jQuery.isArray(data) ) {
+ q = jQuery._data( elem, type, jQuery.makeArray(data) );
+
+ } else {
+ q.push( data );
+ }
+
+ return q;
+ },
+
+ dequeue: function( elem, type ) {
+ type = type || "fx";
+
+ var queue = jQuery.queue( elem, type ),
+ fn = queue.shift();
+
+ // If the fx queue is dequeued, always remove the progress sentinel
+ if ( fn === "inprogress" ) {
+ fn = queue.shift();
+ }
+
+ if ( fn ) {
+ // Add a progress sentinel to prevent the fx queue from being
+ // automatically dequeued
+ if ( type === "fx" ) {
+ queue.unshift("inprogress");
+ }
+
+ fn.call(elem, function() {
+ jQuery.dequeue(elem, type);
+ });
+ }
+
+ if ( !queue.length ) {
+ jQuery.removeData( elem, type + "queue", true );
+ }
+ }
+});
+
+jQuery.fn.extend({
+ queue: function( type, data ) {
+ if ( typeof type !== "string" ) {
+ data = type;
+ type = "fx";
+ }
+
+ if ( data === undefined ) {
+ return jQuery.queue( this[0], type );
+ }
+ return this.each(function( i ) {
+ var queue = jQuery.queue( this, type, data );
+
+ if ( type === "fx" && queue[0] !== "inprogress" ) {
+ jQuery.dequeue( this, type );
+ }
+ });
+ },
+ dequeue: function( type ) {
+ return this.each(function() {
+ jQuery.dequeue( this, type );
+ });
+ },
+
+ // Based off of the plugin by Clint Helfers, with permission.
+ // http://blindsignals.com/index.php/2009/07/jquery-delay/
+ delay: function( time, type ) {
+ time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
+ type = type || "fx";
+
+ return this.queue( type, function() {
+ var elem = this;
+ setTimeout(function() {
+ jQuery.dequeue( elem, type );
+ }, time );
+ });
+ },
+
+ clearQueue: function( type ) {
+ return this.queue( type || "fx", [] );
+ }
+});
+
+
+
+
+var rclass = /[\n\t\r]/g,
+ rspaces = /\s+/,
+ rreturn = /\r/g,
+ rspecialurl = /^(?:href|src|style)$/,
+ rtype = /^(?:button|input)$/i,
+ rfocusable = /^(?:button|input|object|select|textarea)$/i,
+ rclickable = /^a(?:rea)?$/i,
+ rradiocheck = /^(?:radio|checkbox)$/i;
+
+jQuery.props = {
+ "for": "htmlFor",
+ "class": "className",
+ readonly: "readOnly",
+ maxlength: "maxLength",
+ cellspacing: "cellSpacing",
+ rowspan: "rowSpan",
+ colspan: "colSpan",
+ tabindex: "tabIndex",
+ usemap: "useMap",
+ frameborder: "frameBorder"
+};
+
+jQuery.fn.extend({
+ attr: function( name, value ) {
+ return jQuery.access( this, name, value, true, jQuery.attr );
+ },
+
+ removeAttr: function( name, fn ) {
+ return this.each(function(){
+ jQuery.attr( this, name, "" );
+ if ( this.nodeType === 1 ) {
+ this.removeAttribute( name );
+ }
+ });
+ },
+
+ addClass: function( value ) {
+ if ( jQuery.isFunction(value) ) {
+ return this.each(function(i) {
+ var self = jQuery(this);
+ self.addClass( value.call(this, i, self.attr("class")) );
+ });
+ }
+
+ if ( value && typeof value === "string" ) {
+ var classNames = (value || "").split( rspaces );
+
+ for ( var i = 0, l = this.length; i < l; i++ ) {
+ var elem = this[i];
+
+ if ( elem.nodeType === 1 ) {
+ if ( !elem.className ) {
+ elem.className = value;
+
+ } else {
+ var className = " " + elem.className + " ",
+ setClass = elem.className;
+
+ for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
+ if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
+ setClass += " " + classNames[c];
+ }
+ }
+ elem.className = jQuery.trim( setClass );
+ }
+ }
+ }
+ }
+
+ return this;
+ },
+
+ removeClass: function( value ) {
+ if ( jQuery.isFunction(value) ) {
+ return this.each(function(i) {
+ var self = jQuery(this);
+ self.removeClass( value.call(this, i, self.attr("class")) );
+ });
+ }
+
+ if ( (value && typeof value === "string") || value === undefined ) {
+ var classNames = (value || "").split( rspaces );
+
+ for ( var i = 0, l = this.length; i < l; i++ ) {
+ var elem = this[i];
+
+ if ( elem.nodeType === 1 && elem.className ) {
+ if ( value ) {
+ var className = (" " + elem.className + " ").replace(rclass, " ");
+ for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
+ className = className.replace(" " + classNames[c] + " ", " ");
+ }
+ elem.className = jQuery.trim( className );
+
+ } else {
+ elem.className = "";
+ }
+ }
+ }
+ }
+
+ return this;
+ },
+
+ toggleClass: function( value, stateVal ) {
+ var type = typeof value,
+ isBool = typeof stateVal === "boolean";
+
+ if ( jQuery.isFunction( value ) ) {
+ return this.each(function(i) {
+ var self = jQuery(this);
+ self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
+ });
+ }
+
+ return this.each(function() {
+ if ( type === "string" ) {
+ // toggle individual class names
+ var className,
+ i = 0,
+ self = jQuery( this ),
+ state = stateVal,
+ classNames = value.split( rspaces );
+
+ while ( (className = classNames[ i++ ]) ) {
+ // check each className given, space seperated list
+ state = isBool ? state : !self.hasClass( className );
+ self[ state ? "addClass" : "removeClass" ]( className );
+ }
+
+ } else if ( type === "undefined" || type === "boolean" ) {
+ if ( this.className ) {
+ // store className if set
+ jQuery._data( this, "__className__", this.className );
+ }
+
+ // toggle whole className
+ this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+ }
+ });
+ },
+
+ hasClass: function( selector ) {
+ var className = " " + selector + " ";
+ for ( var i = 0, l = this.length; i < l; i++ ) {
+ if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
+ return true;
+ }
+ }
+
+ return false;
+ },
+
+ val: function( value ) {
+ if ( !arguments.length ) {
+ var elem = this[0];
+
+ if ( elem ) {
+ if ( jQuery.nodeName( elem, "option" ) ) {
+ // attributes.value is undefined in Blackberry 4.7 but
+ // uses .value. See #6932
+ var val = elem.attributes.value;
+ return !val || val.specified ? elem.value : elem.text;
+ }
+
+ // We need to handle select boxes special
+ if ( jQuery.nodeName( elem, "select" ) ) {
+ var index = elem.selectedIndex,
+ values = [],
+ options = elem.options,
+ one = elem.type === "select-one";
+
+ // Nothing was selected
+ if ( index < 0 ) {
+ return null;
+ }
+
+ // Loop through all the selected options
+ for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
+ var option = options[ i ];
+
+ // Don't return options that are disabled or in a disabled optgroup
+ if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
+ (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
+
+ // Get the specific value for the option
+ value = jQuery(option).val();
+
+ // We don't need an array for one selects
+ if ( one ) {
+ return value;
+ }
+
+ // Multi-Selects return an array
+ values.push( value );
+ }
+ }
+
+ return values;
+ }
+
+ // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
+ if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
+ return elem.getAttribute("value") === null ? "on" : elem.value;
+ }
+
+ // Everything else, we just grab the value
+ return (elem.value || "").replace(rreturn, "");
+
+ }
+
+ return undefined;
+ }
+
+ var isFunction = jQuery.isFunction(value);
+
+ return this.each(function(i) {
+ var self = jQuery(this), val = value;
+
+ if ( this.nodeType !== 1 ) {
+ return;
+ }
+
+ if ( isFunction ) {
+ val = value.call(this, i, self.val());
+ }
+
+ // Treat null/undefined as ""; convert numbers to string
+ if ( val == null ) {
+ val = "";
+ } else if ( typeof val === "number" ) {
+ val += "";
+ } else if ( jQuery.isArray(val) ) {
+ val = jQuery.map(val, function (value) {
+ return value == null ? "" : value + "";
+ });
+ }
+
+ if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
+ this.checked = jQuery.inArray( self.val(), val ) >= 0;
+
+ } else if ( jQuery.nodeName( this, "select" ) ) {
+ var values = jQuery.makeArray(val);
+
+ jQuery( "option", this ).each(function() {
+ this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+ });
+
+ if ( !values.length ) {
+ this.selectedIndex = -1;
+ }
+
+ } else {
+ this.value = val;
+ }
+ });
+ }
+});
+
+jQuery.extend({
+ attrFn: {
+ val: true,
+ css: true,
+ html: true,
+ text: true,
+ data: true,
+ width: true,
+ height: true,
+ offset: true
+ },
+
+ attr: function( elem, name, value, pass ) {
+ // don't get/set attributes on text, comment and attribute nodes
+ if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || elem.nodeType === 2 ) {
+ return undefined;
+ }
+
+ if ( pass && name in jQuery.attrFn ) {
+ return jQuery(elem)[name](value);
+ }
+
+ var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
+ // Whether we are setting (or getting)
+ set = value !== undefined;
+
+ // Try to normalize/fix the name
+ name = notxml && jQuery.props[ name ] || name;
+
+ // Only do all the following if this is a node (faster for style)
+ if ( elem.nodeType === 1 ) {
+ // These attributes require special treatment
+ var special = rspecialurl.test( name );
+
+ // Safari mis-reports the default selected property of an option
+ // Accessing the parent's selectedIndex property fixes it
+ if ( name === "selected" && !jQuery.support.optSelected ) {
+ var parent = elem.parentNode;
+ if ( parent ) {
+ parent.selectedIndex;
+
+ // Make sure that it also works with optgroups, see #5701
+ if ( parent.parentNode ) {
+ parent.parentNode.selectedIndex;
+ }
+ }
+ }
+
+ // If applicable, access the attribute via the DOM 0 way
+ // 'in' checks fail in Blackberry 4.7 #6931
+ if ( (name in elem || elem[ name ] !== undefined) && notxml && !special ) {
+ if ( set ) {
+ // We can't allow the type property to be changed (since it causes problems in IE)
+ if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
+ jQuery.error( "type property can't be changed" );
+ }
+
+ if ( value === null ) {
+ if ( elem.nodeType === 1 ) {
+ elem.removeAttribute( name );
+ }
+
+ } else {
+ elem[ name ] = value;
+ }
+ }
+
+ // browsers index elements by id/name on forms, give priority to attributes.
+ if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
+ return elem.getAttributeNode( name ).nodeValue;
+ }
+
+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+ if ( name === "tabIndex" ) {
+ var attributeNode = elem.getAttributeNode( "tabIndex" );
+
+ return attributeNode && attributeNode.specified ?
+ attributeNode.value :
+ rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+ 0 :
+ undefined;
+ }
+
+ return elem[ name ];
+ }
+
+ if ( !jQuery.support.style && notxml && name === "style" ) {
+ if ( set ) {
+ elem.style.cssText = "" + value;
+ }
+
+ return elem.style.cssText;
+ }
+
+ if ( set ) {
+ // convert the value to a string (all browsers do this but IE) see #1070
+ elem.setAttribute( name, "" + value );
+ }
+
+ // Ensure that missing attributes return undefined
+ // Blackberry 4.7 returns "" from getAttribute #6938
+ if ( !elem.attributes[ name ] && (elem.hasAttribute && !elem.hasAttribute( name )) ) {
+ return undefined;
+ }
+
+ var attr = !jQuery.support.hrefNormalized && notxml && special ?
+ // Some attributes require a special call on IE
+ elem.getAttribute( name, 2 ) :
+ elem.getAttribute( name );
+
+ // Non-existent attributes return null, we normalize to undefined
+ return attr === null ? undefined : attr;
+ }
+ // Handle everything which isn't a DOM element node
+ if ( set ) {
+ elem[ name ] = value;
+ }
+ return elem[ name ];
+ }
+});
+
+
+
+
+var rnamespaces = /\.(.*)$/,
+ rformElems = /^(?:textarea|input|select)$/i,
+ rperiod = /\./g,
+ rspace = / /g,
+ rescape = /[^\w\s.|`]/g,
+ fcleanup = function( nm ) {
+ return nm.replace(rescape, "\\$&");
+ },
+ eventKey = "events";
+
+/*
+ * A number of helper functions used for managing events.
+ * Many of the ideas behind this code originated from
+ * Dean Edwards' addEvent library.
+ */
+jQuery.event = {
+
+ // Bind an event to an element
+ // Original by Dean Edwards
+ add: function( elem, types, handler, data ) {
+ if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+ return;
+ }
+
+ // For whatever reason, IE has trouble passing the window object
+ // around, causing it to be cloned in the process
+ if ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {
+ elem = window;
+ }
+
+ if ( handler === false ) {
+ handler = returnFalse;
+ } else if ( !handler ) {
+ // Fixes bug #7229. Fix recommended by jdalton
+ return;
+ }
+
+ var handleObjIn, handleObj;
+
+ if ( handler.handler ) {
+ handleObjIn = handler;
+ handler = handleObjIn.handler;
+ }
+
+ // Make sure that the function being executed has a unique ID
+ if ( !handler.guid ) {
+ handler.guid = jQuery.guid++;
+ }
+
+ // Init the element's event structure
+ var elemData = jQuery._data( elem );
+
+ // If no elemData is found then we must be trying to bind to one of the
+ // banned noData elements
+ if ( !elemData ) {
+ return;
+ }
+
+ var events = elemData[ eventKey ],
+ eventHandle = elemData.handle;
+
+ if ( typeof events === "function" ) {
+ // On plain objects events is a fn that holds the the data
+ // which prevents this data from being JSON serialized
+ // the function does not need to be called, it just contains the data
+ eventHandle = events.handle;
+ events = events.events;
+
+ } else if ( !events ) {
+ if ( !elem.nodeType ) {
+ // On plain objects, create a fn that acts as the holder
+ // of the values to avoid JSON serialization of event data
+ elemData[ eventKey ] = elemData = function(){};
+ }
+
+ elemData.events = events = {};
+ }
+
+ if ( !eventHandle ) {
+ elemData.handle = eventHandle = function() {
+ // Handle the second event of a trigger and when
+ // an event is called after a page has unloaded
+ return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
+ jQuery.event.handle.apply( eventHandle.elem, arguments ) :
+ undefined;
+ };
+ }
+
+ // Add elem as a property of the handle function
+ // This is to prevent a memory leak with non-native events in IE.
+ eventHandle.elem = elem;
+
+ // Handle multiple events separated by a space
+ // jQuery(...).bind("mouseover mouseout", fn);
+ types = types.split(" ");
+
+ var type, i = 0, namespaces;
+
+ while ( (type = types[ i++ ]) ) {
+ handleObj = handleObjIn ?
+ jQuery.extend({}, handleObjIn) :
+ { handler: handler, data: data };
+
+ // Namespaced event handlers
+ if ( type.indexOf(".") > -1 ) {
+ namespaces = type.split(".");
+ type = namespaces.shift();
+ handleObj.namespace = namespaces.slice(0).sort().join(".");
+
+ } else {
+ namespaces = [];
+ handleObj.namespace = "";
+ }
+
+ handleObj.type = type;
+ if ( !handleObj.guid ) {
+ handleObj.guid = handler.guid;
+ }
+
+ // Get the current list of functions bound to this event
+ var handlers = events[ type ],
+ special = jQuery.event.special[ type ] || {};
+
+ // Init the event handler queue
+ if ( !handlers ) {
+ handlers = events[ type ] = [];
+
+ // Check for a special event handler
+ // Only use addEventListener/attachEvent if the special
+ // events handler returns false
+ if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+ // Bind the global event handler to the element
+ if ( elem.addEventListener ) {
+ elem.addEventListener( type, eventHandle, false );
+
+ } else if ( elem.attachEvent ) {
+ elem.attachEvent( "on" + type, eventHandle );
+ }
+ }
+ }
+
+ if ( special.add ) {
+ special.add.call( elem, handleObj );
+
+ if ( !handleObj.handler.guid ) {
+ handleObj.handler.guid = handler.guid;
+ }
+ }
+
+ // Add the function to the element's handler list
+ handlers.push( handleObj );
+
+ // Keep track of which events have been used, for global triggering
+ jQuery.event.global[ type ] = true;
+ }
+
+ // Nullify elem to prevent memory leaks in IE
+ elem = null;
+ },
+
+ global: {},
+
+ // Detach an event or set of events from an element
+ remove: function( elem, types, handler, pos ) {
+ // don't do events on text and comment nodes
+ if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+ return;
+ }
+
+ if ( handler === false ) {
+ handler = returnFalse;
+ }
+
+ var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
+ elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
+ events = elemData && elemData[ eventKey ];
+
+ if ( !elemData || !events ) {
+ return;
+ }
+
+ if ( typeof events === "function" ) {
+ elemData = events;
+ events = events.events;
+ }
+
+ // types is actually an event object here
+ if ( types && types.type ) {
+ handler = types.handler;
+ types = types.type;
+ }
+
+ // Unbind all events for the element
+ if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
+ types = types || "";
+
+ for ( type in events ) {
+ jQuery.event.remove( elem, type + types );
+ }
+
+ return;
+ }
+
+ // Handle multiple events separated by a space
+ // jQuery(...).unbind("mouseover mouseout", fn);
+ types = types.split(" ");
+
+ while ( (type = types[ i++ ]) ) {
+ origType = type;
+ handleObj = null;
+ all = type.indexOf(".") < 0;
+ namespaces = [];
+
+ if ( !all ) {
+ // Namespaced event handlers
+ namespaces = type.split(".");
+ type = namespaces.shift();
+
+ namespace = new RegExp("(^|\\.)" +
+ jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)");
+ }
+
+ eventType = events[ type ];
+
+ if ( !eventType ) {
+ continue;
+ }
+
+ if ( !handler ) {
+ for ( j = 0; j < eventType.length; j++ ) {
+ handleObj = eventType[ j ];
+
+ if ( all || namespace.test( handleObj.namespace ) ) {
+ jQuery.event.remove( elem, origType, handleObj.handler, j );
+ eventType.splice( j--, 1 );
+ }
+ }
+
+ continue;
+ }
+
+ special = jQuery.event.special[ type ] || {};
+
+ for ( j = pos || 0; j < eventType.length; j++ ) {
+ handleObj = eventType[ j ];
+
+ if ( handler.guid === handleObj.guid ) {
+ // remove the given handler for the given type
+ if ( all || namespace.test( handleObj.namespace ) ) {
+ if ( pos == null ) {
+ eventType.splice( j--, 1 );
+ }
+
+ if ( special.remove ) {
+ special.remove.call( elem, handleObj );
+ }
+ }
+
+ if ( pos != null ) {
+ break;
+ }
+ }
+ }
+
+ // remove generic event handler if no more handlers exist
+ if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
+ if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
+ jQuery.removeEvent( elem, type, elemData.handle );
+ }
+
+ ret = null;
+ delete events[ type ];
+ }
+ }
+
+ // Remove the expando if it's no longer used
+ if ( jQuery.isEmptyObject( events ) ) {
+ var handle = elemData.handle;
+ if ( handle ) {
+ handle.elem = null;
+ }
+
+ delete elemData.events;
+ delete elemData.handle;
+
+ if ( typeof elemData === "function" ) {
+ jQuery.removeData( elem, eventKey, true );
+
+ } else if ( jQuery.isEmptyObject( elemData ) ) {
+ jQuery.removeData( elem, undefined, true );
+ }
+ }
+ },
+
+ // bubbling is internal
+ trigger: function( event, data, elem /*, bubbling */ ) {
+ // Event object or event type
+ var type = event.type || event,
+ bubbling = arguments[3];
+
+ if ( !bubbling ) {
+ event = typeof event === "object" ?
+ // jQuery.Event object
+ event[ jQuery.expando ] ? event :
+ // Object literal
+ jQuery.extend( jQuery.Event(type), event ) :
+ // Just the event type (string)
+ jQuery.Event(type);
+
+ if ( type.indexOf("!") >= 0 ) {
+ event.type = type = type.slice(0, -1);
+ event.exclusive = true;
+ }
+
+ // Handle a global trigger
+ if ( !elem ) {
+ // Don't bubble custom events when global (to avoid too much overhead)
+ event.stopPropagation();
+
+ // Only trigger if we've ever bound an event for it
+ if ( jQuery.event.global[ type ] ) {
+ // XXX This code smells terrible. event.js should not be directly
+ // inspecting the data cache
+ jQuery.each( jQuery.cache, function() {
+ // internalKey variable is just used to make it easier to find
+ // and potentially change this stuff later; currently it just
+ // points to jQuery.expando
+ var internalKey = jQuery.expando,
+ internalCache = this[ internalKey ];
+ if ( internalCache && internalCache.events && internalCache.events[type] ) {
+ jQuery.event.trigger( event, data, internalCache.handle.elem );
+ }
+ });
+ }
+ }
+
+ // Handle triggering a single element
+
+ // don't do events on text and comment nodes
+ if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
+ return undefined;
+ }
+
+ // Clean up in case it is reused
+ event.result = undefined;
+ event.target = elem;
+
+ // Clone the incoming data, if any
+ data = jQuery.makeArray( data );
+ data.unshift( event );
+ }
+
+ event.currentTarget = elem;
+
+ // Trigger the event, it is assumed that "handle" is a function
+ var handle = elem.nodeType ?
+ jQuery._data( elem, "handle" ) :
+ (jQuery._data( elem, eventKey ) || {}).handle;
+
+ if ( handle ) {
+ handle.apply( elem, data );
+ }
+
+ var parent = elem.parentNode || elem.ownerDocument;
+
+ // Trigger an inline bound script
+ try {
+ if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
+ if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
+ event.result = false;
+ event.preventDefault();
+ }
+ }
+
+ // prevent IE from throwing an error for some elements with some event types, see #3533
+ } catch (inlineError) {}
+
+ if ( !event.isPropagationStopped() && parent ) {
+ jQuery.event.trigger( event, data, parent, true );
+
+ } else if ( !event.isDefaultPrevented() ) {
+ var old,
+ target = event.target,
+ targetType = type.replace( rnamespaces, "" ),
+ isClick = jQuery.nodeName( target, "a" ) && targetType === "click",
+ special = jQuery.event.special[ targetType ] || {};
+
+ if ( (!special._default || special._default.call( elem, event ) === false) &&
+ !isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
+
+ try {
+ if ( target[ targetType ] ) {
+ // Make sure that we don't accidentally re-trigger the onFOO events
+ old = target[ "on" + targetType ];
+
+ if ( old ) {
+ target[ "on" + targetType ] = null;
+ }
+
+ jQuery.event.triggered = true;
+ target[ targetType ]();
+ }
+
+ // prevent IE from throwing an error for some elements with some event types, see #3533
+ } catch (triggerError) {}
+
+ if ( old ) {
+ target[ "on" + targetType ] = old;
+ }
+
+ jQuery.event.triggered = false;
+ }
+ }
+ },
+
+ handle: function( event ) {
+ var all, handlers, namespaces, namespace_re, events,
+ namespace_sort = [],
+ args = jQuery.makeArray( arguments );
+
+ event = args[0] = jQuery.event.fix( event || window.event );
+ event.currentTarget = this;
+
+ // Namespaced event handlers
+ all = event.type.indexOf(".") < 0 && !event.exclusive;
+
+ if ( !all ) {
+ namespaces = event.type.split(".");
+ event.type = namespaces.shift();
+ namespace_sort = namespaces.slice(0).sort();
+ namespace_re = new RegExp("(^|\\.)" + namespace_sort.join("\\.(?:.*\\.)?") + "(\\.|$)");
+ }
+
+ event.namespace = event.namespace || namespace_sort.join(".");
+
+ events = jQuery._data(this, eventKey);
+
+ if ( typeof events === "function" ) {
+ events = events.events;
+ }
+
+ handlers = (events || {})[ event.type ];
+
+ if ( events && handlers ) {
+ // Clone the handlers to prevent manipulation
+ handlers = handlers.slice(0);
+
+ for ( var j = 0, l = handlers.length; j < l; j++ ) {
+ var handleObj = handlers[ j ];
+
+ // Filter the functions by class
+ if ( all || namespace_re.test( handleObj.namespace ) ) {
+ // Pass in a reference to the handler function itself
+ // So that we can later remove it
+ event.handler = handleObj.handler;
+ event.data = handleObj.data;
+ event.handleObj = handleObj;
+
+ var ret = handleObj.handler.apply( this, args );
+
+ if ( ret !== undefined ) {
+ event.result = ret;
+ if ( ret === false ) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ }
+
+ if ( event.isImmediatePropagationStopped() ) {
+ break;
+ }
+ }
+ }
+ }
+
+ return event.result;
+ },
+
+ props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+
+ fix: function( event ) {
+ if ( event[ jQuery.expando ] ) {
+ return event;
+ }
+
+ // store a copy of the original event object
+ // and "clone" to set read-only properties
+ var originalEvent = event;
+ event = jQuery.Event( originalEvent );
+
+ for ( var i = this.props.length, prop; i; ) {
+ prop = this.props[ --i ];
+ event[ prop ] = originalEvent[ prop ];
+ }
+
+ // Fix target property, if necessary
+ if ( !event.target ) {
+ // Fixes #1925 where srcElement might not be defined either
+ event.target = event.srcElement || document;
+ }
+
+ // check if target is a textnode (safari)
+ if ( event.target.nodeType === 3 ) {
+ event.target = event.target.parentNode;
+ }
+
+ // Add relatedTarget, if necessary
+ if ( !event.relatedTarget && event.fromElement ) {
+ event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
+ }
+
+ // Calculate pageX/Y if missing and clientX/Y available
+ if ( event.pageX == null && event.clientX != null ) {
+ var doc = document.documentElement,
+ body = document.body;
+
+ event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
+ event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
+ }
+
+ // Add which for key events
+ if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
+ event.which = event.charCode != null ? event.charCode : event.keyCode;
+ }
+
+ // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
+ if ( !event.metaKey && event.ctrlKey ) {
+ event.metaKey = event.ctrlKey;
+ }
+
+ // Add which for click: 1 === left; 2 === middle; 3 === right
+ // Note: button is not normalized, so don't use it
+ if ( !event.which && event.button !== undefined ) {
+ event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
+ }
+
+ return event;
+ },
+
+ // Deprecated, use jQuery.guid instead
+ guid: 1E8,
+
+ // Deprecated, use jQuery.proxy instead
+ proxy: jQuery.proxy,
+
+ special: {
+ ready: {
+ // Make sure the ready event is setup
+ setup: jQuery.bindReady,
+ teardown: jQuery.noop
+ },
+
+ live: {
+ add: function( handleObj ) {
+ jQuery.event.add( this,
+ liveConvert( handleObj.origType, handleObj.selector ),
+ jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );
+ },
+
+ remove: function( handleObj ) {
+ jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );
+ }
+ },
+
+ beforeunload: {
+ setup: function( data, namespaces, eventHandle ) {
+ // We only want to do this special case on windows
+ if ( jQuery.isWindow( this ) ) {
+ this.onbeforeunload = eventHandle;
+ }
+ },
+
+ teardown: function( namespaces, eventHandle ) {
+ if ( this.onbeforeunload === eventHandle ) {
+ this.onbeforeunload = null;
+ }
+ }
+ }
+ }
+};
+
+jQuery.removeEvent = document.removeEventListener ?
+ function( elem, type, handle ) {
+ if ( elem.removeEventListener ) {
+ elem.removeEventListener( type, handle, false );
+ }
+ } :
+ function( elem, type, handle ) {
+ if ( elem.detachEvent ) {
+ elem.detachEvent( "on" + type, handle );
+ }
+ };
+
+jQuery.Event = function( src ) {
+ // Allow instantiation without the 'new' keyword
+ if ( !this.preventDefault ) {
+ return new jQuery.Event( src );
+ }
+
+ // Event object
+ if ( src && src.type ) {
+ this.originalEvent = src;
+ this.type = src.type;
+
+ // Events bubbling up the document may have been marked as prevented
+ // by a handler lower down the tree; reflect the correct value.
+ this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||
+ src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;
+
+ // Event type
+ } else {
+ this.type = src;
+ }
+
+ // timeStamp is buggy for some events on Firefox(#3843)
+ // So we won't rely on the native value
+ this.timeStamp = jQuery.now();
+
+ // Mark it as fixed
+ this[ jQuery.expando ] = true;
+};
+
+function returnFalse() {
+ return false;
+}
+function returnTrue() {
+ return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+ preventDefault: function() {
+ this.isDefaultPrevented = returnTrue;
+
+ var e = this.originalEvent;
+ if ( !e ) {
+ return;
+ }
+
+ // if preventDefault exists run it on the original event
+ if ( e.preventDefault ) {
+ e.preventDefault();
+
+ // otherwise set the returnValue property of the original event to false (IE)
+ } else {
+ e.returnValue = false;
+ }
+ },
+ stopPropagation: function() {
+ this.isPropagationStopped = returnTrue;
+
+ var e = this.originalEvent;
+ if ( !e ) {
+ return;
+ }
+ // if stopPropagation exists run it on the original event
+ if ( e.stopPropagation ) {
+ e.stopPropagation();
+ }
+ // otherwise set the cancelBubble property of the original event to true (IE)
+ e.cancelBubble = true;
+ },
+ stopImmediatePropagation: function() {
+ this.isImmediatePropagationStopped = returnTrue;
+ this.stopPropagation();
+ },
+ isDefaultPrevented: returnFalse,
+ isPropagationStopped: returnFalse,
+ isImmediatePropagationStopped: returnFalse
+};
+
+// Checks if an event happened on an element within another element
+// Used in jQuery.event.special.mouseenter and mouseleave handlers
+var withinElement = function( event ) {
+ // Check if mouse(over|out) are still within the same parent element
+ var parent = event.relatedTarget;
+
+ // Firefox sometimes assigns relatedTarget a XUL element
+ // which we cannot access the parentNode property of
+ try {
+ // Traverse up the tree
+ while ( parent && parent !== this ) {
+ parent = parent.parentNode;
+ }
+
+ if ( parent !== this ) {
+ // set the correct event type
+ event.type = event.data;
+
+ // handle event if we actually just moused on to a non sub-element
+ jQuery.event.handle.apply( this, arguments );
+ }
+
+ // assuming we've left the element since we most likely mousedover a xul element
+ } catch(e) { }
+},
+
+// In case of event delegation, we only need to rename the event.type,
+// liveHandler will take care of the rest.
+delegate = function( event ) {
+ event.type = event.data;
+ jQuery.event.handle.apply( this, arguments );
+};
+
+// Create mouseenter and mouseleave events
+jQuery.each({
+ mouseenter: "mouseover",
+ mouseleave: "mouseout"
+}, function( orig, fix ) {
+ jQuery.event.special[ orig ] = {
+ setup: function( data ) {
+ jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
+ },
+ teardown: function( data ) {
+ jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
+ }
+ };
+});
+
+// submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+ jQuery.event.special.submit = {
+ setup: function( data, namespaces ) {
+ if ( this.nodeName && this.nodeName.toLowerCase() !== "form" ) {
+ jQuery.event.add(this, "click.specialSubmit", function( e ) {
+ var elem = e.target,
+ type = elem.type;
+
+ if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
+ e.liveFired = undefined;
+ return trigger( "submit", this, arguments );
+ }
+ });
+
+ jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
+ var elem = e.target,
+ type = elem.type;
+
+ if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
+ e.liveFired = undefined;
+ return trigger( "submit", this, arguments );
+ }
+ });
+
+ } else {
+ return false;
+ }
+ },
+
+ teardown: function( namespaces ) {
+ jQuery.event.remove( this, ".specialSubmit" );
+ }
+ };
+
+}
+
+// change delegation, happens here so we have bind.
+if ( !jQuery.support.changeBubbles ) {
+
+ var changeFilters,
+
+ getVal = function( elem ) {
+ var type = elem.type, val = elem.value;
+
+ if ( type === "radio" || type === "checkbox" ) {
+ val = elem.checked;
+
+ } else if ( type === "select-multiple" ) {
+ val = elem.selectedIndex > -1 ?
+ jQuery.map( elem.options, function( elem ) {
+ return elem.selected;
+ }).join("-") :
+ "";
+
+ } else if ( elem.nodeName.toLowerCase() === "select" ) {
+ val = elem.selectedIndex;
+ }
+
+ return val;
+ },
+
+ testChange = function testChange( e ) {
+ var elem = e.target, data, val;
+
+ if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
+ return;
+ }
+
+ data = jQuery._data( elem, "_change_data" );
+ val = getVal(elem);
+
+ // the current data will be also retrieved by beforeactivate
+ if ( e.type !== "focusout" || elem.type !== "radio" ) {
+ jQuery._data( elem, "_change_data", val );
+ }
+
+ if ( data === undefined || val === data ) {
+ return;
+ }
+
+ if ( data != null || val ) {
+ e.type = "change";
+ e.liveFired = undefined;
+ return jQuery.event.trigger( e, arguments[1], elem );
+ }
+ };
+
+ jQuery.event.special.change = {
+ filters: {
+ focusout: testChange,
+
+ beforedeactivate: testChange,
+
+ click: function( e ) {
+ var elem = e.target, type = elem.type;
+
+ if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
+ return testChange.call( this, e );
+ }
+ },
+
+ // Change has to be called before submit
+ // Keydown will be called before keypress, which is used in submit-event delegation
+ keydown: function( e ) {
+ var elem = e.target, type = elem.type;
+
+ if ( (e.keyCode === 13 && elem.nodeName.toLowerCase() !== "textarea") ||
+ (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
+ type === "select-multiple" ) {
+ return testChange.call( this, e );
+ }
+ },
+
+ // Beforeactivate happens also before the previous element is blurred
+ // with this event you can't trigger a change event, but you can store
+ // information
+ beforeactivate: function( e ) {
+ var elem = e.target;
+ jQuery._data( elem, "_change_data", getVal(elem) );
+ }
+ },
+
+ setup: function( data, namespaces ) {
+ if ( this.type === "file" ) {
+ return false;
+ }
+
+ for ( var type in changeFilters ) {
+ jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
+ }
+
+ return rformElems.test( this.nodeName );
+ },
+
+ teardown: function( namespaces ) {
+ jQuery.event.remove( this, ".specialChange" );
+
+ return rformElems.test( this.nodeName );
+ }
+ };
+
+ changeFilters = jQuery.event.special.change.filters;
+
+ // Handle when the input is .focus()'d
+ changeFilters.focus = changeFilters.beforeactivate;
+}
+
+function trigger( type, elem, args ) {
+ args[0].type = type;
+ return jQuery.event.handle.apply( elem, args );
+}
+
+// Create "bubbling" focus and blur events
+if ( document.addEventListener ) {
+ jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+ jQuery.event.special[ fix ] = {
+ setup: function() {
+ this.addEventListener( orig, handler, true );
+ },
+ teardown: function() {
+ this.removeEventListener( orig, handler, true );
+ }
+ };
+
+ function handler( e ) {
+ e = jQuery.event.fix( e );
+ e.type = fix;
+ return jQuery.event.handle.call( this, e );
+ }
+ });
+}
+
+jQuery.each(["bind", "one"], function( i, name ) {
+ jQuery.fn[ name ] = function( type, data, fn ) {
+ // Handle object literals
+ if ( typeof type === "object" ) {
+ for ( var key in type ) {
+ this[ name ](key, data, type[key], fn);
+ }
+ return this;
+ }
+
+ if ( jQuery.isFunction( data ) || data === false ) {
+ fn = data;
+ data = undefined;
+ }
+
+ var handler = name === "one" ? jQuery.proxy( fn, function( event ) {
+ jQuery( this ).unbind( event, handler );
+ return fn.apply( this, arguments );
+ }) : fn;
+
+ if ( type === "unload" && name !== "one" ) {
+ this.one( type, data, fn );
+
+ } else {
+ for ( var i = 0, l = this.length; i < l; i++ ) {
+ jQuery.event.add( this[i], type, handler, data );
+ }
+ }
+
+ return this;
+ };
+});
+
+jQuery.fn.extend({
+ unbind: function( type, fn ) {
+ // Handle object literals
+ if ( typeof type === "object" && !type.preventDefault ) {
+ for ( var key in type ) {
+ this.unbind(key, type[key]);
+ }
+
+ } else {
+ for ( var i = 0, l = this.length; i < l; i++ ) {
+ jQuery.event.remove( this[i], type, fn );
+ }
+ }
+
+ return this;
+ },
+
+ delegate: function( selector, types, data, fn ) {
+ return this.live( types, data, fn, selector );
+ },
+
+ undelegate: function( selector, types, fn ) {
+ if ( arguments.length === 0 ) {
+ return this.unbind( "live" );
+
+ } else {
+ return this.die( types, null, fn, selector );
+ }
+ },
+
+ trigger: function( type, data ) {
+ return this.each(function() {
+ jQuery.event.trigger( type, data, this );
+ });
+ },
+
+ triggerHandler: function( type, data ) {
+ if ( this[0] ) {
+ var event = jQuery.Event( type );
+ event.preventDefault();
+ event.stopPropagation();
+ jQuery.event.trigger( event, data, this[0] );
+ return event.result;
+ }
+ },
+
+ toggle: function( fn ) {
+ // Save reference to arguments for access in closure
+ var args = arguments,
+ i = 1;
+
+ // link all the functions, so any of them can unbind this click handler
+ while ( i < args.length ) {
+ jQuery.proxy( fn, args[ i++ ] );
+ }
+
+ return this.click( jQuery.proxy( fn, function( event ) {
+ // Figure out which function to execute
+ var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+ jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+ // Make sure that clicks stop
+ event.preventDefault();
+
+ // and execute the function
+ return args[ lastToggle ].apply( this, arguments ) || false;
+ }));
+ },
+
+ hover: function( fnOver, fnOut ) {
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+ }
+});
+
+var liveMap = {
+ focus: "focusin",
+ blur: "focusout",
+ mouseenter: "mouseover",
+ mouseleave: "mouseout"
+};
+
+jQuery.each(["live", "die"], function( i, name ) {
+ jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
+ var type, i = 0, match, namespaces, preType,
+ selector = origSelector || this.selector,
+ context = origSelector ? this : jQuery( this.context );
+
+ if ( typeof types === "object" && !types.preventDefault ) {
+ for ( var key in types ) {
+ context[ name ]( key, data, types[key], selector );
+ }
+
+ return this;
+ }
+
+ if ( jQuery.isFunction( data ) ) {
+ fn = data;
+ data = undefined;
+ }
+
+ types = (types || "").split(" ");
+
+ while ( (type = types[ i++ ]) != null ) {
+ match = rnamespaces.exec( type );
+ namespaces = "";
+
+ if ( match ) {
+ namespaces = match[0];
+ type = type.replace( rnamespaces, "" );
+ }
+
+ if ( type === "hover" ) {
+ types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
+ continue;
+ }
+
+ preType = type;
+
+ if ( type === "focus" || type === "blur" ) {
+ types.push( liveMap[ type ] + namespaces );
+ type = type + namespaces;
+
+ } else {
+ type = (liveMap[ type ] || type) + namespaces;
+ }
+
+ if ( name === "live" ) {
+ // bind live handler
+ for ( var j = 0, l = context.length; j < l; j++ ) {
+ jQuery.event.add( context[j], "live." + liveConvert( type, selector ),
+ { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
+ }
+
+ } else {
+ // unbind live handler
+ context.unbind( "live." + liveConvert( type, selector ), fn );
+ }
+ }
+
+ return this;
+ };
+});
+
+function liveHandler( event ) {
+ var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
+ elems = [],
+ selectors = [],
+ events = jQuery._data( this, eventKey );
+
+ if ( typeof events === "function" ) {
+ events = events.events;
+ }
+
+ // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)
+ if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
+ return;
+ }
+
+ if ( event.namespace ) {
+ namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
+ }
+
+ event.liveFired = this;
+
+ var live = events.live.slice(0);
+
+ for ( j = 0; j < live.length; j++ ) {
+ handleObj = live[j];
+
+ if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
+ selectors.push( handleObj.selector );
+
+ } else {
+ live.splice( j--, 1 );
+ }
+ }
+
+ match = jQuery( event.target ).closest( selectors, event.currentTarget );
+
+ for ( i = 0, l = match.length; i < l; i++ ) {
+ close = match[i];
+
+ for ( j = 0; j < live.length; j++ ) {
+ handleObj = live[j];
+
+ if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) ) {
+ elem = close.elem;
+ related = null;
+
+ // Those two events require additional checking
+ if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
+ event.type = handleObj.preType;
+ related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
+ }
+
+ if ( !related || related !== elem ) {
+ elems.push({ elem: elem, handleObj: handleObj, level: close.level });
+ }
+ }
+ }
+ }
+
+ for ( i = 0, l = elems.length; i < l; i++ ) {
+ match = elems[i];
+
+ if ( maxLevel && match.level > maxLevel ) {
+ break;
+ }
+
+ event.currentTarget = match.elem;
+ event.data = match.handleObj.data;
+ event.handleObj = match.handleObj;
+
+ ret = match.handleObj.origHandler.apply( match.elem, arguments );
+
+ if ( ret === false || event.isPropagationStopped() ) {
+ maxLevel = match.level;
+
+ if ( ret === false ) {
+ stop = false;
+ }
+ if ( event.isImmediatePropagationStopped() ) {
+ break;
+ }
+ }
+ }
+
+ return stop;
+}
+
+function liveConvert( type, selector ) {
+ return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspace, "&");
+}
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+ "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
+
+ // Handle event binding
+ jQuery.fn[ name ] = function( data, fn ) {
+ if ( fn == null ) {
+ fn = data;
+ data = null;
+ }
+
+ return arguments.length > 0 ?
+ this.bind( name, data, fn ) :
+ this.trigger( name );
+ };
+
+ if ( jQuery.attrFn ) {
+ jQuery.attrFn[ name ] = true;
+ }
+});
+
+
+/*!
+ * Sizzle CSS Selector Engine
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ * More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+ done = 0,
+ toString = Object.prototype.toString,
+ hasDuplicate = false,
+ baseHasDuplicate = true;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+// Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+ baseHasDuplicate = false;
+ return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+ results = results || [];
+ context = context || document;
+
+ var origContext = context;
+
+ if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+ return [];
+ }
+
+ if ( !selector || typeof selector !== "string" ) {
+ return results;
+ }
+
+ var m, set, checkSet, extra, ret, cur, pop, i,
+ prune = true,
+ contextXML = Sizzle.isXML( context ),
+ parts = [],
+ soFar = selector;
+
+ // Reset the position of the chunker regexp (start from head)
+ do {
+ chunker.exec( "" );
+ m = chunker.exec( soFar );
+
+ if ( m ) {
+ soFar = m[3];
+
+ parts.push( m[1] );
+
+ if ( m[2] ) {
+ extra = m[3];
+ break;
+ }
+ }
+ } while ( m );
+
+ if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+ if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+ set = posProcess( parts[0] + parts[1], context );
+
+ } else {
+ set = Expr.relative[ parts[0] ] ?
+ [ context ] :
+ Sizzle( parts.shift(), context );
+
+ while ( parts.length ) {
+ selector = parts.shift();
+
+ if ( Expr.relative[ selector ] ) {
+ selector += parts.shift();
+ }
+
+ set = posProcess( selector, set );
+ }
+ }
+
+ } else {
+ // Take a shortcut and set the context if the root selector is an ID
+ // (but not if it'll be faster if the inner selector is an ID)
+ if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+ Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+ ret = Sizzle.find( parts.shift(), context, contextXML );
+ context = ret.expr ?
+ Sizzle.filter( ret.expr, ret.set )[0] :
+ ret.set[0];
+ }
+
+ if ( context ) {
+ ret = seed ?
+ { expr: parts.pop(), set: makeArray(seed) } :
+ Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+ set = ret.expr ?
+ Sizzle.filter( ret.expr, ret.set ) :
+ ret.set;
+
+ if ( parts.length > 0 ) {
+ checkSet = makeArray( set );
+
+ } else {
+ prune = false;
+ }
+
+ while ( parts.length ) {
+ cur = parts.pop();
+ pop = cur;
+
+ if ( !Expr.relative[ cur ] ) {
+ cur = "";
+ } else {
+ pop = parts.pop();
+ }
+
+ if ( pop == null ) {
+ pop = context;
+ }
+
+ Expr.relative[ cur ]( checkSet, pop, contextXML );
+ }
+
+ } else {
+ checkSet = parts = [];
+ }
+ }
+
+ if ( !checkSet ) {
+ checkSet = set;
+ }
+
+ if ( !checkSet ) {
+ Sizzle.error( cur || selector );
+ }
+
+ if ( toString.call(checkSet) === "[object Array]" ) {
+ if ( !prune ) {
+ results.push.apply( results, checkSet );
+
+ } else if ( context && context.nodeType === 1 ) {
+ for ( i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+ results.push( set[i] );
+ }
+ }
+
+ } else {
+ for ( i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+ results.push( set[i] );
+ }
+ }
+ }
+
+ } else {
+ makeArray( checkSet, results );
+ }
+
+ if ( extra ) {
+ Sizzle( extra, origContext, results, seed );
+ Sizzle.uniqueSort( results );
+ }
+
+ return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+ if ( sortOrder ) {
+ hasDuplicate = baseHasDuplicate;
+ results.sort( sortOrder );
+
+ if ( hasDuplicate ) {
+ for ( var i = 1; i < results.length; i++ ) {
+ if ( results[i] === results[ i - 1 ] ) {
+ results.splice( i--, 1 );
+ }
+ }
+ }
+ }
+
+ return results;
+};
+
+Sizzle.matches = function( expr, set ) {
+ return Sizzle( expr, null, null, set );
+};
+
+Sizzle.matchesSelector = function( node, expr ) {
+ return Sizzle( expr, null, null, [node] ).length > 0;
+};
+
+Sizzle.find = function( expr, context, isXML ) {
+ var set;
+
+ if ( !expr ) {
+ return [];
+ }
+
+ for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
+ var match,
+ type = Expr.order[i];
+
+ if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+ var left = match[1];
+ match.splice( 1, 1 );
+
+ if ( left.substr( left.length - 1 ) !== "\\" ) {
+ match[1] = (match[1] || "").replace(/\\/g, "");
+ set = Expr.find[ type ]( match, context, isXML );
+
+ if ( set != null ) {
+ expr = expr.replace( Expr.match[ type ], "" );
+ break;
+ }
+ }
+ }
+ }
+
+ if ( !set ) {
+ set = typeof context.getElementsByTagName !== "undefined" ?
+ context.getElementsByTagName( "*" ) :
+ [];
+ }
+
+ return { set: set, expr: expr };
+};
+
+Sizzle.filter = function( expr, set, inplace, not ) {
+ var match, anyFound,
+ old = expr,
+ result = [],
+ curLoop = set,
+ isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+ while ( expr && set.length ) {
+ for ( var type in Expr.filter ) {
+ if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+ var found, item,
+ filter = Expr.filter[ type ],
+ left = match[1];
+
+ anyFound = false;
+
+ match.splice(1,1);
+
+ if ( left.substr( left.length - 1 ) === "\\" ) {
+ continue;
+ }
+
+ if ( curLoop === result ) {
+ result = [];
+ }
+
+ if ( Expr.preFilter[ type ] ) {
+ match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+ if ( !match ) {
+ anyFound = found = true;
+
+ } else if ( match === true ) {
+ continue;
+ }
+ }
+
+ if ( match ) {
+ for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
+ if ( item ) {
+ found = filter( item, match, i, curLoop );
+ var pass = not ^ !!found;
+
+ if ( inplace && found != null ) {
+ if ( pass ) {
+ anyFound = true;
+
+ } else {
+ curLoop[i] = false;
+ }
+
+ } else if ( pass ) {
+ result.push( item );
+ anyFound = true;
+ }
+ }
+ }
+ }
+
+ if ( found !== undefined ) {
+ if ( !inplace ) {
+ curLoop = result;
+ }
+
+ expr = expr.replace( Expr.match[ type ], "" );
+
+ if ( !anyFound ) {
+ return [];
+ }
+
+ break;
+ }
+ }
+ }
+
+ // Improper expression
+ if ( expr === old ) {
+ if ( anyFound == null ) {
+ Sizzle.error( expr );
+
+ } else {
+ break;
+ }
+ }
+
+ old = expr;
+ }
+
+ return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+ throw "Syntax error, unrecognized expression: " + msg;
+};
+
+var Expr = Sizzle.selectors = {
+ order: [ "ID", "NAME", "TAG" ],
+
+ match: {
+ ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+ CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+ NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+ ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+ TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+ CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+ POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+ PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+ },
+
+ leftMatch: {},
+
+ attrMap: {
+ "class": "className",
+ "for": "htmlFor"
+ },
+
+ attrHandle: {
+ href: function( elem ) {
+ return elem.getAttribute( "href" );
+ }
+ },
+
+ relative: {
+ "+": function(checkSet, part){
+ var isPartStr = typeof part === "string",
+ isTag = isPartStr && !/\W/.test( part ),
+ isPartStrNotTag = isPartStr && !isTag;
+
+ if ( isTag ) {
+ part = part.toLowerCase();
+ }
+
+ for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+ if ( (elem = checkSet[i]) ) {
+ while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+ checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+ elem || false :
+ elem === part;
+ }
+ }
+
+ if ( isPartStrNotTag ) {
+ Sizzle.filter( part, checkSet, true );
+ }
+ },
+
+ ">": function( checkSet, part ) {
+ var elem,
+ isPartStr = typeof part === "string",
+ i = 0,
+ l = checkSet.length;
+
+ if ( isPartStr && !/\W/.test( part ) ) {
+ part = part.toLowerCase();
+
+ for ( ; i < l; i++ ) {
+ elem = checkSet[i];
+
+ if ( elem ) {
+ var parent = elem.parentNode;
+ checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+ }
+ }
+
+ } else {
+ for ( ; i < l; i++ ) {
+ elem = checkSet[i];
+
+ if ( elem ) {
+ checkSet[i] = isPartStr ?
+ elem.parentNode :
+ elem.parentNode === part;
+ }
+ }
+
+ if ( isPartStr ) {
+ Sizzle.filter( part, checkSet, true );
+ }
+ }
+ },
+
+ "": function(checkSet, part, isXML){
+ var nodeCheck,
+ doneName = done++,
+ checkFn = dirCheck;
+
+ if ( typeof part === "string" && !/\W/.test(part) ) {
+ part = part.toLowerCase();
+ nodeCheck = part;
+ checkFn = dirNodeCheck;
+ }
+
+ checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+ },
+
+ "~": function( checkSet, part, isXML ) {
+ var nodeCheck,
+ doneName = done++,
+ checkFn = dirCheck;
+
+ if ( typeof part === "string" && !/\W/.test( part ) ) {
+ part = part.toLowerCase();
+ nodeCheck = part;
+ checkFn = dirNodeCheck;
+ }
+
+ checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
+ }
+ },
+
+ find: {
+ ID: function( match, context, isXML ) {
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ return m && m.parentNode ? [m] : [];
+ }
+ },
+
+ NAME: function( match, context ) {
+ if ( typeof context.getElementsByName !== "undefined" ) {
+ var ret = [],
+ results = context.getElementsByName( match[1] );
+
+ for ( var i = 0, l = results.length; i < l; i++ ) {
+ if ( results[i].getAttribute("name") === match[1] ) {
+ ret.push( results[i] );
+ }
+ }
+
+ return ret.length === 0 ? null : ret;
+ }
+ },
+
+ TAG: function( match, context ) {
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
+ return context.getElementsByTagName( match[1] );
+ }
+ }
+ },
+ preFilter: {
+ CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+ match = " " + match[1].replace(/\\/g, "") + " ";
+
+ if ( isXML ) {
+ return match;
+ }
+
+ for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+ if ( elem ) {
+ if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+ if ( !inplace ) {
+ result.push( elem );
+ }
+
+ } else if ( inplace ) {
+ curLoop[i] = false;
+ }
+ }
+ }
+
+ return false;
+ },
+
+ ID: function( match ) {
+ return match[1].replace(/\\/g, "");
+ },
+
+ TAG: function( match, curLoop ) {
+ return match[1].toLowerCase();
+ },
+
+ CHILD: function( match ) {
+ if ( match[1] === "nth" ) {
+ if ( !match[2] ) {
+ Sizzle.error( match[0] );
+ }
+
+ match[2] = match[2].replace(/^\+|\s*/g, '');
+
+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+ var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+ match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+ !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+ // calculate the numbers (first)n+(last) including if they are negative
+ match[2] = (test[1] + (test[2] || 1)) - 0;
+ match[3] = test[3] - 0;
+ }
+ else if ( match[2] ) {
+ Sizzle.error( match[0] );
+ }
+
+ // TODO: Move to normal caching system
+ match[0] = done++;
+
+ return match;
+ },
+
+ ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+ var name = match[1] = match[1].replace(/\\/g, "");
+
+ if ( !isXML && Expr.attrMap[name] ) {
+ match[1] = Expr.attrMap[name];
+ }
+
+ // Handle if an un-quoted value was used
+ match[4] = ( match[4] || match[5] || "" ).replace(/\\/g, "");
+
+ if ( match[2] === "~=" ) {
+ match[4] = " " + match[4] + " ";
+ }
+
+ return match;
+ },
+
+ PSEUDO: function( match, curLoop, inplace, result, not ) {
+ if ( match[1] === "not" ) {
+ // If we're dealing with a complex expression, or a simple one
+ if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+ match[3] = Sizzle(match[3], null, null, curLoop);
+
+ } else {
+ var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+
+ if ( !inplace ) {
+ result.push.apply( result, ret );
+ }
+
+ return false;
+ }
+
+ } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+ return true;
+ }
+
+ return match;
+ },
+
+ POS: function( match ) {
+ match.unshift( true );
+
+ return match;
+ }
+ },
+
+ filters: {
+ enabled: function( elem ) {
+ return elem.disabled === false && elem.type !== "hidden";
+ },
+
+ disabled: function( elem ) {
+ return elem.disabled === true;
+ },
+
+ checked: function( elem ) {
+ return elem.checked === true;
+ },
+
+ selected: function( elem ) {
+ // Accessing this property makes selected-by-default
+ // options in Safari work properly
+ elem.parentNode.selectedIndex;
+
+ return elem.selected === true;
+ },
+
+ parent: function( elem ) {
+ return !!elem.firstChild;
+ },
+
+ empty: function( elem ) {
+ return !elem.firstChild;
+ },
+
+ has: function( elem, i, match ) {
+ return !!Sizzle( match[3], elem ).length;
+ },
+
+ header: function( elem ) {
+ return (/h\d/i).test( elem.nodeName );
+ },
+
+ text: function( elem ) {
+ return "text" === elem.type;
+ },
+ radio: function( elem ) {
+ return "radio" === elem.type;
+ },
+
+ checkbox: function( elem ) {
+ return "checkbox" === elem.type;
+ },
+
+ file: function( elem ) {
+ return "file" === elem.type;
+ },
+ password: function( elem ) {
+ return "password" === elem.type;
+ },
+
+ submit: function( elem ) {
+ return "submit" === elem.type;
+ },
+
+ image: function( elem ) {
+ return "image" === elem.type;
+ },
+
+ reset: function( elem ) {
+ return "reset" === elem.type;
+ },
+
+ button: function( elem ) {
+ return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
+ },
+
+ input: function( elem ) {
+ return (/input|select|textarea|button/i).test( elem.nodeName );
+ }
+ },
+ setFilters: {
+ first: function( elem, i ) {
+ return i === 0;
+ },
+
+ last: function( elem, i, match, array ) {
+ return i === array.length - 1;
+ },
+
+ even: function( elem, i ) {
+ return i % 2 === 0;
+ },
+
+ odd: function( elem, i ) {
+ return i % 2 === 1;
+ },
+
+ lt: function( elem, i, match ) {
+ return i < match[3] - 0;
+ },
+
+ gt: function( elem, i, match ) {
+ return i > match[3] - 0;
+ },
+
+ nth: function( elem, i, match ) {
+ return match[3] - 0 === i;
+ },
+
+ eq: function( elem, i, match ) {
+ return match[3] - 0 === i;
+ }
+ },
+ filter: {
+ PSEUDO: function( elem, match, i, array ) {
+ var name = match[1],
+ filter = Expr.filters[ name ];
+
+ if ( filter ) {
+ return filter( elem, i, match, array );
+
+ } else if ( name === "contains" ) {
+ return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
+
+ } else if ( name === "not" ) {
+ var not = match[3];
+
+ for ( var j = 0, l = not.length; j < l; j++ ) {
+ if ( not[j] === elem ) {
+ return false;
+ }
+ }
+
+ return true;
+
+ } else {
+ Sizzle.error( name );
+ }
+ },
+
+ CHILD: function( elem, match ) {
+ var type = match[1],
+ node = elem;
+
+ switch ( type ) {
+ case "only":
+ case "first":
+ while ( (node = node.previousSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
+
+ if ( type === "first" ) {
+ return true;
+ }
+
+ node = elem;
+
+ case "last":
+ while ( (node = node.nextSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
+
+ return true;
+
+ case "nth":
+ var first = match[2],
+ last = match[3];
+
+ if ( first === 1 && last === 0 ) {
+ return true;
+ }
+
+ var doneName = match[0],
+ parent = elem.parentNode;
+
+ if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
+ var count = 0;
+
+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
+ if ( node.nodeType === 1 ) {
+ node.nodeIndex = ++count;
+ }
+ }
+
+ parent.sizcache = doneName;
+ }
+
+ var diff = elem.nodeIndex - last;
+
+ if ( first === 0 ) {
+ return diff === 0;
+
+ } else {
+ return ( diff % first === 0 && diff / first >= 0 );
+ }
+ }
+ },
+
+ ID: function( elem, match ) {
+ return elem.nodeType === 1 && elem.getAttribute("id") === match;
+ },
+
+ TAG: function( elem, match ) {
+ return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
+ },
+
+ CLASS: function( elem, match ) {
+ return (" " + (elem.className || elem.getAttribute("class")) + " ")
+ .indexOf( match ) > -1;
+ },
+
+ ATTR: function( elem, match ) {
+ var name = match[1],
+ result = Expr.attrHandle[ name ] ?
+ Expr.attrHandle[ name ]( elem ) :
+ elem[ name ] != null ?
+ elem[ name ] :
+ elem.getAttribute( name ),
+ value = result + "",
+ type = match[2],
+ check = match[4];
+
+ return result == null ?
+ type === "!=" :
+ type === "=" ?
+ value === check :
+ type === "*=" ?
+ value.indexOf(check) >= 0 :
+ type === "~=" ?
+ (" " + value + " ").indexOf(check) >= 0 :
+ !check ?
+ value && result !== false :
+ type === "!=" ?
+ value !== check :
+ type === "^=" ?
+ value.indexOf(check) === 0 :
+ type === "$=" ?
+ value.substr(value.length - check.length) === check :
+ type === "|=" ?
+ value === check || value.substr(0, check.length + 1) === check + "-" :
+ false;
+ },
+
+ POS: function( elem, match, i, array ) {
+ var name = match[2],
+ filter = Expr.setFilters[ name ];
+
+ if ( filter ) {
+ return filter( elem, i, match, array );
+ }
+ }
+ }
+};
+
+var origPOS = Expr.match.POS,
+ fescape = function(all, num){
+ return "\\" + (num - 0 + 1);
+ };
+
+for ( var type in Expr.match ) {
+ Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+ Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+
+var makeArray = function( array, results ) {
+ array = Array.prototype.slice.call( array, 0 );
+
+ if ( results ) {
+ results.push.apply( results, array );
+ return results;
+ }
+
+ return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+ Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+
+// Provide a fallback method if it does not work
+} catch( e ) {
+ makeArray = function( array, results ) {
+ var i = 0,
+ ret = results || [];
+
+ if ( toString.call(array) === "[object Array]" ) {
+ Array.prototype.push.apply( ret, array );
+
+ } else {
+ if ( typeof array.length === "number" ) {
+ for ( var l = array.length; i < l; i++ ) {
+ ret.push( array[i] );
+ }
+
+ } else {
+ for ( ; array[i]; i++ ) {
+ ret.push( array[i] );
+ }
+ }
+ }
+
+ return ret;
+ };
+}
+
+var sortOrder, siblingCheck;
+
+if ( document.documentElement.compareDocumentPosition ) {
+ sortOrder = function( a, b ) {
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+ }
+
+ if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+ return a.compareDocumentPosition ? -1 : 1;
+ }
+
+ return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+ };
+
+} else {
+ sortOrder = function( a, b ) {
+ var al, bl,
+ ap = [],
+ bp = [],
+ aup = a.parentNode,
+ bup = b.parentNode,
+ cur = aup;
+
+ // The nodes are identical, we can exit early
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+
+ // If the nodes are siblings (or identical) we can do a quick check
+ } else if ( aup === bup ) {
+ return siblingCheck( a, b );
+
+ // If no parents were found then the nodes are disconnected
+ } else if ( !aup ) {
+ return -1;
+
+ } else if ( !bup ) {
+ return 1;
+ }
+
+ // Otherwise they're somewhere else in the tree so we need
+ // to build up a full list of the parentNodes for comparison
+ while ( cur ) {
+ ap.unshift( cur );
+ cur = cur.parentNode;
+ }
+
+ cur = bup;
+
+ while ( cur ) {
+ bp.unshift( cur );
+ cur = cur.parentNode;
+ }
+
+ al = ap.length;
+ bl = bp.length;
+
+ // Start walking down the tree looking for a discrepancy
+ for ( var i = 0; i < al && i < bl; i++ ) {
+ if ( ap[i] !== bp[i] ) {
+ return siblingCheck( ap[i], bp[i] );
+ }
+ }
+
+ // We ended someplace up the tree so do a sibling check
+ return i === al ?
+ siblingCheck( a, bp[i], -1 ) :
+ siblingCheck( ap[i], b, 1 );
+ };
+
+ siblingCheck = function( a, b, ret ) {
+ if ( a === b ) {
+ return ret;
+ }
+
+ var cur = a.nextSibling;
+
+ while ( cur ) {
+ if ( cur === b ) {
+ return -1;
+ }
+
+ cur = cur.nextSibling;
+ }
+
+ return 1;
+ };
+}
+
+// Utility function for retreiving the text value of an array of DOM nodes
+Sizzle.getText = function( elems ) {
+ var ret = "", elem;
+
+ for ( var i = 0; elems[i]; i++ ) {
+ elem = elems[i];
+
+ // Get the text from text nodes and CDATA nodes
+ if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
+ ret += elem.nodeValue;
+
+ // Traverse everything else, except comment nodes
+ } else if ( elem.nodeType !== 8 ) {
+ ret += Sizzle.getText( elem.childNodes );
+ }
+ }
+
+ return ret;
+};
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+ // We're going to inject a fake input element with a specified name
+ var form = document.createElement("div"),
+ id = "script" + (new Date()).getTime(),
+ root = document.documentElement;
+
+ form.innerHTML = "";
+
+ // Inject it into the root element, check its status, and remove it quickly
+ root.insertBefore( form, root.firstChild );
+
+ // The workaround has to do additional checks after a getElementById
+ // Which slows things down for other browsers (hence the branching)
+ if ( document.getElementById( id ) ) {
+ Expr.find.ID = function( match, context, isXML ) {
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+
+ return m ?
+ m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+ [m] :
+ undefined :
+ [];
+ }
+ };
+
+ Expr.filter.ID = function( elem, match ) {
+ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+
+ return elem.nodeType === 1 && node && node.nodeValue === match;
+ };
+ }
+
+ root.removeChild( form );
+
+ // release memory in IE
+ root = form = null;
+})();
+
+(function(){
+ // Check to see if the browser returns only elements
+ // when doing getElementsByTagName("*")
+
+ // Create a fake element
+ var div = document.createElement("div");
+ div.appendChild( document.createComment("") );
+
+ // Make sure no comments are found
+ if ( div.getElementsByTagName("*").length > 0 ) {
+ Expr.find.TAG = function( match, context ) {
+ var results = context.getElementsByTagName( match[1] );
+
+ // Filter out possible comments
+ if ( match[1] === "*" ) {
+ var tmp = [];
+
+ for ( var i = 0; results[i]; i++ ) {
+ if ( results[i].nodeType === 1 ) {
+ tmp.push( results[i] );
+ }
+ }
+
+ results = tmp;
+ }
+
+ return results;
+ };
+ }
+
+ // Check to see if an attribute returns normalized href attributes
+ div.innerHTML = "";
+
+ if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+ div.firstChild.getAttribute("href") !== "#" ) {
+
+ Expr.attrHandle.href = function( elem ) {
+ return elem.getAttribute( "href", 2 );
+ };
+ }
+
+ // release memory in IE
+ div = null;
+})();
+
+if ( document.querySelectorAll ) {
+ (function(){
+ var oldSizzle = Sizzle,
+ div = document.createElement("div"),
+ id = "__sizzle__";
+
+ div.innerHTML = "";
+
+ // Safari can't handle uppercase or unicode characters when
+ // in quirks mode.
+ if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+ return;
+ }
+
+ Sizzle = function( query, context, extra, seed ) {
+ context = context || document;
+
+ // Only use querySelectorAll on non-XML documents
+ // (ID selectors don't work in non-HTML documents)
+ if ( !seed && !Sizzle.isXML(context) ) {
+ // See if we find a selector to speed up
+ var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+
+ if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+ // Speed-up: Sizzle("TAG")
+ if ( match[1] ) {
+ return makeArray( context.getElementsByTagName( query ), extra );
+
+ // Speed-up: Sizzle(".CLASS")
+ } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+ return makeArray( context.getElementsByClassName( match[2] ), extra );
+ }
+ }
+
+ if ( context.nodeType === 9 ) {
+ // Speed-up: Sizzle("body")
+ // The body element only exists once, optimize finding it
+ if ( query === "body" && context.body ) {
+ return makeArray( [ context.body ], extra );
+
+ // Speed-up: Sizzle("#ID")
+ } else if ( match && match[3] ) {
+ var elem = context.getElementById( match[3] );
+
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ if ( elem && elem.parentNode ) {
+ // Handle the case where IE and Opera return items
+ // by name instead of ID
+ if ( elem.id === match[3] ) {
+ return makeArray( [ elem ], extra );
+ }
+
+ } else {
+ return makeArray( [], extra );
+ }
+ }
+
+ try {
+ return makeArray( context.querySelectorAll(query), extra );
+ } catch(qsaError) {}
+
+ // qSA works strangely on Element-rooted queries
+ // We can work around this by specifying an extra ID on the root
+ // and working up from there (Thanks to Andrew Dupont for the technique)
+ // IE 8 doesn't work on object elements
+ } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+ var old = context.getAttribute( "id" ),
+ nid = old || id,
+ hasParent = context.parentNode,
+ relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+ if ( !old ) {
+ context.setAttribute( "id", nid );
+ } else {
+ nid = nid.replace( /'/g, "\\$&" );
+ }
+ if ( relativeHierarchySelector && hasParent ) {
+ context = context.parentNode;
+ }
+
+ try {
+ if ( !relativeHierarchySelector || hasParent ) {
+ return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+ }
+
+ } catch(pseudoError) {
+ } finally {
+ if ( !old ) {
+ context.removeAttribute( "id" );
+ }
+ }
+ }
+ }
+
+ return oldSizzle(query, context, extra, seed);
+ };
+
+ for ( var prop in oldSizzle ) {
+ Sizzle[ prop ] = oldSizzle[ prop ];
+ }
+
+ // release memory in IE
+ div = null;
+ })();
+}
+
+(function(){
+ var html = document.documentElement,
+ matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector,
+ pseudoWorks = false;
+
+ try {
+ // This should fail with an exception
+ // Gecko does not error, returns false instead
+ matches.call( document.documentElement, "[test!='']:sizzle" );
+
+ } catch( pseudoError ) {
+ pseudoWorks = true;
+ }
+
+ if ( matches ) {
+ Sizzle.matchesSelector = function( node, expr ) {
+ // Make sure that attribute selectors are quoted
+ expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
+
+ if ( !Sizzle.isXML( node ) ) {
+ try {
+ if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+ return matches.call( node, expr );
+ }
+ } catch(e) {}
+ }
+
+ return Sizzle(expr, null, null, [node]).length > 0;
+ };
+ }
+})();
+
+(function(){
+ var div = document.createElement("div");
+
+ div.innerHTML = "";
+
+ // Opera can't find a second classname (in 9.6)
+ // Also, make sure that getElementsByClassName actually exists
+ if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+ return;
+ }
+
+ // Safari caches class attributes, doesn't catch changes (in 3.2)
+ div.lastChild.className = "e";
+
+ if ( div.getElementsByClassName("e").length === 1 ) {
+ return;
+ }
+
+ Expr.order.splice(1, 0, "CLASS");
+ Expr.find.CLASS = function( match, context, isXML ) {
+ if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+ return context.getElementsByClassName(match[1]);
+ }
+ };
+
+ // release memory in IE
+ div = null;
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+
+ if ( elem ) {
+ var match = false;
+
+ elem = elem[dir];
+
+ while ( elem ) {
+ if ( elem.sizcache === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
+
+ if ( elem.nodeType === 1 && !isXML ){
+ elem.sizcache = doneName;
+ elem.sizset = i;
+ }
+
+ if ( elem.nodeName.toLowerCase() === cur ) {
+ match = elem;
+ break;
+ }
+
+ elem = elem[dir];
+ }
+
+ checkSet[i] = match;
+ }
+ }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+
+ if ( elem ) {
+ var match = false;
+
+ elem = elem[dir];
+
+ while ( elem ) {
+ if ( elem.sizcache === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
+
+ if ( elem.nodeType === 1 ) {
+ if ( !isXML ) {
+ elem.sizcache = doneName;
+ elem.sizset = i;
+ }
+
+ if ( typeof cur !== "string" ) {
+ if ( elem === cur ) {
+ match = true;
+ break;
+ }
+
+ } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+ match = elem;
+ break;
+ }
+ }
+
+ elem = elem[dir];
+ }
+
+ checkSet[i] = match;
+ }
+ }
+}
+
+if ( document.documentElement.contains ) {
+ Sizzle.contains = function( a, b ) {
+ return a !== b && (a.contains ? a.contains(b) : true);
+ };
+
+} else if ( document.documentElement.compareDocumentPosition ) {
+ Sizzle.contains = function( a, b ) {
+ return !!(a.compareDocumentPosition(b) & 16);
+ };
+
+} else {
+ Sizzle.contains = function() {
+ return false;
+ };
+}
+
+Sizzle.isXML = function( elem ) {
+ // documentElement is verified for cases where it doesn't yet exist
+ // (such as loading iframes in IE - #4833)
+ var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+var posProcess = function( selector, context ) {
+ var match,
+ tmpSet = [],
+ later = "",
+ root = context.nodeType ? [context] : context;
+
+ // Position selectors must be done after the filter
+ // And so must :not(positional) so we move all PSEUDOs to the end
+ while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+ later += match[0];
+ selector = selector.replace( Expr.match.PSEUDO, "" );
+ }
+
+ selector = Expr.relative[selector] ? selector + "*" : selector;
+
+ for ( var i = 0, l = root.length; i < l; i++ ) {
+ Sizzle( selector, root[i], tmpSet );
+ }
+
+ return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})();
+
+
+var runtil = /Until$/,
+ rparentsprev = /^(?:parents|prevUntil|prevAll)/,
+ // Note: This RegExp should be improved, or likely pulled from Sizzle
+ rmultiselector = /,/,
+ isSimple = /^.[^:#\[\.,]*$/,
+ slice = Array.prototype.slice,
+ POS = jQuery.expr.match.POS,
+ // methods guaranteed to produce a unique set when starting from a unique set
+ guaranteedUnique = {
+ children: true,
+ contents: true,
+ next: true,
+ prev: true
+ };
+
+jQuery.fn.extend({
+ find: function( selector ) {
+ var ret = this.pushStack( "", "find", selector ),
+ length = 0;
+
+ for ( var i = 0, l = this.length; i < l; i++ ) {
+ length = ret.length;
+ jQuery.find( selector, this[i], ret );
+
+ if ( i > 0 ) {
+ // Make sure that the results are unique
+ for ( var n = length; n < ret.length; n++ ) {
+ for ( var r = 0; r < length; r++ ) {
+ if ( ret[r] === ret[n] ) {
+ ret.splice(n--, 1);
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ return ret;
+ },
+
+ has: function( target ) {
+ var targets = jQuery( target );
+ return this.filter(function() {
+ for ( var i = 0, l = targets.length; i < l; i++ ) {
+ if ( jQuery.contains( this, targets[i] ) ) {
+ return true;
+ }
+ }
+ });
+ },
+
+ not: function( selector ) {
+ return this.pushStack( winnow(this, selector, false), "not", selector);
+ },
+
+ filter: function( selector ) {
+ return this.pushStack( winnow(this, selector, true), "filter", selector );
+ },
+
+ is: function( selector ) {
+ return !!selector && jQuery.filter( selector, this ).length > 0;
+ },
+
+ closest: function( selectors, context ) {
+ var ret = [], i, l, cur = this[0];
+
+ if ( jQuery.isArray( selectors ) ) {
+ var match, selector,
+ matches = {},
+ level = 1;
+
+ if ( cur && selectors.length ) {
+ for ( i = 0, l = selectors.length; i < l; i++ ) {
+ selector = selectors[i];
+
+ if ( !matches[selector] ) {
+ matches[selector] = jQuery.expr.match.POS.test( selector ) ?
+ jQuery( selector, context || this.context ) :
+ selector;
+ }
+ }
+
+ while ( cur && cur.ownerDocument && cur !== context ) {
+ for ( selector in matches ) {
+ match = matches[selector];
+
+ if ( match.jquery ? match.index(cur) > -1 : jQuery(cur).is(match) ) {
+ ret.push({ selector: selector, elem: cur, level: level });
+ }
+ }
+
+ cur = cur.parentNode;
+ level++;
+ }
+ }
+
+ return ret;
+ }
+
+ var pos = POS.test( selectors ) ?
+ jQuery( selectors, context || this.context ) : null;
+
+ for ( i = 0, l = this.length; i < l; i++ ) {
+ cur = this[i];
+
+ while ( cur ) {
+ if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
+ ret.push( cur );
+ break;
+
+ } else {
+ cur = cur.parentNode;
+ if ( !cur || !cur.ownerDocument || cur === context ) {
+ break;
+ }
+ }
+ }
+ }
+
+ ret = ret.length > 1 ? jQuery.unique(ret) : ret;
+
+ return this.pushStack( ret, "closest", selectors );
+ },
+
+ // Determine the position of an element within
+ // the matched set of elements
+ index: function( elem ) {
+ if ( !elem || typeof elem === "string" ) {
+ return jQuery.inArray( this[0],
+ // If it receives a string, the selector is used
+ // If it receives nothing, the siblings are used
+ elem ? jQuery( elem ) : this.parent().children() );
+ }
+ // Locate the position of the desired element
+ return jQuery.inArray(
+ // If it receives a jQuery object, the first element is used
+ elem.jquery ? elem[0] : elem, this );
+ },
+
+ add: function( selector, context ) {
+ var set = typeof selector === "string" ?
+ jQuery( selector, context ) :
+ jQuery.makeArray( selector ),
+ all = jQuery.merge( this.get(), set );
+
+ return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+ all :
+ jQuery.unique( all ) );
+ },
+
+ andSelf: function() {
+ return this.add( this.prevObject );
+ }
+});
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+ return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+jQuery.each({
+ parent: function( elem ) {
+ var parent = elem.parentNode;
+ return parent && parent.nodeType !== 11 ? parent : null;
+ },
+ parents: function( elem ) {
+ return jQuery.dir( elem, "parentNode" );
+ },
+ parentsUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "parentNode", until );
+ },
+ next: function( elem ) {
+ return jQuery.nth( elem, 2, "nextSibling" );
+ },
+ prev: function( elem ) {
+ return jQuery.nth( elem, 2, "previousSibling" );
+ },
+ nextAll: function( elem ) {
+ return jQuery.dir( elem, "nextSibling" );
+ },
+ prevAll: function( elem ) {
+ return jQuery.dir( elem, "previousSibling" );
+ },
+ nextUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "nextSibling", until );
+ },
+ prevUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "previousSibling", until );
+ },
+ siblings: function( elem ) {
+ return jQuery.sibling( elem.parentNode.firstChild, elem );
+ },
+ children: function( elem ) {
+ return jQuery.sibling( elem.firstChild );
+ },
+ contents: function( elem ) {
+ return jQuery.nodeName( elem, "iframe" ) ?
+ elem.contentDocument || elem.contentWindow.document :
+ jQuery.makeArray( elem.childNodes );
+ }
+}, function( name, fn ) {
+ jQuery.fn[ name ] = function( until, selector ) {
+ var ret = jQuery.map( this, fn, until ),
+ // The variable 'args' was introduced in
+ // https://github.com/jquery/jquery/commit/52a0238
+ // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
+ // http://code.google.com/p/v8/issues/detail?id=1050
+ args = slice.call(arguments);
+
+ if ( !runtil.test( name ) ) {
+ selector = until;
+ }
+
+ if ( selector && typeof selector === "string" ) {
+ ret = jQuery.filter( selector, ret );
+ }
+
+ ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
+
+ if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
+ ret = ret.reverse();
+ }
+
+ return this.pushStack( ret, name, args.join(",") );
+ };
+});
+
+jQuery.extend({
+ filter: function( expr, elems, not ) {
+ if ( not ) {
+ expr = ":not(" + expr + ")";
+ }
+
+ return elems.length === 1 ?
+ jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
+ jQuery.find.matches(expr, elems);
+ },
+
+ dir: function( elem, dir, until ) {
+ var matched = [],
+ cur = elem[ dir ];
+
+ while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+ if ( cur.nodeType === 1 ) {
+ matched.push( cur );
+ }
+ cur = cur[dir];
+ }
+ return matched;
+ },
+
+ nth: function( cur, result, dir, elem ) {
+ result = result || 1;
+ var num = 0;
+
+ for ( ; cur; cur = cur[dir] ) {
+ if ( cur.nodeType === 1 && ++num === result ) {
+ break;
+ }
+ }
+
+ return cur;
+ },
+
+ sibling: function( n, elem ) {
+ var r = [];
+
+ for ( ; n; n = n.nextSibling ) {
+ if ( n.nodeType === 1 && n !== elem ) {
+ r.push( n );
+ }
+ }
+
+ return r;
+ }
+});
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, keep ) {
+ if ( jQuery.isFunction( qualifier ) ) {
+ return jQuery.grep(elements, function( elem, i ) {
+ var retVal = !!qualifier.call( elem, i, elem );
+ return retVal === keep;
+ });
+
+ } else if ( qualifier.nodeType ) {
+ return jQuery.grep(elements, function( elem, i ) {
+ return (elem === qualifier) === keep;
+ });
+
+ } else if ( typeof qualifier === "string" ) {
+ var filtered = jQuery.grep(elements, function( elem ) {
+ return elem.nodeType === 1;
+ });
+
+ if ( isSimple.test( qualifier ) ) {
+ return jQuery.filter(qualifier, filtered, !keep);
+ } else {
+ qualifier = jQuery.filter( qualifier, filtered );
+ }
+ }
+
+ return jQuery.grep(elements, function( elem, i ) {
+ return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
+ });
+}
+
+
+
+
+var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
+ rleadingWhitespace = /^\s+/,
+ rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
+ rtagName = /<([\w:]+)/,
+ rtbody = /", "" ],
+ legend: [ 1, "" ],
+ thead: [ 1, "
", "
" ],
+ tr: [ 2, "
", "
" ],
+ td: [ 3, "
", "
" ],
+ col: [ 2, "
", "
" ],
+ area: [ 1, "" ],
+ _default: [ 0, "", "" ]
+ };
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE can't serialize and
+
+
+
+
+:javascript
+
+ $(document).ready(function () {
+ var data = #{@info_to_json};
+ showListAsThumbnails();
+
+ $('a#toggle').click(function() {
+ if($("#list_as_thumbnails").is(":visible")) {
+ showListAsList();
+ } else {
+ showListAsThumbnails();
+ };
+ });
+
+ function showListAsThumbnails() {
+ $("#list_as_list").hide();
+ $("#list_as_thumbnails").show();
+ $("#list_as_thumbnails").html($("#thumbnail_view").tmpl(data));
+ };
+
+ function showListAsList() {
+ $("#list_as_thumbnails").hide();
+ $("#list_as_list").show();
+ $("#list_as_list table tbody").html($("#list_view").tmpl(data));
+ };
+ });
\ No newline at end of file
diff --git a/themes/madek11/views/media_entries/index.html.erb b/themes/madek11/views/media_entries/index.html.erb
new file mode 100644
index 0000000000..6cc1e00431
--- /dev/null
+++ b/themes/madek11/views/media_entries/index.html.erb
@@ -0,0 +1,3 @@
+<%= content_tag :div, :class => "container_12 clearfix", :id => "results" do %>
+ <%= render :partial => 'index' %>
+<% end %>
\ No newline at end of file
diff --git a/themes/madek11/views/media_sets/show.html.haml b/themes/madek11/views/media_sets/show.html.haml
new file mode 100644
index 0000000000..a67f19aabd
--- /dev/null
+++ b/themes/madek11/views/media_sets/show.html.haml
@@ -0,0 +1,169 @@
+:css
+ h4 {margin: 0 0 5px 0;}
+ a img {border: none;}
+ ul { list-style: none; overflow: hidden; }
+ ul li { float: left; margin-right: 10px;}
+ .clear { margin: 0;}
+ .icon_bar {margin-top: 2em;}
+ .icon_bar img {margin-right: .33em;}
+ .task_bar { background: #E0ECFF; width: 100%; padding: 0.4em; margin-bottom: .8em;}
+ .task_bar input[disabled] {border: 1px solid #ccc; color: #ccc; background-color: #ddd;}
+ #selected_items .thumb_mini { display: inline-block; margin-right: 0.33em; background: white; border: 1px solid #ddd; padding: 0.2em;}
+ #selected_items .thumb_mini p { text-align: center; font-size: 0.7em; }
+
+#page_header.container_12
+ .grid_4.alpha
+ .group_is
+ %h1= "Set (#{@media_entries.total_entries}/#{@media_set.media_entries.size})"
+ .icon_is
+ = theme_image_tag "icons/icon_set.png"
+ .grid_5.group_meta
+ - context = MetaContext.media_set
+ - @media_set.meta_data_for_context(context).collect do |meta_datum|
+ - definition = meta_datum.meta_key.meta_key_definitions.for_context(context)
+ %p= definition.meta_field.label.to_s
+ = formatted_value(meta_datum)
+ .grid_3.omega
+ - if @can_edit
+ .icon_bar
+ = display_edit_icon(@media_set, current_user)
+ = display_delete_icon(@media_set, current_user)
+ - if Permission.resource_viewable_only_by_user?(@media_set, current_user)
+ = theme_image_tag("icons/icon_button_perm.png")
+ .clear
+ .grid_12.task_bar
+ %ul
+ %li#number_selected
+ Keine Medieneinträge ausgewählt
+ %li#batch-edit-button
+ = button_to _("Medieneinträge Editieren"), edit_multiple_media_entries_path, :method => :post, :id => "batch-edit"
+ %li#batch-remove-button
+ = button_to _("Aus Set Entfernen"), remove_multiple_media_set_media_entries_path(@media_set), :method => :delete, :id => "batch-remove"
+ %li#batch-add-to-set
+ = select_tag "media_set", options_for_select([["Set Auswählen", ""]] + @editable_sets.collect {|set| [set.meta_data.get_value_for("title"), set.id]})
+ .clear
+#selected_items.grid_12.task_bar
+.clear
+:plain
+
+#results
+ = render :partial => "/media_entries/index"
+.clear
+
+:javascript
+
+ $(document).ready(function () {
+ //alert("document loaded");
+ var data = #{@info_to_json};
+ var media_set_id = #{@media_set.id};
+ var key = "media_sets/"+ media_set_id +"/media_entry_ids";
+
+ checkSelected(media_set_id);
+ listSelected(media_set_id, data);
+ displayCount(key);
+
+ $('.pagination a').live('ajax:success', function(xhr, response){
+ checkSelected(media_set_id);
+ });
+
+ $("span.favorite_link a").live('ajax:complete', function(xhr, response){
+ var media_entry_id = $(this).parent().attr("id").slice(4);
+ $("span#fav_" + media_entry_id).html(response.responseText);
+ });
+
+ function displayCount(key) {
+ //alert("displayCount called");
+ var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+
+ if (media_entry_ids != null) {
+ var count_checked = media_entry_ids.length;
+ var display_count = $('li#number_selected');
+ switch (count_checked){
+ case 0:
+ display_count.html("Keine Medieneinträge ausgewählt.");
+ break;
+ case 1:
+ display_count.html("1 Medieneintrag ausgewählt.");
+ break;
+ default :
+ display_count.html(count_checked + " Medieneinträge ausgewählt.");
+ }
+ }
+ };
+
+ // hover functions for batch action buttons - highlight selected entries for which action is possible
+ $("input#batch-edit").hover(
+ function () {
+ $('#selected_items .edit').css("background","yellow");
+ },
+ function () {
+ $('#selected_items .edit').css("background","white");
+ }
+ );
+
+ $("input#batch-remove").hover(
+ function () {
+ $('#selected_items .edit_set').css("background","yellow");
+ },
+ function () {
+ $('#selected_items .edit_set').css("background","white");
+ }
+ );
+
+ $(":checkbox").live("click", function(){
+ //alert("checkbox clicked");
+ var is_checked = $(this).is(":checked");
+ var curr_value = $(this).val();
+ var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+
+ if(media_entry_ids == null) media_entry_ids = new Array();
+
+ if(is_checked){
+ media_entry_ids.push(curr_value);
+ } else {
+ var i = media_entry_ids.indexOf(curr_value);
+ if(i > -1) media_entry_ids.splice(i, 1);
+ }
+
+ $.each(data, function(i, me) {
+ if ((me.id == curr_value) && is_checked) {
+ // insert into selected bar
+ $('#selected_items').append($("#mini_thumbnails").tmpl(me));
+ } else if (me.id == curr_value) {
+ // remove from selected bar
+ $('#selected_items #me_' + me.id).remove();
+ }
+ });
+
+ sessionStorage.setItem(key, JSON.stringify(media_entry_ids.getUnique()));
+ displayCount(key);
+ });
+
+ $("#batch-edit-button form").submit(function() {
+ //var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+ var editable_ids = new Array();
+ $("#selected_items .edit").each(function(i, elem){
+ editable_ids.push($(this).attr("id").slice(3));
+ });
+ $(this).append("");
+ });
+
+ $("#batch-remove-button form").submit(function() {
+ //var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+ var editable_ids = new Array();
+ $("#selected_items .edit_set").each(function(i, elem){
+ editable_ids.push($(this).attr("id").slice(3));
+ });
+ $(this).append("");
+ sessionStorage.removeItem(key); //maybe we just want to remove the items slated for removal (rather than the entire key)
+ });
+
+ });
+
+
\ No newline at end of file
diff --git a/themes/madek11/views/media_sets/show.html.haml.new b/themes/madek11/views/media_sets/show.html.haml.new
new file mode 100644
index 0000000000..0a231b3745
--- /dev/null
+++ b/themes/madek11/views/media_sets/show.html.haml.new
@@ -0,0 +1,159 @@
+:css
+ h4 {margin: 0 0 5px 0;}
+ a img {border: none;}
+ ul { list-style: none; overflow: hidden; }
+ ul li { float: left; margin-right: 10px;}
+ .clear { margin: 0;}
+ .icon_bar {margin-top: 2em;}
+ .icon_bar img {margin-right: .33em;}
+ .task_bar { background: #E0ECFF; width: 100%; padding: 0.4em; margin-bottom: .8em;}
+ .task_bar input[disabled] {border: 1px solid #ccc; color: #ccc; background-color: #ddd;}
+ #selected_items .thumb_mini { display: inline-block; margin-right: 0.33em; background: white; border: 1px solid #ddd; padding: 0.2em;}
+ #selected_items .thumb_mini p { text-align: center; font-size: 0.7em; }
+
+.container_12
+ .grid_4.alpha
+ %h1= "Set (#{@media_entries.total_entries}/#{@media_set.media_entries.size})"
+ %p Icon representing set here
+ .grid_5
+ - context = MetaContext.media_set
+ - @media_set.meta_data_for_context(context).collect do |meta_datum|
+ - definition = meta_datum.meta_key.meta_key_definitions.for_context(context)
+ %h4= definition.meta_field.label.to_s
+ = formatted_value(meta_datum)
+ .grid_3.omega
+ - if @can_edit
+ .icon_bar
+ = link_to theme_image_tag("icons/edit.png"), edit_media_set_path(@media_set)
+ = link_to theme_image_tag("icons/delete.png"), media_set_path(@media_set), :method => :delete, :confirm => _("Sind Sie sicher? Das Set wird gelöscht.")
+ - if Permission.resource_viewable_only_by_user?(@media_set, current_user)
+ = theme_image_tag("icons/padlock_closed.png")
+ .clear
+ .grid_12.task_bar
+ %ul
+ %li#number_selected
+ Keine Medieneinträge ausgewählt
+ %li#batch-edit-button
+ = button_to _("Medieneinträge Editieren"), edit_multiple_media_entries_path, :method => :post, :disabled => @editable_in_set.empty?, :id => "batch-edit"
+ %li#batch-remove-button
+ = button_to _("Aus Set Entfernen"), remove_multiple_media_set_media_entries_path(@media_set), :method => :delete, :disabled => !@can_edit, :id => "batch-remove"
+ %li#batch-add-to-set
+ = select_tag "media_set", options_for_select([["Set Auswählen", ""]] + @editable_sets.collect {|set| [set.meta_data.get_value_for("title"), set.id]})
+ .clear
+ #selected_items.grid_12.task_bar
+ .clear
+ :plain
+
+ #results
+ = render :partial => "/media_entries/index"
+ .clear
+
+:javascript
+
+ $(document).ready(function () {
+ var data = #{@info_to_json};
+ var media_set_id = #{@media_set.id};
+ var key = "media_sets/"+ media_set_id +"/media_entry_ids";
+
+ checkSelected(media_set_id);
+ listSelected(media_set_id, data);
+ displayCount(key);
+
+ $('.pagination a').live('ajax:success', function(xhr, response){
+ checkSelected(media_set_id);
+ });
+
+ function displayCount(key) {
+ var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+
+ if (media_entry_ids != null) {
+ var count_checked = media_entry_ids.length;
+ var display_count = $('li#number_selected');
+ switch (count_checked){
+ case 0:
+ display_count.html("Keine Medieneinträge ausgewählt.");
+ break;
+ case 1:
+ display_count.html("1 Medieneintrag ausgewählt.");
+ break;
+ default :
+ display_count.html(count_checked + " Medieneinträge ausgewählt.");
+ }
+ }
+ };
+
+ // hover functions for batch action buttons - highlight selected entries for which action is possible
+ $("input#batch-edit").hover(
+ function () {
+ $('#selected_items .edit').css("background","yellow");
+ },
+ function () {
+ $('#selected_items .edit').css("background","white");
+ }
+ );
+
+ $("input#batch-remove").hover(
+ function () {
+ $('#selected_items .edit_set').css("background","yellow");
+ },
+ function () {
+ $('#selected_items .edit_set').css("background","white");
+ }
+ );
+
+ $(":checkbox").live("click", function(){
+ var is_checked = $(this).is(":checked");
+ var curr_value = $(this).val();
+ var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+
+ if(media_entry_ids == null) media_entry_ids = new Array();
+
+ if(is_checked){
+ media_entry_ids.push(curr_value);
+ } else {
+ var i = media_entry_ids.indexOf(curr_value);
+ if(i > -1) media_entry_ids.splice(i, 1);
+ }
+
+ $.each(data, function(i, me) {
+ if ((me.id == curr_value) && is_checked) {
+ // insert into selected bar
+ $('#selected_items').append($("#mini_thumbnails").tmpl(me));
+ } else if (me.id == curr_value) {
+ // remove from selected bar
+ $('#selected_items #me_' + me.id).remove();
+ }
+ });
+
+ sessionStorage.setItem(key, JSON.stringify(media_entry_ids.getUnique()));
+ displayCount(key);
+ });
+
+ $("#batch-edit-button form").submit(function() {
+ //var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+ var editable_ids = new Array();
+ $("#selected_items .edit").each(function(i, elem){
+ editable_ids.push($(this).attr("id").slice(3));
+ });
+ $(this).append("");
+ });
+
+ $("#batch-remove-button form").submit(function() {
+ //var media_entry_ids = JSON.parse(sessionStorage.getItem(key));
+ var editable_ids = new Array();
+ $("#selected_items .edit_set").each(function(i, elem){
+ editable_ids.push($(this).attr("id").slice(3));
+ });
+ $(this).append("");
+ sessionStorage.removeItem(key); //maybe we just want to remove the items slated for removal (rather than the entire key)
+ });
+
+ });
+
+
\ No newline at end of file
diff --git a/themes/madek11/views/users/show.html.erb b/themes/madek11/views/users/show.html.erb
new file mode 100644
index 0000000000..4573de4261
--- /dev/null
+++ b/themes/madek11/views/users/show.html.erb
@@ -0,0 +1,27 @@
+
+
+
+
Meine Medieneinträge
+ <% @media_entries = @my_media_entries
+ unless @media_entries.empty? %>
+ <%= render :partial => '/media_entries/media_entry_thumb', :collection => @media_entries, :as => :media_entry %>
+ <%= content_tag :div, :class => "buttons" do %>
+ <%= link_to "Weitere…", user_media_entries_path(current_user) %>
+ <% end if @media_entries.total_entries >= params[:per_page]
+ else %>
+ <%= _("Sie haben noch keine Medien hochgeladen.") %>
+ <% end %>
+
+
Medieneinträge anderer
+ <% @media_entries = @accessible_media_entries
+ unless @media_entries.empty? %>
+ <%= render :partial => '/media_entries/media_entry_thumb', :collection => @media_entries, :as => :media_entry %>
+ <%= content_tag :div, :class => "buttons" do %>
+ <%= link_to "Weitere…", media_entries_path(:not_by_current_user => true) %>
+ <% end if @media_entries.total_entries >= params[:per_page]
+ else %>
+ <%= _("Es gibt keine weiteren Medieneinträge.") %>
+ <% end %>
+
+
+
diff --git a/vendor/dilps2_exporter/.DS_Store b/vendor/dilps2_exporter/.DS_Store
new file mode 100644
index 0000000000..3addbc1290
Binary files /dev/null and b/vendor/dilps2_exporter/.DS_Store differ
diff --git a/vendor/dilps2_exporter/MIT-LICENSE b/vendor/dilps2_exporter/MIT-LICENSE
new file mode 100644
index 0000000000..9376605b2b
--- /dev/null
+++ b/vendor/dilps2_exporter/MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2009 [name of plugin creator]
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/dilps2_exporter/README b/vendor/dilps2_exporter/README
new file mode 100644
index 0000000000..c339b73ad1
--- /dev/null
+++ b/vendor/dilps2_exporter/README
@@ -0,0 +1,13 @@
+Dilps2-exporter
+===============
+
+Introduction goes here.
+
+
+Example
+=======
+
+Example goes here.
+
+
+Copyright (c) 2009 [name of plugin creator], released under the MIT license
diff --git a/vendor/dilps2_exporter/Rakefile b/vendor/dilps2_exporter/Rakefile
new file mode 100644
index 0000000000..34f9b8e5cd
--- /dev/null
+++ b/vendor/dilps2_exporter/Rakefile
@@ -0,0 +1,23 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the dilps2_exporter plugin.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = true
+end
+
+desc 'Generate documentation for the dilps2_exporter plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'Dilps2-exporter'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
diff --git a/vendor/dilps2_exporter/app/.DS_Store b/vendor/dilps2_exporter/app/.DS_Store
new file mode 100644
index 0000000000..9872e6d183
Binary files /dev/null and b/vendor/dilps2_exporter/app/.DS_Store differ
diff --git a/vendor/dilps2_exporter/app/controllers/dilps2/groups_controller.rb b/vendor/dilps2_exporter/app/controllers/dilps2/groups_controller.rb
new file mode 100644
index 0000000000..ea81843d82
--- /dev/null
+++ b/vendor/dilps2_exporter/app/controllers/dilps2/groups_controller.rb
@@ -0,0 +1,20 @@
+class Dilps2::GroupsController < ApplicationController
+
+ def index
+ groups = Dilps2::Group.roots
+
+ json = groups.to_json(:include => {:children => {:include => :children}} )
+ render :text => JSON.parse(json).to_yaml
+ end
+
+ def show
+
+ # id 1 => user
+ # id 4 => index
+ group = Dilps2::Group.find(params[:id])
+
+ json = group.to_json(:include => {:children => {:include => :children}} )
+ render :text => JSON.parse(json).to_yaml
+ end
+
+end
diff --git a/vendor/dilps2_exporter/app/controllers/dilps2/items_controller.rb b/vendor/dilps2_exporter/app/controllers/dilps2/items_controller.rb
new file mode 100644
index 0000000000..687953b43d
--- /dev/null
+++ b/vendor/dilps2_exporter/app/controllers/dilps2/items_controller.rb
@@ -0,0 +1,42 @@
+class Dilps2::ItemsController < ApplicationController
+
+ before_filter :pre_load
+
+ def index
+ if @collection
+ items = @collection.items
+ elsif @group
+ items = @group.items
+ end
+
+ # reject uncomplete
+ items.delete_if {|x| x.item_rev.nil? or x.main_resource.nil? }
+
+
+ json = items.to_json
+ render :text => JSON.parse(json).to_yaml
+ end
+
+ def show
+ if @collection
+ item = @collection.items.find(params[:id])
+ elsif @group
+ item = @group.items.detect {|x| x.imageid == params[:id].to_i}
+ end
+
+ json = item.to_json
+ render :text => JSON.parse(json).to_yaml
+ end
+
+
+ private
+
+ def pre_load
+ if params[:collection_id]
+ @collection = Dilps2::Collection.find(params[:collection_id])
+ elsif params[:group_id]
+ @group = Dilps2::Group.find(params[:group_id])
+ end
+ end
+
+end
diff --git a/vendor/dilps2_exporter/app/helpers/application_helper.rb b/vendor/dilps2_exporter/app/helpers/application_helper.rb
new file mode 100644
index 0000000000..22a7940eb2
--- /dev/null
+++ b/vendor/dilps2_exporter/app/helpers/application_helper.rb
@@ -0,0 +1,3 @@
+# Methods added to this helper will be available to all templates in the application.
+module ApplicationHelper
+end
diff --git a/vendor/dilps2_exporter/app/models/.DS_Store b/vendor/dilps2_exporter/app/models/.DS_Store
new file mode 100644
index 0000000000..5008ddfcf5
Binary files /dev/null and b/vendor/dilps2_exporter/app/models/.DS_Store differ
diff --git a/vendor/dilps2_exporter/app/models/dilps2/base.rb b/vendor/dilps2_exporter/app/models/dilps2/base.rb
new file mode 100644
index 0000000000..e5321e79f9
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/base.rb
@@ -0,0 +1,7 @@
+class Dilps2::Base < ActiveRecord::Base
+ self.abstract_class = true
+
+ establish_connection 'dilps2_local'
+ self.inheritance_column = 'not_used'
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/collection.rb b/vendor/dilps2_exporter/app/models/dilps2/collection.rb
new file mode 100644
index 0000000000..5ff214573f
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/collection.rb
@@ -0,0 +1,13 @@
+class Dilps2::Collection < Dilps2::Base
+ set_table_name 'd2_collection'
+ set_primary_key 'collectionid'
+
+ has_many :items, :class_name => "Dilps2::Item",
+ :foreign_key => "collectionid"
+
+
+ has_many :groups, :class_name => "Dilps2::Group",
+ :foreign_key => "collectionid"
+
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/group.rb b/vendor/dilps2_exporter/app/models/dilps2/group.rb
new file mode 100644
index 0000000000..d90df797bd
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/group.rb
@@ -0,0 +1,22 @@
+class Dilps2::Group < Dilps2::Base
+ set_table_name 'd2_group'
+
+# TODO
+# belongs_to :parent
+ has_many :children, :class_name => "Dilps2::Group",
+ :foreign_key => "parent"
+
+ has_many :group_resources, :class_name => "Dilps2::GroupResource",
+ :foreign_key => "groupid",
+ :conditions => {:collectionid => '#{collectionid}'}
+
+
+ named_scope :roots, :conditions => {:parent => 0}
+
+
+#temp# has_many :items, :through => :group_resources
+ def items
+ group_resources.collect(&:item).compact
+ end
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/group_resource.rb b/vendor/dilps2_exporter/app/models/dilps2/group_resource.rb
new file mode 100644
index 0000000000..080f0ec069
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/group_resource.rb
@@ -0,0 +1,12 @@
+class Dilps2::GroupResource < Dilps2::Base
+ set_table_name 'd2_group_resource'
+
+ has_one :item, :class_name => "Dilps2::Item",
+ :foreign_key => "imageid",
+ :primary_key => "itemid",
+ :conditions => {:collectionid => '#{item_collection}'}
+
+ # TODO ??
+ # has_one :group
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/item.rb b/vendor/dilps2_exporter/app/models/dilps2/item.rb
new file mode 100644
index 0000000000..75174f14e1
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/item.rb
@@ -0,0 +1,36 @@
+class Dilps2::Item < Dilps2::Base
+ set_table_name 'd2_item'
+ set_primary_key 'imageid'
+
+ has_many :resources, :class_name => "Dilps2::Resource",
+ :foreign_key => "itemid",
+ :conditions => {:collectionid => '#{collectionid}'}
+
+ has_one :main_resource, :class_name => "Dilps2::Resource",
+ :foreign_key => "itemid",
+ :conditions => {:collectionid => '#{collectionid}', :main => true}
+
+ belongs_to :item_rev, :class_name => "Dilps2::ItemRev", :foreign_key => "item_revid"
+ belongs_to :collection, :class_name => "Dilps2::Collection", :foreign_key => "collectionid"
+
+
+ default_scope :conditions => {:deleted => 0} #, :include => [:item_rev, :main_resource]
+
+ #old# named_scope :saeulenprojekt, :conditions => {:collectionid => 11}
+
+
+
+ def to_json_with_custom(options = {})
+ options[:except] = [:item_revid, :imageid, :deleted, :creation_date, :modification_date] unless options[:except]
+ options[:include] = {:item_rev => {:except => [:id, :itemid, :modify_date, :name1sounds, :name2sounds, :locationsounds, :locationid],
+ :include => {:item_ext_data => {:except => [:id, :item_revid, :item_ext_data_id] }} },
+ :main_resource => {:except => [:id, :itemid, :resource_revid, :main, :deleted, :creation_date, :modification_date],
+ :include => {:resource_rev => {:except => [:id, :resource_id, :resource_base_id, :creation_date, :thumb, :type, :mimetype, :filename, :fileinfo, :urn],
+ :include => {:urn_file => {:except => [:urnid]}} } }
+ } } unless options[:include]
+ to_json_without_custom(options)
+ end
+ alias_method_chain :to_json, :custom
+
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/item_ext_data.rb b/vendor/dilps2_exporter/app/models/dilps2/item_ext_data.rb
new file mode 100644
index 0000000000..52d10dab8a
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/item_ext_data.rb
@@ -0,0 +1,4 @@
+class Dilps2::ItemExtData < Dilps2::Base
+ set_table_name 'd2_item_ext_data'
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/item_rev.rb b/vendor/dilps2_exporter/app/models/dilps2/item_rev.rb
new file mode 100644
index 0000000000..dfffb33813
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/item_rev.rb
@@ -0,0 +1,8 @@
+class Dilps2::ItemRev < Dilps2::Base
+ set_table_name 'd2_item_rev'
+
+ has_and_belongs_to_many :item_ext_data, :class_name => "Dilps2::ItemExtData",
+ :join_table => "d2_item_ext_rev",
+ :foreign_key => "item_revid"
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/resource.rb b/vendor/dilps2_exporter/app/models/dilps2/resource.rb
new file mode 100644
index 0000000000..c645b30000
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/resource.rb
@@ -0,0 +1,8 @@
+class Dilps2::Resource < Dilps2::Base
+ set_table_name 'd2_resource'
+
+ belongs_to :resource_rev, :class_name => "Dilps2::ResourceRev", :foreign_key => "resource_revid"
+
+#old# default_scope :conditions => {:main => 1}
+
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/resource_rev.rb b/vendor/dilps2_exporter/app/models/dilps2/resource_rev.rb
new file mode 100644
index 0000000000..9d2db40f6f
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/resource_rev.rb
@@ -0,0 +1,8 @@
+class Dilps2::ResourceRev < Dilps2::Base
+ set_table_name 'd2_resource_rev'
+
+ has_one :urn_file, :class_name => "Dilps2::Urn",
+ :primary_key => "urn",
+ :foreign_key => "urn",
+ :conditions => {:protocol => 'file'}
+end
diff --git a/vendor/dilps2_exporter/app/models/dilps2/urn.rb b/vendor/dilps2_exporter/app/models/dilps2/urn.rb
new file mode 100644
index 0000000000..3896cce0c4
--- /dev/null
+++ b/vendor/dilps2_exporter/app/models/dilps2/urn.rb
@@ -0,0 +1,3 @@
+class Dilps2::Urn < Dilps2::Base
+ set_table_name 'd2_urn'
+end
diff --git a/vendor/dilps2_exporter/config/database.yml b/vendor/dilps2_exporter/config/database.yml
new file mode 100644
index 0000000000..7af518f185
--- /dev/null
+++ b/vendor/dilps2_exporter/config/database.yml
@@ -0,0 +1,6 @@
+dilps2_local:
+ adapter: mysql
+ database: dilps2
+ encoding: utf8
+ username: root
+ password:
diff --git a/vendor/dilps2_exporter/config/routes.rb b/vendor/dilps2_exporter/config/routes.rb
new file mode 100644
index 0000000000..3249661169
--- /dev/null
+++ b/vendor/dilps2_exporter/config/routes.rb
@@ -0,0 +1,13 @@
+ActionController::Routing::Routes.draw do |map|
+
+ map.namespace :dilps2 do |dilps2|
+ dilps2.resources :collections do |collection|
+ collection.resources :items
+ end
+
+ dilps2.resources :groups do |group|
+ group.resources :items
+ end
+ end
+
+end
diff --git a/vendor/dilps2_exporter/doc/SO_groups.txt b/vendor/dilps2_exporter/doc/SO_groups.txt
new file mode 100644
index 0000000000..64d4bdff78
--- /dev/null
+++ b/vendor/dilps2_exporter/doc/SO_groups.txt
@@ -0,0 +1,18 @@
+collectionid 11 = Saeulenprojekt (1479 Objekte)
+
+collectionid 1 = Main - user - zhdk/Schumacher
+Alberti 1:718065 (3 Objekte)
+Blum 1:717796 (2 Objekte)
+Cesariano 1:718083 (9 Objekte)
+Chitham 1:710 (28 Objekte)
+Durand 1:717798 (4
+Palladio 1:717795 (16
+Perrault 1:717799 (33
+Rykwert 1:717808 (30
+Säulen20.Jhdt 1:717800 (115
+Säulen_divers 1:717802 (19
+Serlio 1:717805 (29
+Stuart&Revett 1:717803 (6
+Vitruv 1:717801 (5
+Vignola 1:717794 (79
+
diff --git a/vendor/dilps2_exporter/doc/dilps-schema.graffle b/vendor/dilps2_exporter/doc/dilps-schema.graffle
new file mode 100644
index 0000000000..21c9e4ba2b
--- /dev/null
+++ b/vendor/dilps2_exporter/doc/dilps-schema.graffle
@@ -0,0 +1,4914 @@
+
+
+
+
+ ActiveLayerIndex
+ 0
+ ApplicationVersion
+
+ com.omnigroup.OmniGrafflePro
+ 138.9.0.117994
+
+ AutoAdjust
+
+ BackgroundGraphic
+
+ Bounds
+ {{0, 0}, {782.98, 558.99}}
+ Class
+ SolidGraphic
+ ID
+ 2
+ Style
+
+ shadow
+
+ Draws
+ NO
+
+ stroke
+
+ Draws
+ NO
+
+
+
+ CanvasOrigin
+ {0, 0}
+ CanvasSize
+ {782.98, 558.99}
+ ColumnAlign
+ 1
+ ColumnSpacing
+ 36
+ CreationDate
+ 2009-10-14 14:32:25 +0200
+ Creator
+ richard rasu
+ DisplayScale
+ 1.000 cm = 1.000 cm
+ GraphDocumentVersion
+ 6
+ GraphicsList
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 81
+
+ ID
+ 116
+ Points
+
+ {621, 159}
+ {357, 154}
+ {163, 97}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 63
+
+
+
+ Class
+ LineGraphic
+ Head
+
+ ID
+ 112
+
+ ID
+ 114
+ Points
+
+ {502.5, 65}
+ {569, 49}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 115
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{569, 41}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 112
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 id}
+
+
+
+ Bounds
+ {{569, 25}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 113
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_item_ext_data}
+
+
+
+ GridH
+
+ 113
+ 112
+
+
+ ID
+ 111
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ LineGraphic
+ Head
+
+ ID
+ 105
+
+ ID
+ 110
+ Points
+
+ {328, 49}
+ {389.5, 49}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 85
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{389.5, 41}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 105
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 item_revid}
+
+
+
+ Bounds
+ {{389.5, 25}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 108
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_item_ext_rev}
+
+
+
+ Bounds
+ {{389.5, 57}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 115
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 item_ext_data_id}
+
+
+
+ GridH
+
+ 108
+ 105
+ 115
+
+
+ ID
+ 104
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ LineGraphic
+ Head
+
+ ID
+ 97
+ Info
+ 2
+
+ ID
+ 101
+ Points
+
+ {50, 245}
+ {12, 273}
+ {50, 321.5}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 94
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{50, 313.5}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 97
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 id}
+
+
+
+ Bounds
+ {{50, 297.5}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 99
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_resource_rev}
+
+
+
+ GridH
+
+ 99
+ 97
+
+
+ ID
+ 95
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ LineGraphic
+ Head
+
+ ID
+ 31
+
+ ID
+ 93
+ Points
+
+ {50, 97}
+ {5, 163}
+ {50, 229}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 81
+ Info
+ 2
+
+
+
+ Class
+ LineGraphic
+ Head
+
+ ID
+ 85
+
+ ID
+ 91
+ Points
+
+ {163, 81}
+ {215, 49}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 50
+ Info
+ 1
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{215, 41}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 85
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 id}
+
+
+
+ Bounds
+ {{215, 57}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 86
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 type}
+
+
+
+ Bounds
+ {{215, 73}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 87
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+
+
+ Bounds
+ {{215, 25}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 88
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_item_rev}
+
+
+
+ Bounds
+ {{215, 89}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 89
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+
+
+ GridH
+
+ 88
+ 85
+ 86
+ 87
+ 89
+
+
+ ID
+ 84
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ LineGraphic
+ Head
+
+ ID
+ 30
+ Info
+ 2
+
+ ID
+ 83
+ Points
+
+ {50, 113}
+ {14, 166}
+ {50, 213}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 90
+
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 55
+ Info
+ 2
+
+ ID
+ 79
+ Points
+
+ {328, 261}
+ {401, 254}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 77
+ Info
+ 1
+
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 53
+ Info
+ 2
+
+ ID
+ 78
+ Points
+
+ {328, 245}
+ {401, 222}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 76
+ Info
+ 1
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{50, 453}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 73
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 collectionid}
+
+
+
+ Bounds
+ {{50, 437}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 74
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_urn}
+
+
+
+ GridH
+
+ 74
+ 73
+
+
+ ID
+ 72
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 55
+ Info
+ 4
+
+ ID
+ 67
+ Points
+
+ {621, 159}
+ {579, 184}
+ {519, 254}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 63
+ Info
+ 3
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{621, 151}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 63
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 collectionid}
+
+
+
+ Bounds
+ {{621, 135}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 66
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_collection}
+
+
+
+ GridH
+
+ 66
+ 63
+
+
+ ID
+ 62
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 60
+
+ ID
+ 61
+ Points
+
+ {519, 222}
+ {560, 239}
+ {519, 270}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 53
+ Info
+ 3
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{401, 214}, {118, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 53
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 id}
+
+
+
+ Bounds
+ {{401, 230}, {118, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 54
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 name}
+
+
+
+ Bounds
+ {{401, 246}, {118, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 55
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 collectionid}
+
+
+
+ Bounds
+ {{401, 198}, {118, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 56
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_group}
+
+
+
+ Bounds
+ {{401, 262}, {118, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 60
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 parent}
+
+
+
+ GridH
+
+ 56
+ 53
+ 54
+ 55
+ 60
+
+
+ ID
+ 52
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{50, 41}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 48
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 id}
+
+
+
+ Bounds
+ {{50, 57}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 49
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 itemid}
+
+
+
+ Bounds
+ {{50, 73}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 50
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 item_revid}
+
+
+
+ Bounds
+ {{50, 25}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 51
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_item}
+
+
+
+ Bounds
+ {{50, 89}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 81
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 collectionid}
+
+
+
+ Bounds
+ {{50, 105}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 90
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 imageid}
+
+
+
+ Bounds
+ {{50, 121}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 92
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 deleted}
+
+
+
+ GridH
+
+ 51
+ 48
+ 49
+ 50
+ 81
+ 90
+ 92
+
+
+ ID
+ 47
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 29
+ Info
+ 3
+
+ ID
+ 46
+ Points
+
+ {215, 197}
+ {163, 197}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 15
+
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 17
+ Info
+ 2
+
+ ID
+ 45
+ Points
+
+ {163, 113}
+ {215, 229}
+
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 90
+
+
+
+ Class
+ LineGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ Head
+
+ ID
+ 16
+
+ ID
+ 35
+ Points
+
+ {163, 97}
+ {215, 213}
+
+ Rotation
+ 359.50341796875
+ Style
+
+ stroke
+
+ HeadArrow
+ 0
+ LineType
+ 1
+ TailArrow
+ 0
+
+
+ Tail
+
+ ID
+ 81
+ Info
+ 1
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{50, 205}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 30
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 itemid}
+
+
+
+ Bounds
+ {{50, 189}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 29
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 id}
+
+
+
+ Bounds
+ {{50, 221}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 31
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 collectionid}
+
+
+
+ Bounds
+ {{50, 173}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 28
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_resource}
+
+
+
+ Bounds
+ {{50, 237}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 94
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 resource_revid}
+
+
+
+ Bounds
+ {{50, 253}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 102
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 main}
+
+
+
+ GridH
+
+ 28
+ 29
+ 30
+ 31
+ 94
+ 102
+
+
+ ID
+ 27
+ Magnets
+
+ {0, 1}
+ {0, -1}
+ {1, 0}
+ {-1, 0}
+
+
+
+ Class
+ TableGroup
+ Graphics
+
+
+ Bounds
+ {{215, 189}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 15
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 resourceid}
+
+
+
+ Bounds
+ {{215, 205}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 16
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 item_collection}
+
+
+
+ Bounds
+ {{215, 173}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 14
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\b\fs22 \cf0 d2_group_resource}
+
+
+
+ Bounds
+ {{215, 221}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 17
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 itemid}
+
+
+
+ Bounds
+ {{215, 237}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 76
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 groupid}
+
+
+
+ Bounds
+ {{215, 253}, {113, 16}}
+ Class
+ ShapedGraphic
+ FontInfo
+
+ Font
+ Helvetica
+ Size
+ 11
+
+ ID
+ 77
+ Magnets
+
+ {1, 0}
+ {-1, 0}
+
+ Shape
+ Rectangle
+ Text
+
+ Text
+ {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\qc\pardirnatural
+
+\f0\fs22 \cf0 collectionid}
+
+
+
+ GridH
+
+ 14
+ 15
+ 16
+ 17
+ 76
+ 77
+
+
+ ID
+ 13
+
+
+ GridInfo
+
+ GuidesLocked
+ NO
+ GuidesVisible
+ YES
+ HPages
+ 1
+ ImageCounter
+ 1
+ KeepToScale
+
+ Layers
+
+
+ Lock
+ NO
+ Name
+ Layer 1
+ Print
+ YES
+ View
+ YES
+
+
+ LayoutInfo
+
+ Animate
+ NO
+ circoMinDist
+ 18
+ circoSeparation
+ 0.0
+ layoutEngine
+ circo
+ neatoSeparation
+ 0.0
+ twopiSeparation
+ 0.0
+
+ LinksVisible
+ NO
+ MagnetsVisible
+ NO
+ MasterSheets
+
+ ModificationDate
+ 2009-10-17 17:25:57 +0200
+ Modifier
+ sellittf
+ NotesVisible
+ NO
+ Orientation
+ 1
+ OriginVisible
+ NO
+ PageBreaks
+ YES
+ PrintInfo
+
+ NSBottomMargin
+
+ float
+ 41
+
+ NSLeftMargin
+
+ float
+ 18
+
+ NSPaperSize
+
+ size
+ {594.99, 841.98}
+
+ NSRightMargin
+
+ float
+ 18
+
+ NSTopMargin
+
+ float
+ 18
+
+
+ PrintOnePage
+
+ QuickLookPreview
+
+ JVBERi0xLjMKJcTl8uXrp/Og0MTGCjUgMCBvYmoKPDwgL0xlbmd0aCA2IDAgUiAvRmls
+ dGVyIC9GbGF0ZURlY29kZSA+PgpzdHJlYW0KeAGlWU1v20YQvfNX7LE5hN5vkte6LdCe
+ msZAj4YgK4ECy3ZkJWj/fd8s94vLpUinMYLI0ZCcnXnz5s3wK/vAvjKOn65XzJiBnQ/s
+ b/bEbm5fBdu/MuF+XvfsPW8Nd38YPgl8GnpcJFv8Y0zfDkODSz+xmz8P5/3h5fJt98jO
+ R9xcKOMeoHomuWayM2x/Yje/nwT75dk9vrQYRDNayAULxTt/D7VkYcJTdFN/ipLK38Ms
+ 3UMN3sJ6iybzFF+mo3SVW5DBgBi6s/Z1A2WMP+qwYBBPKviCRfRSiMpR8W06qagFFBY6
+ PSUEtDiqjtESuu6HTn7UAopvDVf+sCIENAcH+RGzJhYiqrsQUdHXT6v7gA2RYqoJ4ZwB
+ gmrgTFrr0yLHoDZA6dREKR5MEkynJrKXwSSFtTAZ+oDkENfZgxBPD/ZaYC3SroaAVGkq
+ Z3YmXTi0XAhtRKIMkS0yHMtS1rBKlZsyLFNkp8WdUoz41esu5VilyE7vkpKsZOXAzpeY
+ ZZUim+4CLEkFmvKhVRTahpiuKGChk00VtV0Pg8yfMbqEl+xhzghHD08LEZ4bJXACihSf
+ 6Z3Ao1Ql4T61KJNJugvg5qJ889fhcXc5fj/cPj8+n4+nw+V83DegXykMWIgzIRRD1TmG
+ FuwPkPqXkeJvP7rK4OzjLYXH/fKe/qFeAGC6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BEAEsAbABlAHUAcgBlAG4ALQBMAEMARABMAEMARAAgAGMAbwBsAG8A
+ cgBpAABtbW9kAAAAAAAABhAAAJyjAAAAAMV4fYAAAAAAAAAAAAAAAAAAAAAAdGV4dAAA
+ AABDb3B5cmlnaHQgQXBwbGUsIEluYy4sIDIwMDkA
+
+ ReadOnly
+ NO
+ RowAlign
+ 1
+ RowSpacing
+ 36
+ SheetTitle
+ Canvas 1
+ SmartAlignmentGuidesActive
+ YES
+ SmartDistanceGuidesActive
+ YES
+ UniqueID
+ 1
+ UseEntirePage
+
+ VPages
+ 1
+ WindowInfo
+
+ CurrentSheet
+ 0
+ ExpandedCanvases
+
+
+ name
+ Canvas 1
+
+
+ Frame
+ {{61, 14}, {1188, 854}}
+ ListView
+
+ OutlineWidth
+ 142
+ RightSidebar
+
+ ShowRuler
+
+ Sidebar
+
+ SidebarWidth
+ 120
+ VisibleRegion
+ {{-135, -70}, {1053, 700}}
+ Zoom
+ 1
+ ZoomValues
+
+
+ Canvas 1
+ 1
+ 2
+
+
+
+ saveQuickLookFiles
+ YES
+
+
diff --git a/vendor/dilps2_exporter/doc/sql_queries.log b/vendor/dilps2_exporter/doc/sql_queries.log
new file mode 100644
index 0000000000..2d681184ca
--- /dev/null
+++ b/vendor/dilps2_exporter/doc/sql_queries.log
@@ -0,0 +1,336 @@
+==============================================================================
+Erwiterte Suche Sammlung Saeulenprojekt
+==============================================================================
+SELECT item.collectionid AS `collectionid`,
+ item.`imageid` AS `itemid`,
+ item.`item_revid` AS `revid`,
+ item.`deleted` AS `deleted`,
+ item.`creation_date` AS `creation_date`,
+ item.`modification_date` AS `modification_date`,
+ item.`creator` AS `creator`,
+ item.`modifier` AS `modifier`,
+ item_rev.`type` AS `type`,
+ item_rev.`status` AS `status`,
+ item_rev.`addition` AS `addition`,
+ item_rev.`title` AS `title`,
+ item_rev.`dating` AS `dating`,
+ item_rev.`format` AS `format`,
+ item_rev.`institution` AS `institution`,
+ item_rev.`source_type` AS `source_type`,
+ item_rev.`source` AS `source`,
+ item_rev.`keyword` AS `keyword`,
+ item_rev.`modify_date` AS `modify_date`,
+ item_rev.`name1id` AS `name1id`,
+ item_rev.`name2id` AS `name2id`,
+ item_rev.`locationid` AS `locationid`,
+ item_rev.`metaeditor` AS `metaeditor`,
+ item_rev.`name1` AS `name1`,
+ item_rev.`name2` AS `name2`,
+ item_rev.`country` AS `country`,
+ item_rev.`location` AS `location`,
+ item_rev.`locationsounds` AS `locationsounds`,
+ item_rev.`name1sounds` AS `name1sounds`,
+ item_rev.`name2sounds` AS `name2sounds`,
+ res_cache.urn AS `cache_urn`,
+ res_cache.width AS `cache_width`,
+ res_cache.height AS `cache_height`,
+ res_cache.name AS `cache_name`,
+ res.id AS `res_id`,
+ res_rev.type AS `res_type`,
+ res_rev.filename AS `res_urn`,
+ res_rev.description AS `res_description`,
+ res.main AS `res_main`
+ FROM d2_resource_cache AS res_cache,
+ d2_resource AS res,
+ d2_acl as acl1,
+ d2_acl as acl2,
+ d2_acl as acl3,
+ d2_item_rev AS item_rev,
+ d2_resource_rev AS res_rev,
+ d2_item as item
+
+ WHERE ( 1
+ AND ( 0
+ OR ( 0
+ OR item_rev.collectionid='11'
+ ) )
+ AND ( 0
+ OR ( 0
+ OR item_rev.type LIKE '%%%'
+ ) )
+ AND ( 0
+ OR ( 0
+ OR res_cache.name='thumb'
+ )
+ AND res.id=res_cache.resourceid )
+ AND ( 0
+ OR ( 0
+ OR item.deleted = '0'
+ ) ) ) AND item.collectionid IN (1,15,8,16,17,13,3,9,18,11,10,14,19)
+ AND res.itemid=item.imageid AND res.collectionid=item.collectionid
+ AND (0
+ OR (acl1.usertype='user' AND acl1.userid='local/guest')
+ OR (acl1.usertype='group' AND acl1.userid='local/guest')
+ )
+ AND acl1.collectionid=item.collectionid
+ AND acl1.id=item.imageid
+ AND acl1.collectionid=item.collectionid
+ AND acl1.type='item'
+ AND acl1.ip_from<=2887714714
+ AND acl1.ip_to>=2887714714
+ AND (0
+ OR (acl2.usertype='user' AND acl2.userid='local/guest')
+ OR (acl2.usertype='group' AND acl2.userid='local/guest')
+ )
+ AND acl2.collectionid=item.collectionid
+ AND acl2.type='collection'
+ AND acl2.ip_from<=2887714714
+ AND acl2.ip_to>=2887714714
+ AND (0
+ OR (acl3.usertype='user' AND acl3.userid='local/guest')
+ OR (acl3.usertype='group' AND acl3.userid='local/guest')
+ )
+ AND acl3.id=res.id
+ AND acl3.type='resource'
+ AND acl3.ip_from<=2887714714
+ AND acl3.ip_to>=2887714714
+ AND item.item_revid=item_rev.id
+ AND res.itemid=item.imageid
+ AND res.collectionid=item.collectionid
+ AND res.resource_revid=res_rev.id
+ AND res.main=1
+ GROUP BY `collectionid`,`itemid`,`revid`,`deleted`,`creation_date`,`modification_date`,`creator`,`modifier`,`type`,`status`,`addition`,`title`,`dating`,`format`,`institution`,`source_type`,`source`,`keyword`,`modify_date`,`name1id`,`name2id`,`locationid`,`metaeditor`,`name1`,`name2`,`country`,`location`,`locationsounds`,`name1sounds`,`name2sounds`,`cache_urn`,`cache_width`,`cache_height`,`cache_name`,`res_id`,`res_type`,`res_urn`,`res_description`,`res_main`
+HAVING
+ SUM(acl1.`read`)>0
+ AND SUM(acl1.`exec`)>0
+ AND SUM(acl1.`revoke`)=0
+ AND SUM(acl2.`read`)>0
+ AND SUM(acl2.`exec`)>0
+ AND SUM(acl2.`revoke`)=0
+ AND SUM(acl3.`read`)>0
+ AND SUM(acl3.`exec`)>0
+ AND SUM(acl3.`revoke`)=0 ORDER BY item.creation_date DESC;
+
+==============================================================================
+Erwiterte Suche Sammlung Saeulenprojekt (simplified, select *, no acl)
+==============================================================================
+SELECT *
+FROM d2_resource_cache AS res_cache,
+ d2_resource AS res,
+ d2_item_rev AS item_rev,
+ d2_resource_rev AS res_rev,
+ d2_item as item
+WHERE ( 1
+ AND item_rev.collectionid='11'
+ AND (res_cache.name='thumb' AND res.id=res_cache.resourceid )
+ AND item.deleted = '0' )
+ AND item.collectionid IN (1,15,8,16,17,13,3,9,18,11,10,14,19)
+AND res.itemid=item.imageid
+AND res.collectionid=item.collectionid
+AND item.item_revid=item_rev.id
+AND res.resource_revid=res_rev.id
+ AND res.main=1
+ GROUP BY `collectionid`,`itemid`,`revid`,`deleted`,`creation_date`,`modification_date`,`creator`,`modifier`,`type`,`status`,`addition`,`title`,`dating`,`format`,`institution`,`source_type`,`source`,`keyword`,`modify_date`,`name1id`,`name2id`,`locationid`,`metaeditor`,`name1`,`name2`,`country`,`location`,`locationsounds`,`name1sounds`,`name2sounds`,`cache_urn`,`cache_width`,`cache_height`,`cache_name`,`res_id`,`res_type`,`res_urn`,`res_description`,`res_main`;
+
+==============================================================================
+Item Show
+==============================================================================
+>>>>>>>>>>>>> START >>>>>>>>>>>>>>>
+class: DisplayMeta
+funct: showmeta
+file: DisplayMeta.class.php
+line: 451
+Array
+(
+ [cache_urn] => urn://hgkz/design/11:2419/12941/QVGA
+ [cache_width] => 313
+ [cache_height] => 240
+ [cache_name] => QVGA
+ [res_type] => image
+ [res_urn] => 11_2419_Corinthia.jpg
+ [res_description] => local/geiger/Corinthia.jpg
+ [res_id] => 12941
+ [cache_url] => http://media2.zhdk.ch/dilps2/resource.php/diverses/lib01/e/8/320x240_12941.jpg?__SID__
+)
+
+^^^^^^^^^^^^^^ END ^^^^^^^^^^^^
+
+==============================================================================
+Index scoped by group "user - zhdk/Schumacher - Blum"
+==============================================================================
+>>>>>>>>>>>>> START >>>>>>>>>>>>>>>
+SELECT item.collectionid AS `collectionid`,
+ item.`imageid` AS `itemid`,
+ item.`item_revid` AS `revid`,
+ item.`deleted` AS `deleted`,
+ item.`creation_date` AS `creation_date`,
+ item.`modification_date` AS `modification_date`,
+ item.`creator` AS `creator`,
+ item.`modifier` AS `modifier`,
+ item_rev.`type` AS `type`,
+ item_rev.`status` AS `status`,
+ item_rev.`addition` AS `addition`,
+ item_rev.`title` AS `title`,
+ item_rev.`dating` AS `dating`,
+ item_rev.`format` AS `format`,
+ item_rev.`institution` AS `institution`,
+ item_rev.`source_type` AS `source_type`,
+ item_rev.`source` AS `source`,
+ item_rev.`keyword` AS `keyword`,
+ item_rev.`modify_date` AS `modify_date`,
+ item_rev.`name1id` AS `name1id`,
+ item_rev.`name2id` AS `name2id`,
+ item_rev.`locationid` AS `locationid`,
+ item_rev.`metaeditor` AS `metaeditor`,
+ item_rev.`name1` AS `name1`,
+ item_rev.`name2` AS `name2`,
+ item_rev.`country` AS `country`,
+ item_rev.`location` AS `location`,
+ item_rev.`locationsounds` AS `locationsounds`,
+ item_rev.`name1sounds` AS `name1sounds`,
+ item_rev.`name2sounds` AS `name2sounds`,
+ res_cache.urn AS `cache_urn`,
+ res_cache.width AS `cache_width`,
+ res_cache.height AS `cache_height`,
+ res_cache.name AS `cache_name`,
+ res.id AS `res_id`,
+ res_rev.type AS `res_type`,
+ res_rev.filename AS `res_urn`,
+ res_rev.description AS `res_description`,
+ res.main AS `res_main`
+ FROM d2_group_resource AS grp1,
+ d2_resource_cache AS res_cache,
+ d2_resource AS res,
+ d2_acl as acl1,
+ d2_acl as acl2,
+ d2_acl as acl3,
+ d2_acl as acl4,
+ d2_item_rev AS item_rev,
+ d2_resource_rev AS res_rev,
+ d2_item as item
+
+ WHERE ( 1
+ AND ( 0
+ OR (0
+ OR (grp1.groupid=717796 AND grp1.collectionid=1)
+ )
+ AND grp1.item_collection=item.collectionid
+ AND grp1.itemid=item.imageid
+ AND grp1.resourceid=res.id )
+ AND ( 0
+ OR ( 0
+ OR res_cache.name='thumb'
+ )
+ AND res.id=res_cache.resourceid )
+ AND ( 0
+ OR ( 0
+ OR item.deleted = '0'
+ ) ) ) AND item.collectionid IN (1,15,8,16,17,13,3,9,18,11,10,19)
+ AND res.itemid=item.imageid AND res.collectionid=item.collectionid
+ AND (0
+ OR (acl1.usertype='user' AND acl1.userid='zhdk/Schumacher')
+ OR (acl1.usertype='group' AND acl1.userid='local/users')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/users')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/Verteilerliste.App_Projektarchiv_Admin')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/dozierende')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/DDE_FDE.alle')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/DDE_FDE.dozierende')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/DDE.alle')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/DDE.dozierende')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/Citrix Blade Word')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/Citrix Blade Internetexplorer')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/Citrix Blade Outlook')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/GRP_Bibliothek')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/LogonHGKZ')
+ OR (acl1.usertype='group' AND acl1.userid='zhdk/SNM')
+ )
+ AND acl1.collectionid=item.collectionid
+ AND acl1.id=item.imageid
+ AND acl1.collectionid=item.collectionid
+ AND acl1.type='item'
+ AND acl1.ip_from<=2887714714
+ AND acl1.ip_to>=2887714714
+ AND (0
+ OR (acl2.usertype='user' AND acl2.userid='zhdk/Schumacher')
+ OR (acl2.usertype='group' AND acl2.userid='local/users')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/users')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/Verteilerliste.App_Projektarchiv_Admin')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/dozierende')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/DDE_FDE.alle')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/DDE_FDE.dozierende')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/DDE.alle')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/DDE.dozierende')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/Citrix Blade Word')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/Citrix Blade Internetexplorer')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/Citrix Blade Outlook')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/GRP_Bibliothek')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/LogonHGKZ')
+ OR (acl2.usertype='group' AND acl2.userid='zhdk/SNM')
+ )
+ AND acl2.collectionid=item.collectionid
+ AND acl2.type='collection'
+ AND acl2.ip_from<=2887714714
+ AND acl2.ip_to>=2887714714
+ AND (0
+ OR (acl3.usertype='user' AND acl3.userid='zhdk/Schumacher')
+ OR (acl3.usertype='group' AND acl3.userid='local/users')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/users')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/Verteilerliste.App_Projektarchiv_Admin')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/dozierende')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/DDE_FDE.alle')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/DDE_FDE.dozierende')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/DDE.alle')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/DDE.dozierende')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/Citrix Blade Word')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/Citrix Blade Internetexplorer')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/Citrix Blade Outlook')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/GRP_Bibliothek')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/LogonHGKZ')
+ OR (acl3.usertype='group' AND acl3.userid='zhdk/SNM')
+ )
+ AND acl3.id=res.id
+ AND acl3.type='resource'
+ AND acl3.ip_from<=2887714714
+ AND acl3.ip_to>=2887714714
+ AND (0
+ OR (acl4.usertype='user' AND acl4.userid='zhdk/Schumacher')
+ OR (acl4.usertype='group' AND acl4.userid='local/users')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/users')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/Verteilerliste.App_Projektarchiv_Admin')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/dozierende')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/DDE_FDE.alle')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/DDE_FDE.dozierende')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/DDE.alle')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/DDE.dozierende')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/Citrix Blade Word')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/Citrix Blade Internetexplorer')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/Citrix Blade Outlook')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/GRP_Bibliothek')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/LogonHGKZ')
+ OR (acl4.usertype='group' AND acl4.userid='zhdk/SNM')
+ )
+ AND acl4.collectionid=grp1.collectionid
+ AND acl4.id=grp1.groupid
+ AND acl4.type='group'
+ AND acl4.ip_from<=2887714714
+ AND acl4.ip_to>=2887714714
+ AND item.item_revid=item_rev.id
+ AND res.itemid=item.imageid
+ AND res.collectionid=item.collectionid
+ AND res.resource_revid=res_rev.id
+ GROUP BY `collectionid`,`itemid`,`revid`,`deleted`,`creation_date`,`modification_date`,`creator`,`modifier`,`type`,`status`,`addition`,`title`,`dating`,`format`,`institution`,`source_type`,`source`,`keyword`,`modify_date`,`name1id`,`name2id`,`locationid`,`metaeditor`,`name1`,`name2`,`country`,`location`,`locationsounds`,`name1sounds`,`name2sounds`,`cache_urn`,`cache_width`,`cache_height`,`cache_name`,`res_id`,`res_type`,`res_urn`,`res_description`,`res_main`
+HAVING
+ SUM(acl1.`read`)>0
+ AND SUM(acl1.`exec`)>0
+ AND SUM(acl1.`revoke`)=0
+ AND SUM(acl2.`read`)>0
+ AND SUM(acl2.`exec`)>0
+ AND SUM(acl2.`revoke`)=0
+ AND SUM(acl3.`read`)>0
+ AND SUM(acl3.`exec`)>0
+ AND SUM(acl3.`revoke`)=0
+ AND SUM(acl4.`read`)>0
+ AND SUM(acl4.`exec`)>0
+ AND SUM(acl4.`revoke`)=0 ORDER BY item.creation_date DESC
+
+
diff --git a/vendor/dilps2_exporter/init.rb b/vendor/dilps2_exporter/init.rb
new file mode 100644
index 0000000000..3c19a743c9
--- /dev/null
+++ b/vendor/dilps2_exporter/init.rb
@@ -0,0 +1 @@
+# Include hook code here
diff --git a/vendor/dilps2_exporter/install.rb b/vendor/dilps2_exporter/install.rb
new file mode 100644
index 0000000000..f7732d3796
--- /dev/null
+++ b/vendor/dilps2_exporter/install.rb
@@ -0,0 +1 @@
+# Install hook code here
diff --git a/vendor/dilps2_exporter/lib/dilps2_exporter.rb b/vendor/dilps2_exporter/lib/dilps2_exporter.rb
new file mode 100644
index 0000000000..3f270cd878
--- /dev/null
+++ b/vendor/dilps2_exporter/lib/dilps2_exporter.rb
@@ -0,0 +1 @@
+# Dilps2-exporter
diff --git a/vendor/dilps2_exporter/tasks/dilps2_exporter_tasks.rake b/vendor/dilps2_exporter/tasks/dilps2_exporter_tasks.rake
new file mode 100644
index 0000000000..8cdfa3f43c
--- /dev/null
+++ b/vendor/dilps2_exporter/tasks/dilps2_exporter_tasks.rake
@@ -0,0 +1,9 @@
+namespace :dilps2 do
+
+ desc "Yaml generator"
+ task :export do
+ # TODO
+ # Item.all.to_yaml
+ end
+
+end
diff --git a/vendor/dilps2_exporter/test/dilps2_exporter_test.rb b/vendor/dilps2_exporter/test/dilps2_exporter_test.rb
new file mode 100644
index 0000000000..90cb56ba0d
--- /dev/null
+++ b/vendor/dilps2_exporter/test/dilps2_exporter_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class Dilps2-exporterTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/vendor/dilps2_exporter/test/test_helper.rb b/vendor/dilps2_exporter/test/test_helper.rb
new file mode 100644
index 0000000000..cf148b8b47
--- /dev/null
+++ b/vendor/dilps2_exporter/test/test_helper.rb
@@ -0,0 +1,3 @@
+require 'rubygems'
+require 'active_support'
+require 'active_support/test_case'
\ No newline at end of file
diff --git a/vendor/dilps2_exporter/uninstall.rb b/vendor/dilps2_exporter/uninstall.rb
new file mode 100644
index 0000000000..9738333463
--- /dev/null
+++ b/vendor/dilps2_exporter/uninstall.rb
@@ -0,0 +1 @@
+# Uninstall hook code here
diff --git a/vendor/plugins/.gitkeep b/vendor/plugins/.gitkeep
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/vendor/plugins/rails_upgrade/MIT-LICENSE b/vendor/plugins/rails_upgrade/MIT-LICENSE
new file mode 100644
index 0000000000..a7f3e5616d
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2010 Jeremy McAnally
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/plugins/rails_upgrade/README b/vendor/plugins/rails_upgrade/README
new file mode 100644
index 0000000000..8d5c86d661
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/README
@@ -0,0 +1,20 @@
+= rails-upgrade
+
+A simple battery of scripts for upgrading Rails app/checking them for required updates. This application should work on Rails 2.x and 3.0, with a focus on upgrading to 3.0.
+
+== Usage
+
+ # Check your app for required upgrades
+ rake rails:upgrade:check
+
+ # Backup your likely modified files that might be overwritten by the generator
+ rake rails:upgrade:backup
+
+ # Generate a new route file
+ rake rails:upgrade:routes
+
+ # Generate a Gemfile from your config.gem directives
+ rake rails:upgrade:gems
+
+ # Generate code for a new config/application.rb from your environment.rb
+ rake rails:upgrade:configuration
\ No newline at end of file
diff --git a/vendor/plugins/rails_upgrade/Rakefile b/vendor/plugins/rails_upgrade/Rakefile
new file mode 100644
index 0000000000..421514ed37
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/Rakefile
@@ -0,0 +1,22 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+Rake::TestTask.new do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.test_files = FileList['test/*_test.rb']
+ t.verbose = true
+end
+
+desc 'Generate documentation for the rails_upgrade plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'Rails-upgrade'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
diff --git a/vendor/plugins/rails_upgrade/init.rb b/vendor/plugins/rails_upgrade/init.rb
new file mode 100644
index 0000000000..62acda881b
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/init.rb
@@ -0,0 +1,3 @@
+# -*- encoding : utf-8 -*-
+# Get long stack traces for easier debugging; you'll thank me later.
+Rails.backtrace_cleaner.remove_silencers!
diff --git a/vendor/plugins/rails_upgrade/install.rb b/vendor/plugins/rails_upgrade/install.rb
new file mode 100644
index 0000000000..d177c291a4
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/install.rb
@@ -0,0 +1,39 @@
+# -*- encoding : utf-8 -*-
+puts "Thanks for installing the Rails upgrade plugin. This is a set of generators and analysis tools to help you upgrade your application to Rails 3. It consists of three tasks...
+
+To get a feel for what you'll need to change to get your app running, run the application analysis:
+
+ rake rails:upgrade:check
+
+This should give you an idea of the manual changes that need to be done, but you'll probably want to upgrade some of those automatically. The fastest way to do this is to run 'rails .', which will simply generate a new app on top of your existing code. But this generation also has the effect of replacing some existing files, some of which you might not want to replace. To back those up, first run:
+
+ rake rails:upgrade:backup
+
+That will backup files you've probably edited that will be replaced in the upgrade; if you finish the upgrade and find that you don't need the old copies, just delete them. Otherwise, copy their contents back into the new files or run one of the following upgraders...
+
+Routes upgrader
+===============
+
+To generate a new routes file from your existing routes file, simply run the following Rake task:
+
+ rake rails:upgrade:routes
+
+This will output a new routes file that you can copy and paste or pipe into a new, Rails 3 compatible config/routes.rb.
+
+Gemfile generator
+=================
+
+Creating a new Gemfile is as simple as running:
+
+ rake rails:upgrade:gems
+
+This task will extract your config.gem calls and generate code you can put into a bundler compatible Gemfile.
+
+Configuration generator
+=======================
+
+Much of the configuration information that lived in environment.rb now belongs in a new file named config/application.rb; use the following task to generate code you can put into config/application.rb from your existing config/environment.rb:
+
+ rake rails:upgrade:configuration
+
+"
diff --git a/vendor/plugins/rails_upgrade/lib/application_checker.rb b/vendor/plugins/rails_upgrade/lib/application_checker.rb
new file mode 100644
index 0000000000..75125b8d89
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/lib/application_checker.rb
@@ -0,0 +1,470 @@
+# -*- encoding : utf-8 -*-
+require 'open3'
+
+module Rails
+ module Upgrading
+ class ApplicationChecker
+ def initialize
+ @issues = []
+
+ raise NotInRailsAppError unless in_rails_app?
+ end
+
+ def in_rails_app?
+ File.exist?("config/environment.rb")
+ end
+
+ # Run all the check methods
+ def run
+ # Ruby 1.8 returns method names as strings whereas 1.9 uses symbols
+ the_methods = (self.public_methods - Object.methods) - [:run, :initialize, "run", "initialize"]
+
+ the_methods.each {|m| send m }
+ end
+
+ # Check for deprecated ActiveRecord calls
+ def check_ar_methods
+ files = []
+ ["find(:all", "find(:first", "find.*:conditions =>", ":joins =>"].each do |v|
+ lines = grep_for(v, "app/")
+ files += extract_filenames(lines) || []
+ end
+
+ unless files.empty?
+ alert(
+ "Soon-to-be-deprecated ActiveRecord calls",
+ "Methods such as find(:all), find(:first), finds with conditions, and the :joins option will soon be deprecated.",
+ "http://m.onkey.org/2010/1/22/active-record-query-interface",
+ files
+ )
+ end
+
+ lines = grep_for("named_scope", "app/models/")
+ files = extract_filenames(lines)
+
+ if files
+ alert(
+ "named_scope is now just scope",
+ "The named_scope method has been renamed to just scope.",
+ "http://github.com/rails/rails/commit/d60bb0a9e4be2ac0a9de9a69041a4ddc2e0cc914",
+ files
+ )
+ end
+ end
+
+ def check_validation_on_methods
+ files = []
+
+ ["validate_on_create", "validate_on_update"].each do |v|
+ lines = grep_for(v, "app/models/")
+ files += extract_filenames(lines) || []
+ end
+
+ unless files.empty?
+ alert(
+ "Updated syntax for validate_on_* methods",
+ "Validate-on-callback methods (validate_on_create/validate_on_destroy) have been changed to validate :x, :on => :create",
+ "https://rails.lighthouseapp.com/projects/8994/tickets/3880-validate_on_create-and-validate_on_update-no-longer-seem-to-exist",
+ files
+ )
+ end
+ end
+
+ def check_before_validation_on_methods
+ files = []
+
+ %w(before_validation_on_create before_validation_on_update).each do |v|
+ lines = grep_for(v, "app/models/")
+ files += extract_filenames(lines) || []
+ end
+
+ unless files.empty?
+ alert(
+ "Updated syntax for before_validation_on_* methods",
+ "before_validation_on_* methods have been changed to before_validation(:on => :create/:update) { ... }",
+ "https://rails.lighthouseapp.com/projects/8994/tickets/4699-before_validation_on_create-and-before_validation_on_update-doesnt-exist",
+ files
+ )
+ end
+ end
+
+ # Check for deprecated router syntax
+ def check_routes
+ lines = ["map\\.", "ActionController::Routing::Routes", "\\.resources"].map do |v|
+ grep_for(v, "config/routes.rb").empty? ? nil : true
+ end.compact
+
+ unless lines.empty?
+ alert(
+ "Old router API",
+ "The router API has totally changed.",
+ "http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/",
+ "config/routes.rb"
+ )
+ end
+ end
+
+ # Check for deprecated test_help require
+ def check_test_help
+ files = []
+
+ # Hate to duplicate code, but we have to double quote this one...
+ lines = grep_for("\'test_help\'", "test/", true)
+ files += extract_filenames(lines) || []
+
+ lines = grep_for("\"test_help\"", "test/")
+ files += extract_filenames(lines) || []
+
+ files.uniq!
+
+ unless files.empty?
+ alert(
+ "Deprecated test_help path",
+ "You now must require 'rails/test_help' not just 'test_help'.",
+ "http://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practices",
+ files
+ )
+ end
+ end
+
+ # Check for old (pre-application.rb) environment.rb file
+ def check_environment
+ unless File.exist?("config/application.rb")
+ alert(
+ "New file needed: config/application.rb",
+ "You need to add a config/application.rb.",
+ "http://omgbloglol.com/post/353978923/the-path-to-rails-3-approaching-the-upgrade",
+ "config/application.rb"
+ )
+ end
+
+ lines = grep_for("config.", "config/environment.rb")
+
+ unless lines.empty?
+ alert(
+ "Old environment.rb",
+ "environment.rb doesn't do what it used to; you'll need to move some of that into application.rb.",
+ "http://omgbloglol.com/post/353978923/the-path-to-rails-3-approaching-the-upgrade",
+ "config/environment.rb"
+ )
+ end
+ end
+
+ # Check for deprecated constants
+ def check_deprecated_constants
+ files = []
+ ["RAILS_ENV", "RAILS_ROOT", "RAILS_DEFAULT_LOGGER"].each do |v|
+ lines = grep_for(v, "app/")
+ files += extract_filenames(lines) || []
+
+ lines = grep_for(v, "lib/")
+ files += extract_filenames(lines) || []
+ end
+
+ unless files.empty?
+ alert(
+ "Deprecated constant(s)",
+ "Constants like RAILS_ENV, RAILS_ROOT, and RAILS_DEFAULT_LOGGER are now deprecated.",
+ "http://litanyagainstfear.com/blog/2010/02/03/the-rails-module/",
+ files.uniq
+ )
+ end
+ end
+
+ # Check for old-style config.gem calls
+ def check_gems
+ lines = grep_for("config.gem ", "config/*.rb")
+ files = extract_filenames(lines)
+
+ if files
+ alert(
+ "Old gem bundling (config.gems)",
+ "The old way of bundling is gone now. You need a Gemfile for bundler.",
+ "http://omgbloglol.com/post/353978923/the-path-to-rails-3-approaching-the-upgrade",
+ files
+ )
+ end
+ end
+
+ # Checks for old mailer syntax in both mailer classes and those
+ # classes utilizing the mailers
+ def check_mailers
+ lines = grep_for("deliver_", "app/models/ #{base_path}app/controllers/ #{base_path}app/observers/")
+ files = extract_filenames(lines)
+
+ if files
+ alert(
+ "Deprecated ActionMailer API",
+ "You're using the old ActionMailer API to send e-mails in a controller, model, or observer.",
+ "http://lindsaar.net/2010/1/26/new-actionmailer-api-in-rails-3",
+ files
+ )
+ end
+
+ files = []
+ ["recipients ", "attachment(?!s) ", "(?", "app/views/**/*")
+ files = extract_filenames(lines)
+
+ if files
+ alert(
+ "Deprecated ERb helper calls",
+ "Block helpers that use concat (e.g., form_for) should use <%= instead of <%. The current form will continue to work for now, but you will get deprecation warnings since this form will go away in the future.",
+ "http://weblog.rubyonrails.org/",
+ files
+ )
+ end
+ end
+
+ # Checks for old-style AJAX helpers
+ def check_old_ajax_helpers
+ files = []
+ ['link_to_remote','form_remote_tag','remote_form_for'].each do |type|
+ lines = grep_for(type, "app/views/**/*")
+ inner_files = extract_filenames(lines)
+ files += inner_files unless inner_files.nil?
+ end
+
+ unless files.empty?
+ alert(
+ "Deprecated AJAX helper calls",
+ "AJAX javascript helpers have been switched to be unobtrusive and use :remote => true instead of having a seperate function to handle remote requests.",
+ "http://www.themodestrubyist.com/2010/02/24/rails-3-ujs-and-csrf-meta-tags/",
+ files
+ )
+ end
+ end
+
+ # Checks for old cookie secret settings
+ def check_old_cookie_secret
+ lines = grep_for("ActionController::Base.cookie_verifier_secret = ", "config/**/*")
+ files = extract_filenames(lines)
+
+ if files
+ alert(
+ "Deprecated cookie secret setting",
+ "Previously, cookie secret was set directly on ActionController::Base; it's now config.secret_token.",
+ "http://lindsaar.net/2010/4/7/rails_3_session_secret_and_session_store",
+ files
+ )
+ end
+ end
+
+ def check_old_session_secret
+ lines = grep_for("ActionController::Base.session = {", "config/**/*")
+ files = extract_filenames(lines)
+
+ if files
+ alert(
+ "Deprecated session secret setting",
+ "Previously, session secret was set directly on ActionController::Base; it's now config.secret_token.",
+ "http://lindsaar.net/2010/4/7/rails_3_session_secret_and_session_store",
+ files
+ )
+ end
+ end
+
+ # Checks for old session settings
+ def check_old_session_setting
+ lines = grep_for("ActionController::Base.session_store", "config/**/*")
+ files = extract_filenames(lines)
+
+ if files
+ alert(
+ "Old session store setting",
+ "Previously, session store was set directly on ActionController::Base; it's now config.session_store :whatever.",
+ "http://lindsaar.net/2010/4/7/rails_3_session_secret_and_session_store",
+ files
+ )
+ end
+ end
+
+ private
+ def grep_for_with_perl_regex(text, where = "./", double_quote = false)
+ grep_for(text, where, double_quote, true)
+ end
+
+ # Find a string in a set of files; calls +find_with_grep+ and +find_with_rak+
+ # depending on platform.
+ #
+ # TODO: Figure out if this works on Windows.
+ def grep_for(text, where = "./", double_quote = false, perl_regex = false)
+ # If they're on Windows, they probably don't have grep.
+ @probably_has_grep ||= (Config::CONFIG['host_os'].downcase =~ /mswin|windows|mingw/).nil?
+
+ lines = if @probably_has_grep
+ find_with_grep(text, base_path + where, double_quote, perl_regex)
+ else
+ find_with_rak(text, base_path + where, double_quote)
+ end
+
+ # ignore comments
+ lines.gsub! /^\s*#.+$/m, ""
+
+ lines
+ end
+
+ # Sets a base path for finding files; mostly for testing
+ def base_path
+ Dir.pwd + "/"
+ end
+
+ # Use the grep utility to find a string in a set of files
+ def find_with_grep(text, where, double_quote, perl_regex = false)
+ value = ""
+ # Specifically double quote for finding 'test_help'
+ command = if double_quote
+ "grep -r #{"-P" if perl_regex} --exclude=\*.svn\* \"#{text}\" #{where}"
+ else
+ "grep -r #{"-P" if perl_regex} --exclude=\*.svn\* '#{text}' #{where}"
+ end
+
+ Open3.popen3(command) do |stdin, stdout, stderr|
+ value = stdout.read
+ end
+
+ value
+ end
+
+ # Use the rak gem to grep the files (not yet implemented)
+ def find_with_rak(text, where, double_quote)
+ value = ""
+
+ Open3.popen3("rak --nogroup -l '#{Regexp.escape(text)}' #{where}") do |stdin, stdout, stderr|
+ value = stdout.read
+ end
+
+ value
+ end
+
+ # Extract the filenames from the grep output
+ def extract_filenames(output)
+ if @probably_has_grep
+ extract_filenames_from_grep(output)
+ else
+ extract_filenames_from_rak(output)
+ end
+ end
+
+ def extract_filenames_from_grep(output)
+ return nil if output.empty?
+
+ fnames = output.split("\n").map do |fn|
+ if m = fn.match(/^(.+?):/)
+ m[1]
+ end
+ end.compact
+
+ fnames.uniq
+ end
+
+ def extract_filenames_from_rak(output)
+ return nil if output.empty?
+
+ output.split("\n").uniq
+ end
+
+ # Terminal colors, borrowed from Thor
+ CLEAR = "\e[0m"
+ BOLD = "\e[1m"
+ RED = "\e[31m"
+ YELLOW = "\e[33m"
+ CYAN = "\e[36m"
+ WHITE = "\e[37m"
+
+ # Show an upgrade alert to the user
+ def alert(title, text, more_info_url, culprits)
+ if Config::CONFIG['host_os'].downcase =~ /mswin|windows|mingw/
+ basic_alert(title, text, more_info_url, culprits)
+ else
+ color_alert(title, text, more_info_url, culprits)
+ end
+ end
+
+ # Show an upgrade alert to the user. If we're on Windows, we can't
+ # use terminal colors, hence this method.
+ def basic_alert(title, text, more_info_url, culprits)
+ puts "** " + title
+ puts text
+ puts "More information: #{more_info_url}"
+ puts
+ puts "The culprits: "
+ Array(culprits).each do |c|
+ puts "\t- #{c}"
+ end
+ puts
+ end
+
+ # Show a colorful alert to the user
+ def color_alert(title, text, more_info_url, culprits)
+ puts "#{RED}#{BOLD}#{title}#{CLEAR}"
+ puts "#{WHITE}#{text}"
+ puts "#{BOLD}More information:#{CLEAR} #{CYAN}#{more_info_url}"
+ puts
+ puts "#{WHITE}The culprits: "
+ Array(culprits).each do |c|
+ puts "#{YELLOW}\t- #{c}"
+ end
+ ensure
+ puts "#{CLEAR}"
+ end
+ end
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/lib/gemfile_generator.rb b/vendor/plugins/rails_upgrade/lib/gemfile_generator.rb
new file mode 100644
index 0000000000..141fd27d99
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/lib/gemfile_generator.rb
@@ -0,0 +1,96 @@
+# -*- encoding : utf-8 -*-
+module Rails
+ module Upgrading
+ class GemfileGenerator
+ def generate_new_gemfile
+ if has_environment?
+ generate_gemfile
+ else
+ raise FileNotFoundError, "Can't find environment.rb [config/environment.rb]!"
+ end
+ end
+
+ def has_environment?
+ File.exists?("config/environment.rb")
+ end
+
+ def environment_code
+ File.open("config/environment.rb").read
+ end
+
+ def generate_gemfile
+ environment_file = environment_code
+
+ # Get each line that starts with config.gem
+ gem_lines = environment_file.split("\n").select {|l| l =~ /^\s*config\.gem/}
+
+ # Toss those lines to a generator class; the lines are evaluated in the
+ # context of that instance.
+ config = GemfileGenerator.new
+ config.instance_eval(gem_lines.join("\n"))
+
+ config.output
+ end
+ end
+
+ class GemfileGenerator
+ # Creates a target for the config.gem calls
+ def config
+ self
+ end
+
+ def initialize
+ @gems = []
+ end
+
+ # Receive a call to add a gem to the list
+ def gem(name, options={})
+ data = {}
+
+ # Add new keys from old keys
+ data[:require] = options[:lib] if options[:lib]
+ data[:source] = options[:source] if options[:source]
+
+ version = options[:version]
+ @gems << [name, version, data]
+ end
+
+ # Generate the Gemfile output
+ def output
+ # Generic preamble, taken from Yehuda Katz's blog
+ preamble = < '#{v}'"}.join(", ")
+ end
+
+ # If we have a source, generate a call to +source+ then output the
+ # gem call. Otherwise, just generate the gem requirement.
+ if source
+ str = ["'#{name}'", version_string, data_string].compact.join(", ")
+ "source '#{source}'\ngem #{str}"
+ else
+ str = ["'#{name}'", version_string, data_string].compact.join(", ")
+ "gem #{str}"
+ end
+ end.join("\n")
+ end
+ end
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/lib/new_configuration_generator.rb b/vendor/plugins/rails_upgrade/lib/new_configuration_generator.rb
new file mode 100644
index 0000000000..0287f3bb63
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/lib/new_configuration_generator.rb
@@ -0,0 +1,52 @@
+# -*- encoding : utf-8 -*-
+module Rails
+ module Upgrading
+ class NewConfigurationGenerator
+ def generate_new_configurations
+ if has_environment?
+ generate_new_application_rb
+ else
+ raise FileNotFoundError, "Can't find environment.rb [config/environment.rb]!"
+ end
+ end
+
+ def has_environment?
+ File.exists?("config/environment.rb")
+ end
+
+ def environment_code
+ File.open("config/environment.rb").read
+ end
+
+ def generate_new_application_rb
+ environment_file = environment_code
+
+ initializer_code = ""
+ if matches = environment_file.match(/Rails\:\:Initializer\.run do \|config\|\n(.*)\nend/m)
+ initializer_code = matches[1]
+ else
+ raise "There doesn't seem to be a real environment.rb in your app. Are you sure config/environment.rb has the right contents?"
+ end
+
+ frame = "# Put this in config/application.rb
+require File.expand_path('../boot', __FILE__)
+
+module #{app_name.classify}
+ class Application < Rails::Application
+%s
+ end
+end"
+
+ frame % [indent(initializer_code)]
+ end
+
+ def indent(text)
+ text.split("\n").map {|l| " #{l}"}.join("\n")
+ end
+
+ def app_name
+ File.basename(Dir.pwd)
+ end
+ end
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/lib/rails_upgrade.rb b/vendor/plugins/rails_upgrade/lib/rails_upgrade.rb
new file mode 100644
index 0000000000..197c7c22f2
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/lib/rails_upgrade.rb
@@ -0,0 +1 @@
+# -*- encoding : utf-8 -*-
diff --git a/vendor/plugins/rails_upgrade/lib/routes_upgrader.rb b/vendor/plugins/rails_upgrade/lib/routes_upgrader.rb
new file mode 100644
index 0000000000..1900e634dc
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/lib/routes_upgrader.rb
@@ -0,0 +1,350 @@
+# -*- encoding : utf-8 -*-
+# TODO: Fix formatting on member/collection methods
+
+module Rails
+ module Upgrading
+ module FakeRouter
+ module ActionController
+ module Routing
+ class Routes
+ def self.setup
+ @redrawer = Rails::Upgrading::RouteRedrawer.new
+ end
+
+ def self.redrawer
+ @redrawer
+ end
+
+ def self.draw
+ yield @redrawer
+ end
+ end
+ end
+ end
+ end
+
+ class RoutesUpgrader
+ def generate_new_routes
+ if has_routes_file?
+ upgrade_routes
+ else
+ raise FileNotFoundError, "Can't find your routes file [config/routes.rb]!"
+ end
+ end
+
+ def has_routes_file?
+ File.exists?("config/routes.rb")
+ end
+
+ def routes_code
+ File.read("config/routes.rb")
+ end
+
+ def upgrade_routes
+ FakeRouter::ActionController::Routing::Routes.setup
+
+ # Read and eval the file; our fake route mapper will capture
+ # the calls to draw routes and generate new route code
+ FakeRouter.module_eval(routes_code)
+
+ # Give the route set to the code generator and get its output
+ generator = RouteGenerator.new(FakeRouter::ActionController::Routing::Routes.redrawer.routes)
+ generator.generate
+ end
+ end
+
+ class RouteRedrawer
+ attr_accessor :routes
+
+ def self.stack
+ @stack
+ end
+
+ def self.stack=(val)
+ @stack = val
+ end
+
+ def initialize
+ @routes = []
+
+ # The old default route was actually two routes; we generate the new style
+ # one only if we haven't generated it for the first old default route.
+ @default_route_generated = false
+
+ # Setup the stack for parents; used use proper indentation
+ self.class.stack = [@routes]
+ end
+
+ def root(options)
+ debug "mapping root"
+ @routes << FakeRoute.new("/", options)
+ end
+
+ def connect(path, options={})
+ debug "connecting #{path}"
+
+ if (path == ":controller/:action/:id.:format" || path == ":controller/:action/:id")
+ if !@default_route_generated
+ current_parent << FakeRoute.new("/:controller(/:action(/:id))", {:default_route => true})
+
+ @default_route_generated = true
+ end
+ else
+ current_parent << FakeRoute.new(path, options)
+ end
+ end
+
+ def resources(*args)
+ if block_given?
+ parent = FakeResourceRoute.new(args.shift)
+ debug "mapping resources #{parent.name} with block"
+
+ parent = stack(parent) do
+ yield(self)
+ end
+
+ current_parent << parent
+ else
+ if args.last.is_a?(Hash)
+ current_parent << FakeResourceRoute.new(args.shift, args.pop)
+ debug "mapping resources #{current_parent.last.name} w/o block with args"
+ else
+ args.each do |a|
+ current_parent << FakeResourceRoute.new(a)
+ debug "mapping resources #{current_parent.last.name}"
+ end
+ end
+ end
+ end
+
+ def resource(*args)
+ if block_given?
+ parent = FakeSingletonResourceRoute.new(args.shift)
+ debug "mapping resource #{parent.name} with block"
+
+ parent = stack(parent) do
+ yield(self)
+ end
+
+ current_parent << parent
+ else
+ if args.last.is_a?(Hash)
+ current_parent << FakeSingletonResourceRoute.new(args.shift, args.pop)
+ debug "mapping resources #{current_parent.last.name} w/o block with args"
+ else
+ args.each do |a|
+ current_parent << FakeSingletonResourceRoute.new(a)
+ debug "mapping resources #{current_parent.last.name}"
+ end
+ end
+ end
+ end
+
+ def namespace(name)
+ debug "mapping namespace #{name}"
+ namespace = FakeNamespace.new(name)
+
+ namespace = stack(namespace) do
+ yield(self)
+ end
+
+ current_parent << namespace
+ end
+
+ def method_missing(m, *args)
+ debug "named route: #{m}"
+ current_parent << FakeRoute.new(args.shift, args.pop, m.to_s)
+ end
+
+ def self.indent
+ ' ' * ((stack.length) * 2)
+ end
+
+ private
+ def debug(txt)
+ puts txt if ENV['DEBUG']
+ end
+
+ def stack(obj)
+ self.class.stack << obj
+ yield
+ self.class.stack.pop
+ end
+
+ def current_parent
+ self.class.stack.last
+ end
+ end
+
+ class RouteObject
+ def indent_lines(code_lines)
+ if code_lines.length > 1
+ code_lines.flatten.map {|l| "#{@indent}#{l.chomp}"}.join("\n") + "\n"
+ else
+ "#{@indent}#{code_lines.shift}"
+ end
+ end
+
+ def opts_to_string(opts)
+ opts.is_a?(Hash) ? opts.map {|k, v|
+ ":#{k} => " + (v.is_a?(Hash) ? ('{ ' + opts_to_string(v) + ' }') : "#{value_to_string(v)}")
+ }.join(", ") : opts.to_s
+ end
+
+ def value_to_string(value)
+ case value
+ when Regexp then value.inspect
+ when String then "'" + value.to_s + "'"
+ else value.to_s
+ end
+ end
+ end
+
+ class FakeNamespace < RouteObject
+ attr_accessor :routes, :name
+
+ def initialize(name)
+ @routes = []
+ @name = name
+ @indent = RouteRedrawer.indent
+ end
+
+ def to_route_code
+ lines = ["namespace :#{@name} do", @routes.map {|r| r.to_route_code}, "end"]
+
+ indent_lines(lines)
+ end
+
+ def <<(val)
+ @routes << val
+ end
+
+ def last
+ @routes.last
+ end
+ end
+
+ class FakeRoute < RouteObject
+ attr_accessor :name, :path, :options
+
+ def initialize(path, options, name = "")
+ @path = path
+ @options = options || {}
+ @name = name
+ @indent = RouteRedrawer.indent
+ end
+
+ def to_route_code
+ if @options[:default_route]
+ indent_lines ["match '#{@path}'"]
+ else
+ base = "match '%s' => '%s#%s'"
+ extra_options = []
+
+ if not name.empty?
+ extra_options << ":as => :#{name}"
+ end
+
+ if @options[:requirements]
+ @options[:constraints] = @options.delete(:requirements)
+ end
+
+ if @options[:conditions]
+ @options[:via] = @options.delete(:conditions).delete(:method)
+ end
+
+ @options ||= {}
+ base = (base % [@path, @options.delete(:controller), (@options.delete(:action) || "index")])
+ opts = opts_to_string(@options)
+
+ route_pieces = ([base] + extra_options + [opts])
+ route_pieces.delete("")
+
+ indent_lines [route_pieces.join(", ")]
+ end
+ end
+ end
+
+ class FakeResourceRoute < RouteObject
+ attr_accessor :name, :children
+
+ def initialize(name, options = {})
+ @name = name
+ @children = []
+ @options = options
+ @indent = RouteRedrawer.indent
+ end
+
+ def to_route_code
+
+ if !@children.empty? || @options.has_key?(:collection) || @options.has_key?(:member)
+ prefix = ["#{route_method} :#{@name} do"]
+ lines = prefix + custom_methods + [@children.map {|r| r.to_route_code}.join("\n"), "end"]
+
+ indent_lines(lines)
+ else
+ base = "#{route_method} :%s"
+ indent_lines [base % [@name]]
+ end
+ end
+
+ def custom_methods
+ collection_code = generate_custom_methods_for(:collection)
+ member_code = generate_custom_methods_for(:member)
+ [collection_code, member_code]
+ end
+
+ def generate_custom_methods_for(group)
+ return "" unless @options[group]
+
+ method_code = []
+
+ RouteRedrawer.stack << self
+ @options[group].each do |k, v|
+ method_code << "#{v} :#{k}"
+ end
+ RouteRedrawer.stack.pop
+
+ indent_lines ["#{group} do", method_code, "end"].flatten
+ end
+
+ def route_method
+ "resources"
+ end
+
+ def <<(val)
+ @children << val
+ end
+
+ def last
+ @children.last
+ end
+ end
+
+ class FakeSingletonResourceRoute < FakeResourceRoute
+ def route_method
+ "resource"
+ end
+ end
+
+ class RouteGenerator
+ def initialize(routes)
+ @routes = routes
+ @new_code = ""
+ end
+
+ def generate
+ @new_code = @routes.map do |r|
+ r.to_route_code
+ end.join("\n")
+
+ "#{app_name.underscore.classify}::Application.routes.draw do\n#{@new_code}\nend\n"
+ end
+
+ private
+ def app_name
+ File.basename(Dir.pwd)
+ end
+ end
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/lib/tasks/rails_upgrade_tasks.rake b/vendor/plugins/rails_upgrade/lib/tasks/rails_upgrade_tasks.rake
new file mode 100644
index 0000000000..74569c93bb
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/lib/tasks/rails_upgrade_tasks.rake
@@ -0,0 +1,78 @@
+$:.unshift(File.dirname(__FILE__) + "/../../lib")
+require 'routes_upgrader'
+require 'gemfile_generator'
+require 'application_checker'
+require 'new_configuration_generator'
+
+require 'fileutils'
+
+namespace :rails do
+ namespace :upgrade do
+ desc "Runs a battery of checks on your Rails 2.x app and generates a report on required upgrades for Rails 3"
+ task :check do
+ checker = Rails::Upgrading::ApplicationChecker.new
+ checker.run
+ end
+
+ desc "Generates a Gemfile for your Rails 3 app out of your config.gem directives"
+ task :gems do
+ generator = Rails::Upgrading::GemfileGenerator.new
+ new_gemfile = generator.generate_new_gemfile
+
+ puts new_gemfile
+ end
+
+ desc "Create a new, upgraded route file from your current routes.rb"
+ task :routes do
+ upgrader = Rails::Upgrading::RoutesUpgrader.new
+ new_routes = upgrader.generate_new_routes
+
+ puts new_routes
+ end
+
+ desc "Extracts your configuration code so you can create a new config/application.rb"
+ task :configuration do
+ upgrader = Rails::Upgrading::NewConfigurationGenerator.new
+ new_config = upgrader.generate_new_application_rb
+
+ puts new_config
+ end
+
+ CLEAR = "\e[0m"
+ CYAN = "\e[36m"
+ WHITE = "\e[37m"
+
+ desc "Backs up your likely modified files so you can run the Rails 3 generator on your app with little risk"
+ task :backup do
+ files = [".gitignore",
+ "app/controllers/application_controller.rb",
+ "app/helpers/application_helper.rb",
+ "config/routes.rb",
+ "config/environment.rb",
+ "config/environments/development.rb",
+ "config/environments/production.rb",
+ "config/environments/staging.rb",
+ "config/database.yml",
+ "config.ru",
+ "doc/README_FOR_APP",
+ "test/test_helper.rb"]
+
+ puts
+ files.each do |f|
+ if File.exist?(f)
+ puts "#{CYAN}* #{CLEAR}backing up #{WHITE}#{f}#{CLEAR} to #{WHITE}#{f}.rails2#{CLEAR}"
+ FileUtils.cp(f, "#{f}.rails2")
+ end
+ end
+
+ puts
+ puts "This is a list of the files analyzed and backed up (if they existed);\nyou will probably not want the generator to replace them since\nyou probably modified them (but now they're safe if you accidentally do!)."
+ puts
+
+ files.each do |f|
+ puts "#{CYAN}- #{CLEAR}#{f}"
+ end
+ puts
+ end
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/test/application_checker_test.rb b/vendor/plugins/rails_upgrade/test/application_checker_test.rb
new file mode 100644
index 0000000000..2deaed5feb
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/test/application_checker_test.rb
@@ -0,0 +1,279 @@
+# -*- encoding : utf-8 -*-
+require 'test_helper'
+require 'application_checker'
+require 'fileutils'
+
+tmp_dir = "#{File.dirname(__FILE__)}/fixtures/tmp"
+
+if defined? BASE_ROOT
+ BASE_ROOT.replace tmp_dir
+else
+ BASE_ROOT = tmp_dir
+end
+FileUtils.mkdir_p BASE_ROOT
+
+# Stub out methods on upgrader class
+module Rails
+ module Upgrading
+ class ApplicationChecker
+ attr_reader :alerts
+
+ def base_path
+ BASE_ROOT + "/"
+ end
+
+ def in_rails_app?
+ true
+ end
+
+ def initialize
+ @alerts = {}
+ end
+
+ def alert(title, text, more_info_url, culprits)
+ @alerts[title] = [text, more_info_url, culprits]
+ end
+ end
+ end
+end
+
+class ApplicationCheckerTest < ActiveSupport::TestCase
+ def setup
+ @checker = Rails::Upgrading::ApplicationChecker.new
+ @old_dir = Dir.pwd
+
+ Dir.chdir(BASE_ROOT)
+ end
+
+ def test_check_ar_methods_in_controller
+ make_file("app/controllers", "post_controller.rb", "Post.find(:all)")
+ @checker.check_ar_methods
+
+ assert @checker.alerts.has_key?("Soon-to-be-deprecated ActiveRecord calls")
+ end
+
+ def test_check_ar_methods_in_models
+ make_file("app/models", "post.rb", "Post.find(:all)")
+ @checker.check_ar_methods
+
+ assert @checker.alerts.has_key?("Soon-to-be-deprecated ActiveRecord calls")
+ end
+
+ def test_check_validation_on_methods
+ make_file("app/models", "post.rb", "validate_on_create :comments_valid?")
+ @checker.check_validation_on_methods
+
+ assert @checker.alerts.has_key?("Updated syntax for validate_on_* methods")
+ end
+
+ def test_check_before_validation_on_methods
+ make_file("app/models", "post.rb", "before_validation_on_create :comments_valid?")
+ @checker.check_before_validation_on_methods
+
+ assert @checker.alerts.has_key?("Updated syntax for before_validation_on_* methods")
+ end
+
+ def test_named_scope_left_over
+ make_file("app/models", "post.rb", "named_scope :failure")
+ @checker.check_ar_methods
+
+ assert @checker.alerts.has_key?("named_scope is now just scope")
+ end
+
+ def test_check_routes
+ make_file("config/", "routes.rb", " map.connect 'fail'")
+ @checker.check_routes
+
+ assert @checker.alerts.has_key?("Old router API")
+ end
+
+ def test_check_for_old_test_help
+ make_file("test/", "test_helper.rb", " require 'test_help'")
+ @checker.check_test_help
+
+ assert @checker.alerts.has_key?("Deprecated test_help path")
+ end
+
+ def test_check_for_old_test_help_with_double_quotes
+ make_file("test/", "test_helper.rb", " require \"test_help\"")
+ @checker.check_test_help
+
+ assert @checker.alerts.has_key?("Deprecated test_help path")
+ end
+
+ def test_check_for_old_test_help_doesnt_see_test_helper
+ make_file("test/", "test_helper.rb", " require 'test_helper'")
+ @checker.check_test_help
+
+ assert !@checker.alerts.has_key?("Deprecated test_help path")
+ end
+
+ def test_check_lack_of_app_dot_rb
+ @checker.check_environment
+
+ assert @checker.alerts.has_key?("New file needed: config/application.rb")
+ end
+
+ def test_check_environment_syntax
+ make_file("config/", "environment.rb", "config.frameworks = []")
+ @checker.check_environment
+
+ assert @checker.alerts.has_key?("Old environment.rb")
+ end
+
+ def test_check_gems
+ make_file("config/", "environment.rb", "config.gem 'rails'")
+ @checker.check_gems
+
+ assert @checker.alerts.has_key?("Old gem bundling (config.gems)")
+ end
+
+ def test_check_mailer_syntax
+ make_file("app/models/", "notifications.rb", "def signup\nrecipients @users\n end")
+ @checker.check_mailers
+
+ assert @checker.alerts.has_key?("Old ActionMailer class API")
+ end
+
+ def test_check_mailer_syntax_from
+ make_file("app/models/", "notifications.rb", "def signup\nfrom @user\n end")
+ @checker.check_mailers
+
+ assert @checker.alerts.has_key?("Old ActionMailer class API")
+ end
+
+ def test_check_mailer_syntax_subject
+ make_file("app/models/", "notifications.rb", "def signup\nsubject @subject\n end")
+ @checker.check_mailers
+
+ assert @checker.alerts.has_key?("Old ActionMailer class API")
+ end
+
+ def test_check_mailer_syntax_attachment
+ make_file("app/models/", "notifications.rb", "def signup\nattachment 'application/pdf' do |a|\n end")
+ @checker.check_mailers
+
+ assert @checker.alerts.has_key?("Old ActionMailer class API")
+ end
+
+ def test_new_check_mailer_syntax_from
+ make_file("app/models/", "notifications.rb", "def signup\n:from => @users\n end")
+ @checker.check_mailers
+
+ assert ! @checker.alerts.has_key?("Old ActionMailer class API")
+ end
+
+ def test_new_check_mailer_syntax_subject
+ make_file("app/models/", "notifications.rb", "def signup\n:subject => @users\n end")
+ @checker.check_mailers
+
+ assert ! @checker.alerts.has_key?("Old ActionMailer class API")
+ end
+
+ def test_new_check_mailer_syntax_attachments
+ make_file("app/models/", "notifications.rb", "def signup\nattachments['an-image.jp'] = File.read('an-image.jpg')\n end")
+ @checker.check_mailers
+
+ assert ! @checker.alerts.has_key?("Old ActionMailer class API")
+ end
+
+ def test_check_mailer_api
+ make_file("app/controllers/", "thing_controller.rb", "def signup\n Notifications.deliver_signup\n end")
+ @checker.check_mailers
+
+ assert @checker.alerts.has_key?("Deprecated ActionMailer API")
+ end
+
+ def test_check_generators
+ make_file("vendor/plugins/thing/generators/thing/", "thing_generator.rb", "def manifest\n m.whatever\n end")
+ @checker.check_generators
+
+ assert @checker.alerts.has_key?("Old Rails generator API")
+ end
+
+ def test_check_plugins
+ make_file("vendor/plugins/rspec-rails/", "whatever.rb", "def rspec; end")
+ @checker.check_plugins
+
+ assert @checker.alerts.has_key?("Known broken plugins")
+ end
+
+ def test_ignoring_comments
+ make_file("config/", "routes.rb", "# map.connect 'fail'")
+ @checker.check_routes
+
+ assert !@checker.alerts.has_key?("Old router API")
+ end
+
+ def test_check_deprecated_constants_in_app_code
+ make_file("app/controllers/", "thing_controller.rb", "class ThingController; THING = RAILS_ENV; end;")
+ @checker.check_deprecated_constants
+
+ assert @checker.alerts.has_key?("Deprecated constant(s)")
+ end
+
+ def test_check_deprecated_constants_in_lib
+ make_file("lib/", "extra_thing.rb", "class ExtraThing; THING = RAILS_ENV; end;")
+ @checker.check_deprecated_constants
+
+ assert @checker.alerts.has_key?("Deprecated constant(s)")
+ end
+
+ def test_check_deprecated_cookie_settings
+ make_file("config/initializers/", "more_settings.rb", "ActionController::Base.cookie_verifier_secret = 'OMG'")
+ @checker.check_old_cookie_secret
+
+ assert @checker.alerts.has_key?("Deprecated cookie secret setting")
+ end
+
+ def test_check_deprecated_session_secret
+ make_file("config/initializers/", "more_settings.rb", "ActionController::Base.session = {\n:whatever => 'woot'\n}")
+ @checker.check_old_session_secret
+
+ assert @checker.alerts.has_key?("Deprecated session secret setting")
+ end
+
+ def test_check_deprecated_session_settings
+ make_file("config/initializers/", "more_settings.rb", "ActionController::Base.session_store = :cookie\nthings.awesome(:whatever)")
+ @checker.check_old_session_setting
+
+ assert @checker.alerts.has_key?("Old session store setting")
+ end
+
+ def test_check_helpers
+ make_file("app/views/users/", "test.html.erb", "blah blah blah<% form_for(:thing) do |f| %> <%= f.whatever %> <% end %>")
+ @checker.check_old_helpers
+
+ assert @checker.alerts.has_key?("Deprecated ERb helper calls")
+ end
+
+ def test_check_old_ajax_helpers
+ make_file("app/views/sections", "section.js", "<%= link_to_remote 'section-', :update => 'sections', :url => {:action => :destroy, :controller => 'sections', :id => @section.id } %>")
+ @checker.check_old_ajax_helpers
+
+ assert @checker.alerts.has_key?("Deprecated AJAX helper calls")
+ end
+
+ def test_check_old_ajax_helpers_empty
+ @checker.check_old_ajax_helpers
+
+ assert ! @checker.alerts.has_key?("Deprecated AJAX helper calls")
+ end
+
+ def teardown
+ clear_files
+
+ Dir.chdir(@old_dir)
+ end
+
+ def make_file(where, name=nil, contents=nil)
+ FileUtils.mkdir_p "#{BASE_ROOT}/#{where}"
+ File.open("#{BASE_ROOT}/#{where}/#{name}", "w+") do |f|
+ f.write(contents)
+ end if name
+ end
+
+ def clear_files
+ FileUtils.rm_rf(Dir.glob("#{BASE_ROOT}/*"))
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/test/gemfile_generator_test.rb b/vendor/plugins/rails_upgrade/test/gemfile_generator_test.rb
new file mode 100644
index 0000000000..7ac4629837
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/test/gemfile_generator_test.rb
@@ -0,0 +1,73 @@
+# -*- encoding : utf-8 -*-
+require 'test_helper'
+require 'gemfile_generator'
+
+# Stub out methods on upgrader class
+module Rails
+ module Upgrading
+ class GemfileGenerator
+ attr_writer :environment_code
+
+ def has_environment?
+ true
+ end
+
+ def environment_code
+ @environment_code
+ end
+ end
+ end
+end
+
+class GemfileGeneratorTest < ActiveSupport::TestCase
+ PREAMBLE = < 'kamping'", generator.generate_gemfile
+ end
+
+ def test_generates_with_all_options
+ generator = Rails::Upgrading::GemfileGenerator.new
+ generator.environment_code = "config.gem 'camping', :lib => 'kamping', :source => 'http://code.whytheluckystiff.net', :version => '2.1.1'"
+
+ assert_equal PREAMBLE + "source 'http://code.whytheluckystiff.net'\ngem 'camping', '2.1.1', :require => 'kamping'", generator.generate_gemfile
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/test/new_configuration_generator_test.rb b/vendor/plugins/rails_upgrade/test/new_configuration_generator_test.rb
new file mode 100644
index 0000000000..b762caa3e2
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/test/new_configuration_generator_test.rb
@@ -0,0 +1,64 @@
+# -*- encoding : utf-8 -*-
+require 'test_helper'
+require 'new_configuration_generator'
+
+# Stub out methods on upgrader class
+module Rails
+ module Upgrading
+ class NewConfigurationGenerator
+ attr_writer :environment_code
+
+ def has_environment?
+ true
+ end
+
+ def environment_code
+ @environment_code
+ end
+
+ def app_name
+ "my_application"
+ end
+ end
+ end
+end
+
+class NewConfigurationGeneratorTest < ActiveSupport::TestCase
+ FRAME = "# Put this in config/application.rb
+require File.expand_path('../boot', __FILE__)
+
+module MyApplication
+ class Application < Rails::Application
+%s
+ end
+end"
+
+ CONFIG = " config.what_have_you = 'thing'
+ config.action_controller = 'what'"
+
+ CODE = "require 'w/e'
+
+this_happens_before_the(code)
+more_before_the_code!
+
+Rails::Initializer.run do |config|
+%s
+end
+
+this_is_after_the_code
+"
+
+ def test_raises_error_with_no_code
+ generator = Rails::Upgrading::NewConfigurationGenerator.new
+ generator.environment_code = ""
+
+ assert_raises(RuntimeError) { generator.generate_new_application_rb }
+ end
+
+ def test_generates_with_code
+ generator = Rails::Upgrading::NewConfigurationGenerator.new
+ generator.environment_code = CODE % [CONFIG]
+
+ assert_equal FRAME % [generator.indent(CONFIG)], generator.generate_new_application_rb
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/test/routes_upgrader_test.rb b/vendor/plugins/rails_upgrade/test/routes_upgrader_test.rb
new file mode 100644
index 0000000000..6efb5b0cc2
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/test/routes_upgrader_test.rb
@@ -0,0 +1,143 @@
+# -*- encoding : utf-8 -*-
+require 'test_helper'
+require 'routes_upgrader'
+
+# Stub out methods on upgrader class
+module Rails
+ module Upgrading
+ class RoutesUpgrader
+ attr_writer :routes_code
+
+ def has_routes_file?
+ true
+ end
+
+ def routes_code
+ @routes_code
+ end
+ end
+
+ class RouteGenerator
+ def app_name
+ "MyApplication"
+ end
+ end
+ end
+end
+
+class RoutesUpgraderTest < ActiveSupport::TestCase
+ def setup
+ Rails::Upgrading::RouteRedrawer.stack = []
+ end
+
+ def test_generates_routes_file
+ routes_code = "
+ ActionController::Routing::Routes.draw do |map|
+ map.connect '/home', :controller => 'home', :action => 'index'
+ map.login '/login', :controller => 'sessions', :action => 'new'
+
+ map.resources :hats
+ map.resource :store
+ end
+ "
+
+ new_routes_code = "MyApplication::Application.routes.draw do
+ match '/home' => 'home#index'
+ match '/login' => 'sessions#new', :as => :login
+ resources :hats
+ resource :store
+end
+"
+
+ upgrader = Rails::Upgrading::RoutesUpgrader.new
+ upgrader.routes_code = routes_code
+
+ result = upgrader.generate_new_routes
+
+ assert_equal new_routes_code, result
+ end
+
+ def test_generates_code_for_regular_route
+ route = Rails::Upgrading::FakeRoute.new("/about", {:controller => 'static', :action => 'about'})
+ assert_equal "match '/about' => 'static#about'", route.to_route_code
+ end
+
+ def test_generates_code_for_named_route
+ route = Rails::Upgrading::FakeRoute.new("/about", {:controller => 'static', :action => 'about'}, "about")
+ assert_equal "match '/about' => 'static#about', :as => :about", route.to_route_code
+ end
+
+ def test_generates_code_for_namespace
+ ns = Rails::Upgrading::FakeNamespace.new("static")
+ # Add a route to the namespace
+ ns << Rails::Upgrading::FakeRoute.new("/about", {:controller => 'static', :action => 'about'})
+
+ assert_equal "namespace :static do\nmatch '/about' => 'static#about'\nend\n", ns.to_route_code
+ end
+
+ def test_generates_code_for_resources
+ route = Rails::Upgrading::FakeResourceRoute.new("hats")
+ assert_equal "resources :hats", route.to_route_code
+ end
+
+ def test_generates_code_for_resources
+ route = Rails::Upgrading::FakeSingletonResourceRoute.new("hat")
+ assert_equal "resource :hat", route.to_route_code
+ end
+
+ def test_generates_code_for_resources_with_special_methods
+ route = Rails::Upgrading::FakeResourceRoute.new("hats", {:member => {:wear => :get}, :collection => {:toss => :post}})
+ assert_equal "resources :hats do\ncollection do\npost :toss\nend\nmember do\nget :wear\nend\n\nend\n", route.to_route_code
+ end
+
+ def test_generates_code_for_route_with_extra_params
+ route = Rails::Upgrading::FakeRoute.new("/about", {:controller => 'static', :action => 'about', :something => 'extra'})
+ assert_equal "match '/about' => 'static#about', :something => 'extra'", route.to_route_code
+ end
+
+ def test_generates_code_for_route_with_requirements
+ route = Rails::Upgrading::FakeRoute.new("/foo", {:controller => 'foo', :action => 'bar', :requirements => {:digit => /%d/}})
+ assert_equal "match '/foo' => 'foo#bar', :constraints => { :digit => /%d/ }", route.to_route_code
+ end
+
+ def test_generates_code_for_root
+ routes_code = "
+ ActionController::Routing::Routes.draw do |map|
+ map.root :controller => 'home', :action => 'index'
+ end
+ "
+
+ new_routes_code = "MyApplication::Application.routes.draw do
+ match '/' => 'home#index'
+end
+"
+
+ upgrader = Rails::Upgrading::RoutesUpgrader.new
+ upgrader.routes_code = routes_code
+
+ result = upgrader.generate_new_routes
+
+ assert_equal new_routes_code, result
+ end
+
+ def test_generates_code_for_default_route
+ routes_code = "
+ ActionController::Routing::Routes.draw do |map|
+ map.connect ':controller/:action/:id.:format'
+ map.connect ':controller/:action/:id'
+ end
+ "
+
+ new_routes_code = "MyApplication::Application.routes.draw do
+ match '/:controller(/:action(/:id))'
+end
+"
+
+ upgrader = Rails::Upgrading::RoutesUpgrader.new
+ upgrader.routes_code = routes_code
+
+ result = upgrader.generate_new_routes
+
+ assert_equal new_routes_code, result
+ end
+end
diff --git a/vendor/plugins/rails_upgrade/test/test_helper.rb b/vendor/plugins/rails_upgrade/test/test_helper.rb
new file mode 100644
index 0000000000..c799c3aa5a
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/test/test_helper.rb
@@ -0,0 +1,6 @@
+# -*- encoding : utf-8 -*-
+require 'test/unit'
+
+require 'rubygems'
+require 'active_support'
+require 'active_support/test_case'
diff --git a/vendor/plugins/rails_upgrade/uninstall.rb b/vendor/plugins/rails_upgrade/uninstall.rb
new file mode 100644
index 0000000000..f6e78fdab6
--- /dev/null
+++ b/vendor/plugins/rails_upgrade/uninstall.rb
@@ -0,0 +1,2 @@
+# -*- encoding : utf-8 -*-
+# Uninstall hook code here