Nicht angemeldeter Benutzer - Bearbeiten von Seiten ist nur als angemeldeter Benutzer möglich.

Änderungen

Zur Navigation springen Zur Suche springen
188 Bytes hinzugefügt ,  21:30, 2. Okt. 2017
2017-10-02
Zeile 1: Zeile 1:  
local URIutil = { suite  = "URIutil",
 
local URIutil = { suite  = "URIutil",
                   serial = "2017-08-16" };
+
                   serial = "2017-10-02" };
 
--[=[
 
--[=[
 
Utilities for URI etc.
 
Utilities for URI etc.
Zeile 277: Zeile 277:  
             lead = false;
 
             lead = false;
 
         else    -- even
 
         else    -- even
             r = r + k + k;
+
             r   = r + k + k;
 
             lead = true;
 
             lead = true;
 
         end
 
         end
Zeile 932: Zeile 932:  
     --    attempt  -- string with any presumable DNB code
 
     --    attempt  -- string with any presumable DNB code
 
     --    also    -- string or nil; optional requirement DMA GND SWD
 
     --    also    -- string or nil; optional requirement DMA GND SWD
     --                currently not implemented
+
     --                "ZDB"  -- permit hyphen, but use >2011 rule
 
     --                DMA starting with 3 and no hyphen
 
     --                DMA starting with 3 and no hyphen
 
     --                GND not DNB2011
 
     --                GND not DNB2011
Zeile 939: Zeile 939:  
     --    Returns  number of digits or 2011, if valid
 
     --    Returns  number of digits or 2011, if valid
 
     --              false if not correct, bad data or check digit wrong
 
     --              false if not correct, bad data or check digit wrong
    -- 2013-09-01
   
     local s = mw.text.trim( attempt );
 
     local s = mw.text.trim( attempt );
 
     local j = s:find( "/", 5, true );
 
     local j = s:find( "/", 5, true );
Zeile 952: Zeile 951:  
             if s:match( "^[0-9]+-[0-9xX]$" ) then
 
             if s:match( "^[0-9]+-[0-9xX]$" ) then
 
                 dnb = factory( s, true );
 
                 dnb = factory( s, true );
 +
                if also  and
 +
                  mw.text.trim( also ) == "ZDB" then
 +
                    j = false;
 +
                end
 
             end
 
             end
 
         end
 
         end
Zeile 1.206: Zeile 1.209:  
             r = attempt;
 
             r = attempt;
 
         end
 
         end
         r = string.format( "%s [%s%s%s%s %s]",
+
         r = string.format( "%s [%s%s%s%s%s %s]",
 
                           s,
 
                           s,
 
                           "https://portal.dnb.de/opac.htm",
 
                           "https://portal.dnb.de/opac.htm",
                           "?method=simpleSearch&cqlMode=true",
+
                           "?referrer=Wikipedia",
 +
                          "&method=simpleSearch&cqlMode=true",
 
                           "&query=idn%3D",
 
                           "&query=idn%3D",
 
                           attempt,
 
                           attempt,
Cookies helfen uns bei der Bereitstellung von imedwiki. Durch die Nutzung von imedwiki erklärst du dich damit einverstanden, dass wir Cookies speichern.

Navigationsmenü