The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit b91cf28e authored by Demian Katz's avatar Demian Katz Committed by André Lahmann
Browse files

Blu-ray format support.

- Resolves VUFIND-1156.
- Thanks to Jay Roos.
parent 90aa2502
No related merge requests found
...@@ -24,6 +24,7 @@ public Set getFormat(Record record){ ...@@ -24,6 +24,7 @@ public Set getFormat(Record record){
String formatString; String formatString;
char formatCode = ' '; char formatCode = ' ';
char formatCode2 = ' '; char formatCode2 = ' ';
char formatCode4 = ' ';
// check if there's an h in the 245 // check if there's an h in the 245
if (title != null) { if (title != null) {
...@@ -45,6 +46,7 @@ public Set getFormat(Record record){ ...@@ -45,6 +46,7 @@ public Set getFormat(Record record){
formatString = formatField.getData().toUpperCase(); formatString = formatField.getData().toUpperCase();
formatCode = formatString.length() > 0 ? formatString.charAt(0) : ' '; formatCode = formatString.length() > 0 ? formatString.charAt(0) : ' ';
formatCode2 = formatString.length() > 1 ? formatString.charAt(1) : ' '; formatCode2 = formatString.length() > 1 ? formatString.charAt(1) : ' ';
formatCode4 = formatString.length() > 4 ? formatString.charAt(4) : ' ';
switch (formatCode) { switch (formatCode) {
case 'A': case 'A':
switch(formatCode2) { switch(formatCode2) {
...@@ -187,7 +189,15 @@ public Set getFormat(Record record){ ...@@ -187,7 +189,15 @@ public Set getFormat(Record record){
result.add("VideoCartridge"); result.add("VideoCartridge");
break; break;
case 'D': case 'D':
result.add("VideoDisc"); switch(formatCode4) {
case 'S':
result.add("BRDisc");
break;
case 'V':
default:
result.add("VideoDisc");
break;
}
break; break;
case 'F': case 'F':
result.add("VideoCassette"); result.add("VideoCassette");
......
...@@ -34,6 +34,7 @@ SoundCassette = Cassette ...@@ -34,6 +34,7 @@ SoundCassette = Cassette
SoundRecording = Audio SoundRecording = Audio
VideoCartridge = Video VideoCartridge = Video
VideoDisc = DVD VideoDisc = DVD
BRDisc = Blu-ray Disc
VideoCassette = VHS VideoCassette = VHS
VideoReel = Video VideoReel = Video
Video = Video Video = Video
......
...@@ -95,6 +95,7 @@ Be the first to leave a comment = "Be the first to leave a comment" ...@@ -95,6 +95,7 @@ Be the first to leave a comment = "Be the first to leave a comment"
Be the first to tag this record = "Be the first to tag this record" Be the first to tag this record = "Be the first to tag this record"
Bibliographic Details = "Bibliographic Details" Bibliographic Details = "Bibliographic Details"
Bibliography = "Bibliography" Bibliography = "Bibliography"
Blu-ray Disc = "Blu-ray Disc"
Book = "Book" Book = "Book"
Book Bag = "Book Bag" Book Bag = "Book Bag"
Book Chapter = "Book Chapter" Book Chapter = "Book Chapter"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment