Jump to content

Module:Citation/CS1: Difference between revisions

moved "type=" to show after "format="; moved "issue=" to show before "page="; for "pmc=" link, omitted suffix "/?tool=pmcentrez".
m>Wikid77
(fixed args.article to set Title, after Periodical is set from Title; allowed blank Title (as "contribution=mytitle"); fixed ".." in Editors list)
m>Wikid77
(moved "type=" to show after "format="; moved "issue=" to show before "page="; for "pmc=" link, omitted suffix "/?tool=pmcentrez".)
Line 686: Line 686:
         OSTI = sepc .." " .. externallinkid(frame, {label="OSTI",link="Office of Scientific and Technical Information",prefix="http://www.osti.gov/energycitations/product.biblio.jsp?osti_id=",id=OSTI}) else OSTI = "" end
         OSTI = sepc .." " .. externallinkid(frame, {label="OSTI",link="Office of Scientific and Technical Information",prefix="http://www.osti.gov/energycitations/product.biblio.jsp?osti_id=",id=OSTI}) else OSTI = "" end
     if ( PMC ~= nil and PMC ~="") then
     if ( PMC ~= nil and PMC ~="") then
         PMC = sepc .." " .. externallinkid(frame, {label="PMC",link="PubMed Central",prefix="//www.ncbi.nlm.nih.gov/pmc/articles/PMC",suffix="/?tool=pmcentrez",id=PMC}) else PMC = "" end
         PMC = sepc .." " .. externallinkid(frame, {label="PMC",link="PubMed Central",prefix="//www.ncbi.nlm.nih.gov/pmc/articles/PMC",suffix=" ",id=PMC}) else PMC = "" end
     if ( PMID ~= nil and PMID ~="") then
     if ( PMID ~= nil and PMID ~="") then
         PMID = sepc .." " .. externallinkid(frame, {label="PMID",link="PubMed Identifier",prefix="//www.ncbi.nlm.nih.gov/pubmed/",id=PMID}) else PMID = "" end
         PMID = sepc .." " .. externallinkid(frame, {label="PMID",link="PubMed Identifier",prefix="//www.ncbi.nlm.nih.gov/pubmed/",id=PMID}) else PMID = "" end
Line 769: Line 769:
     local tcommon
     local tcommon
     if ( config.CitationClass == "journal" )
     if ( config.CitationClass == "journal" )
     then tcommon = Title .. TitleType .. TitleNote .. Language .. Format .. Edition .. Conference .. Periodical .. Series .. Publisher .. Agency .. Volume .. Others .. Issue .. Position
     then tcommon = Title .. TitleNote .. Language .. Format .. TitleType .. Edition .. Conference .. Periodical .. Series .. Publisher .. Agency .. Others .. Volume .. Others .. Position
     elseif ( config.CitationClass == "citation" )
     elseif ( config.CitationClass == "citation" )
     then tcommon = Title .. TitleType .. TitleNote .. Language .. Format .. Edition .. Conference .. Periodical .. Series .. Volume .. Issue .. Publisher .. Agency .. Others .. Position
     then tcommon = Title .. TitleNote .. Language .. Format .. TitleType .. Edition .. Conference .. Periodical .. Series .. Volume .. Publisher .. Agency .. Others .. Position
     else tcommon = Title .. TitleType .. TitleNote .. Series .. Language .. Format .. Edition .. Conference .. Periodical .. Volume .. Others .. Issue .. Publisher .. Agency .. Position
     else tcommon = Title .. TitleNote .. Series .. Language .. Format .. TitleType .. Edition .. Conference .. Periodical .. Volume .. Publisher .. Agency .. Others .. Position
     end
     end
     -- DEBUG: tcommon = "/Title="..Title .. "/TitleType="..TitleType .. "/TitleNote="..TitleNote .. "/Format="..Format .. "/Edition="..Edition .. "/Language="..Language .. "/Conference="..Conference .. "/Periodical="..Periodical .. "/Series="..Series .. "/Volume="..Volume .. "/Issue="..Issue .. "/Position="..Position
     -- DEBUG: tcommon = "/Title="..Title .. "/TitleType="..TitleType .. "/TitleNote="..TitleNote .. "/Format="..Format .. "/Edition="..Edition .. "/Language="..Language .. "/Conference="..Conference .. "/Periodical="..Periodical .. "/Series="..Series .. "/Volume="..Volume .. "/Issue="..Issue .. "/Position="..Position
Line 796: Line 796:
             end
             end
         end
         end
         text = Authors .. Coauthors .. " "..Date .. Chapter .. Editors .. tcommon .. Page .. Pages .. At .. idcommon
         text = Authors .. Coauthors .. " "..Date .. Chapter .. Editors .. tcommon .. Issue .. Page .. Pages .. At .. idcommon
     elseif ( "" ~= Editors) then
     elseif ( "" ~= Editors) then
         Editors = Editors .. " (eds.)"
         Editors = Editors .. " (eds.)"
         if ( "" ~= Date ) then Date = " (" .. Date ..")" .. OrigYear .. sepc .. " "
         if ( "" ~= Date ) then Date = " (" .. Date ..")" .. OrigYear .. sepc .. " "
         else Editors = Editors .. sepc .. " " end
         else Editors = Editors .. sepc .. " " end
         text = Editors .. Date .. Chapter .. tcommon .. Page .. Pages .. At .. idcommon
         text = Editors .. Date .. Chapter .. tcommon .. Issue .. Page .. Pages .. At .. idcommon
     else
     else
         if ( "" ~= Date ) then
         if ( "" ~= Date ) then
Line 809: Line 809:
             end
             end
         end -- endif ""~=Date
         end -- endif ""~=Date
         text = Chapter .. tcommon .. Date .. Page .. Pages .. At .. idcommon
         text = Chapter .. tcommon .. Date .. Issue .. Page .. Pages .. At .. idcommon
     end
     end
      
      
Line 1,146: Line 1,146:
--23Feb2013 Fixed to allow blank Title (such as "contribution=mytitle").
--23Feb2013 Fixed to allow blank Title (such as "contribution=mytitle").
--23Feb2013 Fixed double-dot ".." at end of Editors list
--23Feb2013 Fixed double-dot ".." at end of Editors list
--26Feb2013 Moved "issue=" data to show before "page=".
--26Feb2013 Moved "type=" data to show after "format=".
--26Feb2013 For "pmc=" link, omitted suffix "/?tool=pmcentrez".
--
--
--End
--End
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.