File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<feed xmlns =" http://www.w3.org/2005/Atom"
3
+ xmlns : dc =" http://purl.org/dc/terms/"
3
4
xmlns : opds =" https://specs.opds.io/opds-1.2" >
4
5
<id >{{feed_id}}</id >
5
6
<link rel =" self"
14
15
{{#languages}}
15
16
<entry >
16
17
<title >{{lang_self_name}}</title >
18
+ <dc : language >{{{lang_code}}}</dc : language >
17
19
<link rel =" subsection"
18
20
href =" {{endpoint_root}}/entries?lang={{{lang_code}}}"
19
21
type =" application/atom+xml;profile=opds-catalog;kind=acquisition" />
Original file line number Diff line number Diff line change @@ -1020,6 +1020,7 @@ TEST_F(LibraryServerTest, catalog_v2_languages)
1020
1020
EXPECT_EQ (r->status , 200 );
1021
1021
const char expected_output[] = R"( <?xml version="1.0" encoding="UTF-8"?>
1022
1022
<feed xmlns="http://www.w3.org/2005/Atom"
1023
+ xmlns:dc="http://purl.org/dc/terms/"
1023
1024
xmlns:opds="https://specs.opds.io/opds-1.2">
1024
1025
<id>12345678-90ab-cdef-1234-567890abcdef</id>
1025
1026
<link rel="self"
@@ -1033,6 +1034,7 @@ TEST_F(LibraryServerTest, catalog_v2_languages)
1033
1034
1034
1035
<entry>
1035
1036
<title>English</title>
1037
+ <dc:language>eng</dc:language>
1036
1038
<link rel="subsection"
1037
1039
href="/catalog/v2/entries?lang=eng"
1038
1040
type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
@@ -1042,6 +1044,7 @@ TEST_F(LibraryServerTest, catalog_v2_languages)
1042
1044
</entry>
1043
1045
<entry>
1044
1046
<title>Français</title>
1047
+ <dc:language>fra</dc:language>
1045
1048
<link rel="subsection"
1046
1049
href="/catalog/v2/entries?lang=fra"
1047
1050
type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
@@ -1051,6 +1054,7 @@ TEST_F(LibraryServerTest, catalog_v2_languages)
1051
1054
</entry>
1052
1055
<entry>
1053
1056
<title>Русский</title>
1057
+ <dc:language>rus</dc:language>
1054
1058
<link rel="subsection"
1055
1059
href="/catalog/v2/entries?lang=rus"
1056
1060
type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
You can’t perform that action at this time.
0 commit comments