https://bugzilla.wikimedia.org/show_bug.cgi?id=36985
Web browser: --- Bug #: 36985 Summary: linkify "url.author.LibraryThing.com" to LT author url Product: Tools Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: Unprioritized Component: VIAF AssignedTo: m...@tgries.de ReportedBy: gangl...@torg.is CC: gangl...@torg.is Classification: Unclassified Mobile Platform: --- short request: ::url.author.LibraryThing.com:WagnerRichard-3: should generate: http://librarything.com/author/wagnerrichard-3 (without "epo." etc.) Hi! At LT author urls are a lot of authority control data and useful links for special areas of interest as chess, Yiddish poets and writers and other "collections". Today these data needs to be transferred manually to WMF projects and other sites. A special ZCZC BEACON messaging is under development which is both human readable and can be parsed with regex by computer programs, tools and bots. The beacon is a context statement and all sites participating in "VIAF inter project linking" can participate and extract the information they need. The statement indicates a relation normally "identical author". It is not restricted to libraries participating in VIAF and is using domain names as keywords for non VIAF participants. example: "LibraryThing.com" is a domain name and "url.author." are descriptors for the list value indicating their meaning and usage In simple text the relevant "url.author.LibraryThing.com" information is embedded in "::" and the **next** occurence of "::". The first value is whatever is between the COLON after the keyword / keystring "url.author.LibraryThing.com" and the next COLON. In the future more values can be separated by simple COLONs. The values for this keyword are character, digits, the MINUS and the trailers "&norefer=2", "/names" and "/issues". Example 1: "WagnerRichard-1" Example 2: "1038773026" - this is a numerical author url for authors having most works at an non LATN author url. Example 3: "1234567-8" is a constructed but valid author url. LT does not have this author. testcases: ::url.author.LibraryThing.com:WagnerRichard-1:WagnerRichard-2:WagnerRichard-3:: ::url.author.LibraryThing.com:1038773026:: ::url.author.LibraryThing.com:1234567-8:: Example 4: Paul Celan (1920–1970) ::url.author.LibraryThing.com:2382197905&norefer=2:CelanPaul/names;CelanPaul/issues:: should generate: http://librarything.com/author/2382197905&norefer=2# http://librarything.com/author/celanpaul/names# http://librarything.com/author/celanpaul/issues# "::nl-nl::" is used for line breaks. The "::nl-nl::"-string is equivalent to "::". linkification: the url is http://librarything.com/author/foobar# notes: a1) protocol is http:// a2) no language domain is specified; only "librarything.com" a3) if no LT parameters are used this will redirect to the author url using the most popular spelling; b) the link name is "LT author" regardless of the type / trailer c) the ALT text is "LT author" regardless of the type / trailer d) safety link trailer generated by the / added by the VIAF bookmarklet is "#" Please contact me if there are any question. Best regards Reinhardt ---- Minimal implementation. If it is easier to linkify only the first value, this is a very good start. a test url: see http://en.wikipedia.org/wiki/Talk:Martha_Wells#BEACON -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l