This repository has been archived by the owner on May 14, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Blacklight display logic for dates and languages to use disp…
…lay values instead of codes.
- Loading branch information
Showing
7 changed files
with
43 additions
and
1,468 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
module LanguageService | ||
mattr_accessor :authority | ||
self.authority = Qa::Authorities::Local.subauthority_for('iso639') | ||
|
||
def self.label(id) | ||
authority.find(id).fetch('term', id) | ||
ISO_639.find_by_code(id).try(:english_name) || id | ||
end | ||
end |
Oops, something went wrong.