-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
292 changed files
with
1,528 additions
and
2,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
atom_feed(url: inter_library_loans_url(format: :atom)) do |feed| | ||
feed.title t('inter_library_loan.library_group_inter_library_loan', library_group_name: @library_group.display_name) | ||
feed.title t('inter_library_loan.library_group_inter_library_loan', library_group_name: @library_group.display_name.localize) | ||
feed.updated(@inter_library_loans.first ? @inter_library_loans.first.created_at : Time.zone.now) | ||
|
||
@inter_library_loans.each do |inter_library_loan| | ||
feed.entry(inter_library_loan) do |entry| | ||
entry.title inter_library_loan.item.manifestation.original_title | ||
entry.author(@library_group.display_name) | ||
entry.author(@library_group.display_name.localize) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
class CreateInterLibraryLoans < ActiveRecord::Migration[5.2] | ||
def change | ||
class CreateInterLibraryLoans < ActiveRecord::Migration[4.2] | ||
def self.up | ||
create_table :inter_library_loans do |t| | ||
t.references :item, foreign_key: true, null: false | ||
t.references :borrowing_library, foreign_key: {to_table: :libraries}, null: false | ||
t.integer :item_id, null: false | ||
t.integer :borrowing_library_id, null: false | ||
t.timestamp :requested_at | ||
t.timestamp :shipped_at | ||
t.timestamp :received_at | ||
t.timestamp :return_shipped_at | ||
t.timestamp :return_received_at | ||
t.timestamp :deleted_at | ||
|
||
t.timestamps | ||
end | ||
add_index :inter_library_loans, :item_id | ||
add_index :inter_library_loans, :borrowing_library_id | ||
end | ||
|
||
def self.down | ||
drop_table :inter_library_loans | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
db/migrate/20140607100507_create_inter_library_loan_transitions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
db/migrate/20160703190932_add_most_recent_to_inter_library_loan_transitions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...grate/20180107164929_add_constraints_to_most_recent_for_inter_library_loan_transitions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
class CreateItems < ActiveRecord::Migration[5.2] | ||
class CreateItems < ActiveRecord::Migration[4.2] | ||
def change | ||
create_table :items do |t| | ||
t.string :call_number | ||
t.string :item_identifier, index: {unique: true} | ||
t.string :item_identifier | ||
t.timestamps | ||
t.references :shelf | ||
t.datetime :deleted_at | ||
t.integer :shelf_id, default: 1, null: false | ||
t.boolean :include_supplements, default: false, null: false | ||
t.text :note | ||
t.string :url | ||
t.integer :price | ||
t.integer :lock_version, default: 0, null: false | ||
t.integer :required_role_id, default: 1, null: false | ||
t.integer :required_score, default: 0, null: false | ||
end | ||
add_index :items, :shelf_id | ||
add_index :items, :item_identifier | ||
add_index :items, :required_role_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
class CreateOwns < ActiveRecord::Migration[5.2] | ||
class CreateOwns < ActiveRecord::Migration[4.2] | ||
def change | ||
create_table :owns do |t| | ||
t.references :agent, null: false | ||
t.references :item, null: false | ||
t.integer :position | ||
t.timestamps | ||
end | ||
add_index :owns, :agent_id | ||
add_index :owns, :item_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
class CreateCreates < ActiveRecord::Migration[5.2] | ||
class CreateCreates < ActiveRecord::Migration[4.2] | ||
def change | ||
create_table :creates do |t| | ||
t.references :agent, foreign_key: true, null: false | ||
t.references :work, null: false, foreign_key: {to_table: :manifestations} | ||
t.references :agent, null: false | ||
t.references :work, null: false | ||
t.integer :position | ||
t.timestamps | ||
end | ||
add_index :creates, :agent_id | ||
add_index :creates, :work_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
class CreateCheckins < ActiveRecord::Migration[5.2] | ||
def change | ||
class CreateCheckins < ActiveRecord::Migration[4.2] | ||
def self.up | ||
create_table :checkins do |t| | ||
t.references :item, index: true, foreign_key: true, null: false | ||
t.references :librarian, index: true | ||
t.references :basket, index: true | ||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :checkins | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.