Permalink
Browse files

Add "current curator" column to the pub view

  • Loading branch information...
1 parent b284799 commit 0d397d78b5f74fbc1d1c492cd487318f3e5c787d @kimrutherford kimrutherford committed Apr 4, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 pomcur.yaml
View
4 pomcur.yaml
@@ -483,6 +483,10 @@ class_info:
- inline_list
- name: corresponding_author
editable: 1
+ - name: current_curator
+ referenced_class: Person
+ source:
+ sql: "select curator from curs_curator where curs_curator_id = (select max(curs_curator_id) from curs_curator cc, curs c where cc.curs = c.curs_id and c.pub = me.pub_id)"
# - name: type
# source: type_id
# values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "PomCur publication type")'

0 comments on commit 0d397d7

Please sign in to comment.