[Collab-qa-commits] r2134 - in udd: . sql
Andreas Tille
tille at alioth.debian.org
Fri Feb 3 08:23:05 UTC 2012
Author: tille
Date: 2012-02-03 08:23:04 +0000 (Fri, 03 Feb 2012)
New Revision: 2134
Modified:
udd/config-org.yaml
udd/sql/bibref.sql
udd/sql/blends-query-packages.sql
Log:
Fix mirror where to get translations from; add support for bibtex in blends query
Modified: udd/config-org.yaml
===================================================================
--- udd/config-org.yaml 2012-02-02 21:45:24 UTC (rev 2133)
+++ udd/config-org.yaml 2012-02-03 08:23:04 UTC (rev 2134)
@@ -965,9 +965,11 @@
ddtp:
type: ddtp
- update-command: /org/udd.debian.org/udd/scripts/fetch_ddtp_translations.sh /org/udd.debian.org/mirrors/ddtp ddtp.debian.net/Translation_udd sid lenny squeeze
+ xxx-update-command: /org/udd.debian.org/udd/scripts/fetch_ddtp_translations.sh /org/udd.debian.org/mirrors/ddtp ddtp.debian.net/Translation_udd sid lenny squeeze
+ update-command: /org/udd.debian.org/udd/scripts/fetch_ddtp_translations.sh /org/udd.debian.org/mirrors/ddtp ftp.debian.org/debian sid lenny squeeze
path: /org/udd.debian.org/mirrors/ddtp
- mirror: ddtp.debian.net/Translation_udd
+ xxx-mirror: ddtp.debian.net/Translation_udd
+ mirror: ftp.debian.org/debian
files: Translation-.*\.gz
releases: sid lenny squeeze
table: ddtp
Modified: udd/sql/bibref.sql
===================================================================
--- udd/sql/bibref.sql 2012-02-02 21:45:24 UTC (rev 2133)
+++ udd/sql/bibref.sql 2012-02-03 08:23:04 UTC (rev 2134)
@@ -8,6 +8,7 @@
package text NOT NULL,
key text NOT NULL,
value text NOT NULL
+ -- , PRIMARY KEY (package,key) -- this helps preventing more than one times the same key for a single package
);
GRANT SELECT ON bibref TO PUBLIC;
Modified: udd/sql/blends-query-packages.sql
===================================================================
--- udd/sql/blends-query-packages.sql 2012-02-02 21:45:24 UTC (rev 2133)
+++ udd/sql/blends-query-packages.sql 2012-02-03 08:23:04 UTC (rev 2134)
@@ -23,6 +23,11 @@
pop.vote, pop.recent,
tags.debtags,
screenshot_versions, large_image_urls, small_image_urls,
+ bibyear.value AS "Published-Year",
+ bibtitle.value AS "Published-Title",
+ bibauthor.value AS "Published-Authors",
+ bibdoi.value AS "Published-DOI",
+ bibpmid.value AS "Published-PubMed",
p.description AS description_en, p.long_description AS long_description_en,
cs.description AS description_cs, cs.long_description AS long_description_cs,
da.description AS description_da, da.long_description AS long_description_da,
@@ -179,6 +184,11 @@
WHERE enhances LIKE ANY( $2 )
) AS tmpenh GROUP BY package
) enh ON enh.package = p.package
+ LEFT OUTER JOIN bibref bibyear ON p.package = bibyear.package AND bibyear.key = 'Reference-Year'
+ LEFT OUTER JOIN bibref bibtitle ON p.package = bibtitle.package AND bibtitle.key = 'Reference-Title'
+ LEFT OUTER JOIN bibref bibauthor ON p.package = bibauthor.package AND bibauthor.key = 'Reference-Author'
+ LEFT OUTER JOIN bibref bibdoi ON p.package = bibdoi.package AND bibdoi.key = 'DOI'
+ LEFT OUTER JOIN bibref bibpmid ON p.package = bibpmid.package AND bibpmid.key = 'PMID'
ORDER BY p.package
$$ LANGUAGE 'SQL';
More information about the Collab-qa-commits
mailing list