diff --git a/pkgs/plt-services/meta/pkg-index/official/dynamic.rkt b/pkgs/plt-services/meta/pkg-index/official/dynamic.rkt index b02b52b3f0..c32f804c58 100644 --- a/pkgs/plt-services/meta/pkg-index/official/dynamic.rkt +++ b/pkgs/plt-services/meta/pkg-index/official/dynamic.rkt @@ -195,9 +195,8 @@ (jsonp/package/modify ['pkg pkg] ['name mn-name] - ['desc mn-desc] - ['source mn-source] - ['authors mn-authors]) + ['description mn-desc] + ['source mn-source]) #f) ;; XXX diff --git a/pkgs/plt-services/meta/pkg-index/official/jsonp.rkt b/pkgs/plt-services/meta/pkg-index/official/jsonp.rkt index eca6be5015..854aa4e0dd 100644 --- a/pkgs/plt-services/meta/pkg-index/official/jsonp.rkt +++ b/pkgs/plt-services/meta/pkg-index/official/jsonp.rkt @@ -46,7 +46,8 @@ (define-syntax-rule (define-jsonp (f . pat) . body) (define f (make-jsonp-responder - (match-lambda [(hash-table . pat) . body])))) + (match-lambda [(hash-table . pat) . body] + [x (error 'f "ill formatted request: ~v" x)])))) (provide define-jsonp make-jsonp-responder) diff --git a/pkgs/plt-services/meta/pkg-index/official/static/index.js b/pkgs/plt-services/meta/pkg-index/official/static/index.js index 74db168d32..78fe4f2197 100644 --- a/pkgs/plt-services/meta/pkg-index/official/static/index.js +++ b/pkgs/plt-services/meta/pkg-index/official/static/index.js @@ -41,10 +41,20 @@ $( document ).ready(function() { var mypkg_p = ($.inArray(me(), pkgi['authors'] ) != -1); + function make_editbutton ( spot, initv, fun ) { + if ( mypkg_p ) { + $( "#" + spot ).append( $('