Skip to content

Commit

Permalink
Support for laser disk in Solr import
Browse files Browse the repository at this point in the history
  • Loading branch information
rominail committed Oct 18, 2024
1 parent 6fb7b4b commit 1d730ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion import/index_java/src/org/vufind/index/FormatCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,13 @@ protected String getFormatFrom007(char formatCode, String formatString) {
case 'd':
char formatCode5 = formatString.length() > 4
? formatString.charAt(4) : ' ';
return formatCode5 == 's' ? "BRDisc" : "VideoDisc";
switch(formatCode5) {
case 's':
return "BRDisc";
case 'g':
return "LaserDisc";
}
return "VideoDisc";
case 'f':
return "VideoCassette";
case 'r':
Expand Down
1 change: 1 addition & 0 deletions import/translation_maps/format_map.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Image = Image
InteractiveMultimedia = Software
Journal = Journal
Kit = Kit
LaserDisc = Laser Disc
Manuscript = Manuscript
Map = Map
Microfilm = Microfilm
Expand Down

0 comments on commit 1d730ee

Please sign in to comment.