Adding a New Library to the System - UoEMainLibrary/LibraryMapping GitHub Wiki
the new library's classification with the appropriate fields:
Data Base Changes
rails g migration name_for_migration
This will create migration file to be edited see other classifications for examples
Run rake db:migrate
Run rake db:seed
Code Changes
Add to app/models the Library Section to be added
admin.js Add the new classification to the dropdown statement to load the correct form
Define the canvas size of the library, according to the ratio of the floor plan
Add box_size and floors to libraries_data object
application_controller.rb Add the corresponding classification conditions in the to query the correct table
admin/map.html.erb Add library to navigation in admin area
map_display/map.html.erb Add library to navigation
admin/index.html.erb Add link to Library in linkblock row
Add canvas details of new library
Get the architectural plans of the library’s floors and add them as PNG overlays in public/asset the filename convention overlay_library_floor.png