[Archivesspace_Users_Group] Dates issue

Mark Cooper mark.cooper at lyrasis.org
Fri Apr 10 14:10:03 EDT 2015


Hi Raphael,

The file needs to go in:

plugins/local/frontend/controllers/form_fix_controller.rb

Not:

plugins/local/frontend/locales/form_fix_controller.rb

Mark

Mark Cooper
Technical Lead, Hosting and Support
LYRASIS
email: mark.cooper at lyrasis.org
skype: mark_c_cooper​

________________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of library at princeofpeaceabbey.org <library at princeofpeaceabbey.org>
Sent: Friday, April 10, 2015 8:48 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Dates issue

Chris,

Tried the date fix but got this instead:

can not load translations from
C:\archivesspace/plugins/local/frontend/locales/form_fix_controller.rb:
expects it to return a hash, but does not from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/backend/base.rb:167:in
`load_file' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/backend/base.rb:15:in
`load_translations' from org/jruby/RubyArray.java:1613:in `each' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/backend/base.rb:15:in
`load_translations' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/backend/simple.rb:57:in
`init_translations' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/backend/simple.rb:40:in
`available_locales' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/config.rb:43:in
`available_locales' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/config.rb:49:in
`available_locales_set' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n.rb:278:in
`locale_available?' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n.rb:284:in
`enforce_available_locales!' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n/config.rb:34:in
`default_locale=' from
C:/archivesspace/gems/gems/i18n-0.7.0/lib/i18n.rb:43:in
`default_locale=' from
C:/archivesspace/gems/gems/activesupport-3.2.19/lib/active_support/i18n_railtie.rb:60:in `initialize_i18n' from org/jruby/RubyHash.java:1341:in `each' from C:/archivesspace/gems/gems/activesupport-3.2.19/lib/active_support/i18n_railtie.rb:53:in `initialize_i18n' from C:/archivesspace/gems/gems/activesupport-3.2.19/lib/active_support/i18n_railtie.rb:40:in `Railtie' from org/jruby/RubyProc.java:271:in `call' from C:/archivesspace/gems/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook' from C:/archivesspace/gems/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:43:in `run_load_hooks' from org/jruby/RubyArray.java:1613:in `each' from C:/archivesspace/gems/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' from C:/archivesspace/gems/gems/railties-3.2.19/lib/rails/application/finisher.rb:52:in `Finisher' from org/jruby/RubyBasicObject.java:1562:in `instance_exec' from C:/archivesspace/gems/gems/rail
 ties-3.2.19/lib/rails/initializable.rb:30:in `run' from C:/archivesspace/gems/gems/railties-3.2.19/lib/rails/initializable.rb:55:in `run_initializers' from org/jruby/RubyArray.java:1613:in `each' from C:/archivesspace/gems/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `run_initializers' from file:/C:/archivesspace/lib/common.jar!/rails_config_bug_workaround.rb:11:in `initialize!' from C:/archivesspace/gems/gems/railties-3..2.19/lib/rails/railtie/configurable.rb:30:in `method_missing' from C:/archivesspace/data/tmp/jetty-0.0.0.0-8080-frontend.war-_-any-/webapp/WEB-INF/config/environment.rb:29:in `(root)' from org/jruby/RubyKernel.java:1071:in `require' from file:/C:/archivesspace/gems/gems/jruby-rack-1.1.18/lib/jruby-rack-1.1.18.jar!/jruby/rack/rails/environment3.rb:1:in `(root)' from file:/C:/archivesspace/gems/gems/jruby-rack-1.1.18/lib/jruby-rack-1.1.18.jar!/jruby/rack/rails/environment3.rb:25:in `load_environment' from file:/C:/archivesspace/gems/gems/jruby-rack-1
 .1.18/lib/jruby-rack-1.1.18.jar!/jruby/rack/rails_booter.rb:83:in `load_environment' from launcher/launcher.rb:86:in `start_server' from launcher/launcher.rb:158:in `main' from launcher/launcher.rb:230:in
`(root)'

Back to me: Did I do something wrong? Using Windows 8.1

Br Raphael
Quoting Chris Fitzpatrick <Chris.Fitzpatrick at lyrasis.org>:

> Hi everyone,
>
>
> You should be able to fix this right now by adding this file
> <https://gist.github.com/cfitz/87ec5cfa2bcd5f347949> to
> plugins/local/frontend/controllers/form_fix_controller.rb and
> restarting Aspace.
>
>
> b,chris.
>
>
> Chris Fitzpatrick | Developer, ArchivesSpace
> Skype: chrisfitzpat  | Phone: 918.236.6048
> http://archivesspace.org/
> ________________________________
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org
> <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf
> of carrie.daniels at louisville.edu <carrie.daniels at louisville.edu>
> Sent: Thursday, April 9, 2015 9:46 PM
> To: Archivesspace Users Group
> Subject: Re: [Archivesspace_Users_Group] Dates issue
>
> Wonderful! Sorry I overlooked that.
> Thanks -
> Carrie
>
> From: archivesspace_users_group-bounces at lyralists.lyrasis.org
> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On
> Behalf Of Busch, Ed
> Sent: Thursday, April 09, 2015 3:15 PM
> To: Archivesspace Users Group
> Subject: Re: [Archivesspace_Users_Group] Dates issue
>
> I reported this last week and is recorded as AR-1191.
>
> Ed Busch
> Electronic Records Archivist
> University Archives & Historical Collections
> Michigan State University
> 517.884.6438.
> buschedw at msu.edu<mailto:buschedw at msu.edu>
>
>
> From:
> archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of
> carrie.daniels at louisville.edu<mailto:carrie.daniels at louisville.edu>
> Sent: Thursday, April 09, 2015 3:05 PM
> To:
> archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>
> Subject: [Archivesspace_Users_Group] Dates issue
>
> I'm working version 1.2.0 and finding that in many (if not all)
> instances, date fields are being forced to YYYY-MM-DD, even if YYYY
> is stated as an acceptable format. For example, in an Accession
> record, if I want to enter specific Begin and End dates for
> Inclusive dates, ArchivesSpace pops up a calendar and will not allow
> me to enter "2010" in the Begin field. Am I missing something? If
> not, is this intentional?
> Thanks,
> Carrie
>
>
> Carrie Daniels
> University Archivist
> Director, Archives and Special Collections
> University of Louisville
> (502) 852-6676


Br Raphael Meyer osb
Prince of Peace Abbey

_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


More information about the Archivesspace_Users_Group mailing list