Module:Citation/CS1/COinS: Difference between revisions
| imported>Trappist the monk  sync from sandbox; | Richardpruen (talk | contribs) m 1 revision imported: template update | ||
| (One intermediate revision by one other user not shown) | |||
| Line 180: | Line 180: | ||
| 	}); | 	}); | ||
| 	if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'ssrn', 'journal', 'news', 'magazine'}) or | 	if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn', 'journal', 'news', 'magazine'}) or | ||
| 		(in_array (class, {'conference', 'interview', 'map', 'press release', 'web'}) and is_set(data.Periodical)) or | 		(in_array (class, {'conference', 'interview', 'map', 'press release', 'web'}) and is_set(data.Periodical)) or | ||
| 		('citation' == class and is_set(data.Periodical) and not is_set (data.Encyclopedia)) then | 		('citation' == class and is_set(data.Periodical) and not is_set (data.Encyclopedia)) then | ||
| 			OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:journal";			-- journal metadata identifier | 			OCinSoutput.rft_val_fmt = "info:ofi/fmt:kev:mtx:journal";			-- journal metadata identifier | ||
| 			if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'ssrn'}) then	-- set genre according to the type of citation template we are rendering | 			if in_array (class, {'arxiv', 'biorxiv', 'citeseerx', 'medrxiv', 'ssrn'}) then	-- set genre according to the type of citation template we are rendering | ||
| 				OCinSoutput["rft.genre"] = "preprint";							-- cite arxiv, cite biorxiv, cite citeseerx, cite ssrn | 				OCinSoutput["rft.genre"] = "preprint";							-- cite arxiv, cite biorxiv, cite citeseerx, cite medrxiv, cite ssrn | ||
| 			elseif 'conference' == class then | 			elseif 'conference' == class then | ||
| 				OCinSoutput["rft.genre"] = "conference";						-- cite conference (when Periodical set) | 				OCinSoutput["rft.genre"] = "conference";						-- cite conference (when Periodical set) | ||