Mercurial > hg > MPIWGThesaurus
changeset 8:3a5a7c2552c8
edit
author | dwinter |
---|---|
date | Mon, 02 Jan 2012 12:52:12 +0100 |
parents | e21db3150dae |
children | a7a4f8a71711 |
files | MPIWGThesaurus.py zpt/manageMPIWGThesaurus.zpt zpt/rearrangePersons.zpt |
diffstat | 3 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/MPIWGThesaurus.py Wed Dec 21 22:11:16 2011 +0100 +++ b/MPIWGThesaurus.py Mon Jan 02 12:52:12 2012 +0100 @@ -66,6 +66,8 @@ #personproviderURL="http://virtuoso.mpiwg-berlin.mpg.de:8080/MetaDataManagerRestlet/person/" #PERSONS_LOOKUP_URL="http://127.0.0.1:8280/MetaDataManagerRestlet/search/persons" PERSONS_LOOKUP_URL="http://127.0.0.1:8280/MetaDataManagerRestlet/persons" + EDIT_URL="http://127.0.0.1:8280/MetaDataManagerRestlet/edit?id=" + #PERSONS_LOOKUP_URL="http://virtuoso.mpiwg-berlin.mpg.de:8080/MetaDataManagerRestlet/person/" additionalNamesGraphURL="file://newpersonsFromProjects" @@ -281,9 +283,9 @@ retStr="" retStr+=self.personIDtoNames.get(personID,[personID])[0] # hole die Hauptbezeichnung, falls keine angeben ist, wird die ID ausgegeben, das is jedoch ein Felher in den Daten!! - additionalNames = self.personIDtoNames.get(personID,['',[]])[1] - if len(additionalNames)>0: - retStr+=" ("+",".join(additionalNames)+","+")" + #additionalNames = self.personIDtoNames.get(personID,['',[]])[1] + #if len(additionalNames)>0: + # retStr+=" ("+",".join(additionalNames)+","+")" return retStr @@ -816,7 +818,7 @@ if REQUEST: pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','rearrangePersons.zpt')).__of__(self) - return pt(changeList=ret,lookupUrl=self.PERSONS_LOOKUP_URL); + return pt(changeList=ret,lookupUrl=self.PERSONS_LOOKUP_URL,editURL=self.EDIT_URL); else: return ret;
--- a/zpt/manageMPIWGThesaurus.zpt Wed Dec 21 22:11:16 2011 +0100 +++ b/zpt/manageMPIWGThesaurus.zpt Mon Jan 02 12:52:12 2012 +0100 @@ -5,7 +5,7 @@ <li><a href="listAllSuggestedTags">Zeige alle vorgeschlagenen Tags</a></li> <li><a href="collectPersonNamesToIds">Hole/Update die Namenseintraege aus dem Triplestore, z.B. falls im Triplestore Namem geaendert worden</a></li> <li><a href="getPersonsWithProjectIDs?check=bool:True">Hole all Personen mit ProjectIDs, raeumt zu gleich den Cache Persone-->ProjectID auf</a></li> -<li><a href="rearangePersonIDsHTML">Ordne neue IDs vorhandenen Personen zu, insbesondere ersetze temporäre IDs durch GND oder andere,</a></li> +<li><a href="rearangePersonIDsHTML">Ordne neue IDs vorhandenen Personen zu, insbesondere ersetze temporaere IDs durch GND oder andere,</a></li> <li><a href="getUnifyPersonsList">Ordne GND ids zu, falls bisher IDs aus anderen Kontexten vergeben wurden.</a></li> </ul> </body>
--- a/zpt/rearrangePersons.zpt Wed Dec 21 22:11:16 2011 +0100 +++ b/zpt/rearrangePersons.zpt Mon Jan 02 12:52:12 2012 +0100 @@ -1,12 +1,13 @@ <html> <body tal:define="global i python:-1"> -<h1>Unify persons</h1> +<h1>Edit Persons</h1> <form method="post" action="rearangePersonIDs"> <table> <tr><td>Nr.</td><td>saved ID</td><td>Name</td><td>New ID</td><td>Unify?</td> </tr> <tr tal:repeat="item python:options['changeList']" > <td tal:define="global i python:i+1" tal:content="python:i"/> +<td><a tal:attributes="href python:options['editURL']+item[0]">edit</a></td> <td><a tal:attributes="href python:item[0]" tal:content="python:item[0]"/></td> <td tal:content="python:item[1]"/> <td><a tal:attributes="href python:item[2]">see</a><input size="100" tal:attributes="name python:'newID_'+str(i);