@@ -107,18 +107,18 @@ describe('MetadataService', () => {
107107 tick ( ) ;
108108 expect ( title . setTitle ) . toHaveBeenCalledWith ( 'Test PowerPoint Document' ) ;
109109 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
110- property : 'citation_title' ,
110+ name : 'citation_title' ,
111111 content : 'Test PowerPoint Document'
112112 } ) ;
113- expect ( meta . addTag ) . toHaveBeenCalledWith ( { property : 'citation_author' , content : 'Doe, Jane' } ) ;
113+ expect ( meta . addTag ) . toHaveBeenCalledWith ( { name : 'citation_author' , content : 'Doe, Jane' } ) ;
114114 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
115- property : 'citation_publication_date' ,
115+ name : 'citation_publication_date' ,
116116 content : '1650-06-26'
117117 } ) ;
118- expect ( meta . addTag ) . toHaveBeenCalledWith ( { property : 'citation_issn' , content : '123456789' } ) ;
119- expect ( meta . addTag ) . toHaveBeenCalledWith ( { property : 'citation_language' , content : 'en' } ) ;
118+ expect ( meta . addTag ) . toHaveBeenCalledWith ( { name : 'citation_issn' , content : '123456789' } ) ;
119+ expect ( meta . addTag ) . toHaveBeenCalledWith ( { name : 'citation_language' , content : 'en' } ) ;
120120 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
121- property : 'citation_keywords' ,
121+ name : 'citation_keywords' ,
122122 content : 'keyword1; keyword2; keyword3'
123123 } ) ;
124124 } ) ) ;
@@ -133,11 +133,11 @@ describe('MetadataService', () => {
133133 } ) ;
134134 tick ( ) ;
135135 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
136- property : 'citation_dissertation_name' ,
136+ name : 'citation_dissertation_name' ,
137137 content : 'Test PowerPoint Document'
138138 } ) ;
139139 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
140- property : 'citation_pdf_url' ,
140+ name : 'citation_pdf_url' ,
141141 content : 'https://request.org/bitstreams/4db100c1-e1f5-4055-9404-9bc3e2d15f29/download'
142142 } ) ;
143143 } ) ) ;
@@ -152,7 +152,7 @@ describe('MetadataService', () => {
152152 } ) ;
153153 tick ( ) ;
154154 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
155- property : 'citation_technical_report_institution' ,
155+ name : 'citation_technical_report_institution' ,
156156 content : 'Mock Publisher'
157157 } ) ;
158158 } ) ) ;
@@ -170,11 +170,11 @@ describe('MetadataService', () => {
170170 tick ( ) ;
171171 expect ( title . setTitle ) . toHaveBeenCalledWith ( 'DSpace :: Dummy Title' ) ;
172172 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
173- property : 'title' ,
173+ name : 'title' ,
174174 content : 'DSpace :: Dummy Title'
175175 } ) ;
176176 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
177- property : 'description' ,
177+ name : 'description' ,
178178 content : 'This is a dummy item component for testing!'
179179 } ) ;
180180 } ) ) ;
@@ -191,7 +191,7 @@ describe('MetadataService', () => {
191191 metadataService . listenForRouteChange ( ) ;
192192 tick ( ) ;
193193 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
194- property : 'Generator' ,
194+ name : 'Generator' ,
195195 content : 'mock-dspace-version'
196196 } ) ;
197197 } ) ) ;
@@ -208,7 +208,7 @@ describe('MetadataService', () => {
208208 } ) ;
209209 tick ( ) ;
210210 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
211- property : 'citation_abstract_html_url' ,
211+ name : 'citation_abstract_html_url' ,
212212 content : 'https://ddg.gg'
213213 } ) ;
214214 } ) ) ;
@@ -223,7 +223,7 @@ describe('MetadataService', () => {
223223 } ) ;
224224 tick ( ) ;
225225 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
226- property : 'citation_abstract_html_url' ,
226+ name : 'citation_abstract_html_url' ,
227227 content : 'https://request.org/items/0ec7ff22-f211-40ab-a69e-c819b0b1f357'
228228 } ) ;
229229 } ) ) ;
@@ -240,11 +240,11 @@ describe('MetadataService', () => {
240240 } ) ;
241241 tick ( ) ;
242242 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
243- property : 'citation_dissertation_institution' ,
243+ name : 'citation_dissertation_institution' ,
244244 content : 'Mock Publisher'
245245 } ) ;
246- expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { property : 'citation_technical_report_institution' } ) ) ;
247- expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { property : 'citation_publisher' } ) ) ;
246+ expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { name : 'citation_technical_report_institution' } ) ) ;
247+ expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { name : 'citation_publisher' } ) ) ;
248248 } ) ) ;
249249
250250 it ( 'should use citation_tech_report_institution tag for tech reports' , fakeAsync ( ( ) => {
@@ -256,12 +256,12 @@ describe('MetadataService', () => {
256256 }
257257 } ) ;
258258 tick ( ) ;
259- expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { property : 'citation_dissertation_institution' } ) ) ;
259+ expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { name : 'citation_dissertation_institution' } ) ) ;
260260 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
261- property : 'citation_technical_report_institution' ,
261+ name : 'citation_technical_report_institution' ,
262262 content : 'Mock Publisher'
263263 } ) ;
264- expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { property : 'citation_publisher' } ) ) ;
264+ expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { name : 'citation_publisher' } ) ) ;
265265 } ) ) ;
266266
267267 it ( 'should use citation_publisher for other item types' , fakeAsync ( ( ) => {
@@ -273,10 +273,10 @@ describe('MetadataService', () => {
273273 }
274274 } ) ;
275275 tick ( ) ;
276- expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { property : 'citation_dissertation_institution' } ) ) ;
277- expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { property : 'citation_technical_report_institution' } ) ) ;
276+ expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { name : 'citation_dissertation_institution' } ) ) ;
277+ expect ( meta . addTag ) . not . toHaveBeenCalledWith ( jasmine . objectContaining ( { name : 'citation_technical_report_institution' } ) ) ;
278278 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
279- property : 'citation_publisher' ,
279+ name : 'citation_publisher' ,
280280 content : 'Mock Publisher'
281281 } ) ;
282282 } ) ) ;
@@ -295,7 +295,7 @@ describe('MetadataService', () => {
295295 } ) ;
296296 tick ( ) ;
297297 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
298- property : 'citation_pdf_url' ,
298+ name : 'citation_pdf_url' ,
299299 content : 'https://request.org/bitstreams/4db100c1-e1f5-4055-9404-9bc3e2d15f29/download'
300300 } ) ;
301301 } ) ) ;
@@ -313,7 +313,7 @@ describe('MetadataService', () => {
313313 } ) ;
314314 tick ( ) ;
315315 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
316- property : 'citation_pdf_url' ,
316+ name : 'citation_pdf_url' ,
317317 content : 'https://request.org/bitstreams/4db100c1-e1f5-4055-9404-9bc3e2d15f29/download'
318318 } ) ;
319319 } ) ) ;
@@ -334,7 +334,7 @@ describe('MetadataService', () => {
334334 } ) ;
335335 tick ( ) ;
336336 expect ( meta . addTag ) . toHaveBeenCalledWith ( {
337- property : 'citation_pdf_url' ,
337+ name : 'citation_pdf_url' ,
338338 content : 'https://request.org/bitstreams/cf9b0c8e-a1eb-4b65-afd0-567366448713/download'
339339 } ) ;
340340 } ) ) ;
@@ -354,8 +354,8 @@ describe('MetadataService', () => {
354354 } ) ) ;
355355
356356 it ( 'should remove previous tags on route change' , fakeAsync ( ( ) => {
357- expect ( meta . removeTag ) . toHaveBeenCalledWith ( 'property =\'title\'' ) ;
358- expect ( meta . removeTag ) . toHaveBeenCalledWith ( 'property =\'description\'' ) ;
357+ expect ( meta . removeTag ) . toHaveBeenCalledWith ( 'name =\'title\'' ) ;
358+ expect ( meta . removeTag ) . toHaveBeenCalledWith ( 'name =\'description\'' ) ;
359359 } ) ) ;
360360
361361 it ( 'should clear all tags and add new ones on route change' , ( ) => {
0 commit comments