diff --git a/src/Citezen-Model.package/CZAuthor.class/instance/displayFullNameOn..st b/src/Citezen-Model.package/CZAuthor.class/instance/displayFullNameOn..st index 29961a7..a118b35 100644 --- a/src/Citezen-Model.package/CZAuthor.class/instance/displayFullNameOn..st +++ b/src/Citezen-Model.package/CZAuthor.class/instance/displayFullNameOn..st @@ -1,5 +1,5 @@ displaying displayFullNameOn: aStream - self firstNames , self lastNames + self firstNames , self particles, self lastNames do: [:name | aStream nextPutAll: name] separatedBy: [aStream space] \ No newline at end of file diff --git a/src/Citezen-Model.package/CZAuthor.class/instance/displayShortenedNameOn..st b/src/Citezen-Model.package/CZAuthor.class/instance/displayShortenedNameOn..st index 6ef5466..3e2e221 100644 --- a/src/Citezen-Model.package/CZAuthor.class/instance/displayShortenedNameOn..st +++ b/src/Citezen-Model.package/CZAuthor.class/instance/displayShortenedNameOn..st @@ -7,6 +7,10 @@ displayShortenedNameOn: aStream nextPut: firstName first; nextPut: $.; space]. + + self particles + do: [:particule | aStream nextPutAll: particule ; space]. + self lastNames do: [:lastName | aStream nextPutAll: lastName] separatedBy: [aStream space] \ No newline at end of file diff --git a/src/Citezen-Model.package/CZEntry.class/class/teamMemberPatterns.st b/src/Citezen-Model.package/CZEntry.class/class/teamMemberPatterns.st index 0093017..43825fe 100644 --- a/src/Citezen-Model.package/CZEntry.class/class/teamMemberPatterns.st +++ b/src/Citezen-Model.package/CZEntry.class/class/teamMemberPatterns.st @@ -1,37 +1,5 @@ team teamMemberPatterns - ^ teamMemberPatterns ifNil: [ teamMemberPatterns := - #( '*Ducasse*S*' '*S*Ducasse*' '*Denker*' - '*Auverlot*' '*Larcheveque*' - '*Anquetil*' '*Costiou*' '*Aranega*' - '*Govin*' - '*Pollet*' - '*Abdeen*' - '*Laval*' - '*Peirs*' - '*Falleri*' - '*Denier*' '*Marr*' - '*Hora*' - '*Etien*' - '*Blondeau*' - '*Casaccio*' - '*Bruni*' - '*Tesone*' - '*Teruel*' - '*Polito*' - '*Martinez*Peck*' - '*Uquillas*' - '*Arnaud*' - '*Bhatti*U*' - '*Fernandes*' - '*Razavizadeh*' - '*Uquilla*' - '*Dias*' - '*Cassou*' - '*Ryseghem*' - '*Papoulias*' - '*Demarey*' - '*Bera*' - '*Miranda*' - '*B*ra*' - '*Santos*')] \ No newline at end of file + ^ teamMemberPatterns + ifNil: + [ teamMemberPatterns := #('*Ducasse*S*' '*S*Ducasse*' '*Denker*' '*Auverlot*' '*Anquetil*' '*Costiou*' '*Aranega*' '*Govin*' '*Pollet*' '*Abdeen*' '*Laval*' '*Marr*' '*Hora*' '*Etien*' '*Blondeau*' '*Casaccio*' '*Bruni*' '*Tesone*' '*Teruel*' '*Polito*' '*Martinez*Peck*' '*Uquillas*' '*Arnaud*' '*Bhatti*U*' '*Fernandes*' '*Razavizadeh*' '*Uquilla*' '*Dias*' '*Cassou*' '*Ryseghem*' '*Papoulias*' '*Demarey*' '*Bera*' '*Miranda*' '*Peirs*') ] \ No newline at end of file diff --git a/src/Citezen-Model.package/CZEntry.class/instance/isTeamEntry.st b/src/Citezen-Model.package/CZEntry.class/instance/isTeamEntry.st index 03c0257..01707c0 100644 --- a/src/Citezen-Model.package/CZEntry.class/instance/isTeamEntry.st +++ b/src/Citezen-Model.package/CZEntry.class/instance/isTeamEntry.st @@ -1,5 +1,6 @@ team utils isTeamEntry + "This is a hack we should have a real notion of what is a team." | author | author := self author value. diff --git a/src/Citezen-Model.package/CZEntry.class/instance/pdf.st b/src/Citezen-Model.package/CZEntry.class/instance/pdf.st new file mode 100644 index 0000000..e21581c --- /dev/null +++ b/src/Citezen-Model.package/CZEntry.class/instance/pdf.st @@ -0,0 +1,4 @@ +predefined accessing +pdf + + ^ self at: #pdf \ No newline at end of file diff --git a/src/Citezen-Model.package/CZField.class/instance/isPDF.st b/src/Citezen-Model.package/CZField.class/instance/isPDF.st new file mode 100644 index 0000000..45925e2 --- /dev/null +++ b/src/Citezen-Model.package/CZField.class/instance/isPDF.st @@ -0,0 +1,4 @@ +testing +isPDF + + ^ key = #pdf \ No newline at end of file diff --git a/src/Citezen-Model.package/CZPool.class/class/PDF.st b/src/Citezen-Model.package/CZPool.class/class/PDF.st new file mode 100644 index 0000000..5e1e160 --- /dev/null +++ b/src/Citezen-Model.package/CZPool.class/class/PDF.st @@ -0,0 +1,3 @@ +constants +pdf + ^ #pdf \ No newline at end of file diff --git a/src/Citezen-Model.package/CZPool.class/class/initialize.st b/src/Citezen-Model.package/CZPool.class/class/initialize.st index c06244e..99bec56 100644 --- a/src/Citezen-Model.package/CZPool.class/class/initialize.st +++ b/src/Citezen-Model.package/CZPool.class/class/initialize.st @@ -12,6 +12,7 @@ initialize Note := self note. Number := self number. Pages := self pages. + PDF := self pdf. Publisher := self publisher. School := self school. Series := self series. diff --git a/src/Citezen-Model.package/CZPool.class/properties.json b/src/Citezen-Model.package/CZPool.class/properties.json index 5faf6ca..fffdca0 100644 --- a/src/Citezen-Model.package/CZPool.class/properties.json +++ b/src/Citezen-Model.package/CZPool.class/properties.json @@ -22,6 +22,7 @@ "Month", "Note", "Number", + "PDF", "Pages", "Publisher", "School", diff --git a/src/Citezen-Model.package/CZSet.class/instance/reverseDo..st b/src/Citezen-Model.package/CZSet.class/instance/reverseDo..st new file mode 100644 index 0000000..a617279 --- /dev/null +++ b/src/Citezen-Model.package/CZSet.class/instance/reverseDo..st @@ -0,0 +1,3 @@ +enumerating +reverseDo: aBlock + self entries reverseDo: aBlock \ No newline at end of file diff --git a/src/Citezen-Query.package/CZQuery.class/class/editor.st b/src/Citezen-Query.package/CZQuery.class/class/editor.st index 3a78060..5246bbd 100644 --- a/src/Citezen-Query.package/CZQuery.class/class/editor.st +++ b/src/Citezen-Query.package/CZQuery.class/class/editor.st @@ -1,7 +1,8 @@ builder editor - + "This is a hack we should have a real notion of what is a team." ^ (CZFieldQuery named: #editor - checks: [ :value | value containsTeamMember: CZEntry teamMemberPatterns ]) + checks: [ :value | + value containsTeamMember: CZEntry teamMemberPatterns ]) OR: (self annotationWithType: '*workshopproceedings*') \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/README.md b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/README.md similarity index 70% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/README.md rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/README.md index bdbfc47..b3c06e5 100644 --- a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/README.md +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/README.md @@ -1,4 +1,6 @@ -I'm a document builder with the description of a list of section (each one representing a query to a bibset). +I'm a document builder with the description of a list of sections (each one representing a query to a bibset). +I work on a subset of the entries based on the author. +I discard all the others. self new bodySpecification: #(#internationalJournal #topConference #nationalJournal #internationalConference #nationalConference #invitedPaper #bookChapter #book #editor #internationalWorkshop #PhDAndHabilitation #toolDemo #vulgarisation). diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/bodySpecification..st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/bodySpecification..st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/bodySpecification..st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/bodySpecification..st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/bodySpecification.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/bodySpecification.st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/bodySpecification.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/bodySpecification.st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/buildBody.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/buildBody.st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/buildBody.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/buildBody.st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/defaultSectionSpecification.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/defaultSectionSpecification.st similarity index 74% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/defaultSectionSpecification.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/defaultSectionSpecification.st index fe2c122..c6a30cc 100644 --- a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/defaultSectionSpecification.st +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/defaultSectionSpecification.st @@ -1,3 +1,3 @@ initialize defaultSectionSpecification - ^ #(#internationalJournal #nationalJournal #topConference internationalConference #nationalConference #invitedPaper #bookChapter #book #editor #internationalWorkshop #PhDAndHabilitation #toolDemo #vulgarisation) \ No newline at end of file + ^ #(#internationalJournal #topConference #nationalJournal internationalConference #nationalConference #invitedPaper #bookChapter #book #editor #internationalWorkshop #PhDAndHabilitation #toolDemo #vulgarisation) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/editorQuery.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/editorQuery.st new file mode 100644 index 0000000..d2b56fe --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/editorQuery.st @@ -0,0 +1,7 @@ +queries +editorQuery + "We refine it for a single author!: the entrie is flagged as workshopproceeddings or as editor. This way papers written by the author that is also editor will not be mixed in the editor zone." + + "we know that this is in the author entries, so he is an editor since he marked it" + ^ (self annotationWithType: '*workshopproceedings*') OR: (self annotationWithType: '*editor*') + \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/extension.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/extension.st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/extension.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/extension.st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/filter.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/filter.st similarity index 50% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/filter.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/filter.st index 3916c86..5ff945d 100644 --- a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/filter.st +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/filter.st @@ -2,4 +2,4 @@ building filter "set the working set to only the author entries" super filter. - workingBibSet := workingBibSet select: self authorQuery \ No newline at end of file + workingBibSet := workingBibSet select: (self authorQuery OR: self editorQuery) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generate.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generate.st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generate.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generate.st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generateFor..st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generateFor..st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generateFor..st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generateFor..st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generateFor.on..st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generateFor.on..st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generateFor.on..st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generateFor.on..st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generatorClass.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generatorClass.st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/generatorClass.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/generatorClass.st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/initialize.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/initialize.st similarity index 100% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/instance/initialize.st rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/instance/initialize.st diff --git a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/properties.json b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/properties.json similarity index 68% rename from src/Citezen-Reborn.package/CZBodyDocBuilder.class/properties.json rename to src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/properties.json index a39c193..02a17df 100644 --- a/src/Citezen-Reborn.package/CZBodyDocBuilder.class/properties.json +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilder.class/properties.json @@ -1,5 +1,5 @@ { - "commentStamp" : "StephaneDucasse 5/6/2018 14:59", + "commentStamp" : "StephaneDucasse 9/28/2019 09:15", "super" : "CZDocBuilder", "category" : "Citezen-Reborn-DocumentBuilder", "classinstvars" : [ ], @@ -8,6 +8,6 @@ "instvars" : [ "bodySpecification" ], - "name" : "CZBodyDocBuilder", + "name" : "CZAuthorFocusedDocBuilder", "type" : "normal" } \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/README.md b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/README.md new file mode 100644 index 0000000..e69de29 diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Abde08a.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Abde08a.st new file mode 100644 index 0000000..4f17f5b --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Abde08a.st @@ -0,0 +1,19 @@ +examples for tests +Abde08a + "self Abde08a" +^ +(CZBibParser parse: +' +@inproceedings{Abde08a, +author = {Hani Abdeen and Ilham Alloui and St\''ephane Ducasse and Damien Pollet and Mathieu Suen}, +title = {Package Reference Fingerprint: a Rich and Compact Visualization to Understand Package Relationships}, +booktitle = {European Conference on Software Maintenance and Reengineering (CSMR)}, +pages = {213--222}, +publisher = {IEEE Computer Society Press}, +year = 2008, +acceptnum = {24}, +accepttotal = {87} +} + +' +) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Abde10a.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Abde10a.st new file mode 100644 index 0000000..f39a277 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Abde10a.st @@ -0,0 +1,31 @@ +examples for tests +Abde10a + "self Abde10a" +^ +(CZBibParser parse: +'@article{Abde10a, + Aeres = {ACL}, + Aeresstatus = {aeres12}, + Annote = {internationaljournal}, + Author = {Hani Abdeen and St\''ephane Ducasse and Damien Pollet and Ilham Alloui}, + Doi = {10.1016/j.infsof.2010.07.005}, + Hal-Id = {inria-00531496}, + Impactfactor = {ISI impact factor 1.821 (2010)}, + Inria = {RMOD}, + Inriareport = {2010}, + Journal = {Information and Software Technology Journal}, + Keywords = {moose remoose2 lse-pub cook kzVisualisation}, + Pages = {1312-1330}, + Secondurl = {http://rmod.lille.inria.fr/archives/papers/Abde10a-IST-packageFingerprints.pdf}, + Title = {Package Fingerprint: a visual summary of package interfaces and relationships}, + Url = {http://rmod.lille.inria.fr/archives/papers/Abde10a-IST-Official-packageFingerprints.pdf}, + Volume = {52}, + X-Editorial-Board = {yes}, + X-International-Audience = {yes}, + X-Proceedings = {yes}, + Year = 2010, + Bdsk-Url-1 = {http://rmod.lille.inria.fr/archives/papers/Abde10a-IST-Official-packageFingerprints.pdf}, + Bdsk-Url-2 = {https://doi.org/10.1016/j.infsof.2010.07.005}} + +' +) diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Chev11a.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Chev11a.st new file mode 100644 index 0000000..2480714 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Chev11a.st @@ -0,0 +1,14 @@ +examples for tests +Chev11a + "self Chev11a" +^ +(CZBibParser parse: +' +@inproceedings{Chev11a, + author = {Chevalier-Boisvert, Maxime and Lavoie, Erick and Feeley, Marc and Dufour, Bruno}, + booktitle = {Dynamic Language Symposium}, + title = {Bootstrapping a Self-Hosted Research Virtual Machine for JavaScript}, + year = 2011 +} +' +) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Denk08b.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Denk08b.st new file mode 100644 index 0000000..b000f3f --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Denk08b.st @@ -0,0 +1,30 @@ +examples for tests +Denk08b + "self Denk08b" +^ +(CZBibParser parse: +'@inproceedings{Denk08b, + Annote = {internationalconference}, + Author = {Marcus Denker and Mathieu Suen and St\''ephane + Ducasse}, + Booktitle = {Proceedings of TOOLS EUROPE 2008}, + peer = {yes}, + pages = {218--237}, + aeres = {ACT}, + aeresstatus = {aeres12}, + inria = {RMOD}, + selectif = {non}, + ISSN = {1865-1348}, + Keywords = {scg-pub jb08 fb08 snf08 reflectivity}, + labo = {dans}, + Publisher = {Springer-Verlag}, + Series = {LNBIP}, + Volume = 11, + Doi = {10.1007/978-3-540-69824-1_13}, + Url = {http://scg.unibe.ch/archive/papers/Denk08bMetaContextLNBIP.pdf}, + Title = {The Meta in Meta-object Architectures}, + hal = {inria-00271286,p56w09p}, + Year = 2008 +} +' +) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Duca10a.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Duca10a.st new file mode 100644 index 0000000..a364a63 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Duca10a.st @@ -0,0 +1,16 @@ +examples for tests +Duca10a + "self Duca10a" +^ +(CZBibParser parse: +' +@article{Duca10a, +author = {St\''ephane Ducasse and Damien Pollet}, +keywords = {insubmission}, +title = {Fingerprints}, +journal = {Journal of Information System}, +year = {2010} +} + +' +) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Duca12a.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Duca12a.st new file mode 100644 index 0000000..433c736 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Duca12a.st @@ -0,0 +1,18 @@ +examples for tests +Duca12a + "self Duca12a" +^ +(CZBibParser parse: +' + +@article{Duca12a, + author = {St\''ephane Ducasse and Zork Ranger}, + annote = {internationaljournal}, + title = {Woa}, + journal = {Journal of Information System}, + Url = {obsoleteData.pdf}, + year = 2010 +} + +' +) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Lanz02b.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Lanz02b.st new file mode 100644 index 0000000..efaf200 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Lanz02b.st @@ -0,0 +1,42 @@ +examples for tests +Lanz02b + "self Lanz02b" +^ +(CZBibParser parse: +' + +@inproceedings{Lanz02b, + author = {Michele Lanza and St\''ephane Ducasse}, + title = {Beyond Language Independent Object-Oriented Metrics: Model Independent Metrics}, + booktitle = {Proceedings of the 6th International Workshop on Quantitative Approaches in Object-Oriented Software Engineering}, + pages = {77--84}, + year = {2002}, + url = {http://rmod.inria.fr/archives/papers/Lanz02bModelIndependentMetrics.pdf}, + abstract = {Software Metrics have become essential in software + engineering for several reasons, among which quality + assessment and reengineering. In the context of the + European Esprit Project FAMOOS, whose main goal was + to provide methodologies for the reengineering of + large industrial software systems, we have developed + the Moose Reengineering Environment, based on the + language independent FAMIX metamodel. Moose includes + a metrics engine which supports language independent + metrics, since coping with software written in + different implementation languages was one of the + project''s main constraints. Our current research is + pushing us towards the development and + implementation of a metametamodel, which would + include our metamodel and allow for several + extension in different research directions, among + which concept analysis, knowledge management and + software evolution. In this article we want to + present our current and future work for the + transition from language independent to domain + independent metrics.}, + annote = {internationalworkshop}, + editor = {Fernando Brito e Abreu and Mario Piattini and Geert Poels and Houari A. Sahraoui}, + isbn = {84-699-8696-1}, + keywords = {scg-pub skip-doi stefPub moose kzMetric kzMeta}} + +' +) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Rieg98a.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Rieg98a.st new file mode 100644 index 0000000..ce88e70 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/Rieg98a.st @@ -0,0 +1,31 @@ +examples for tests +Rieg98a + "self Rieg98a" +^ +(CZBibParser parse: +' + +@inproceedings{Rieg98a, + author = {Matthias Rieger and St\''ephane Ducasse}, + title = {Visual Detection of Duplicated Code}, + booktitle = {Proceedings ECOOP Workshop on Experiences in Object-Oriented Re-Engineering}, + publisher = {Forschungszentrum Informatik Karlsruhe}, + year = {1998}, + url = {http://rmod.inria.fr/archives/papers/Rieg98aEcoopWorkshop.pdf}, + abstract = {Code duplication is considered as bad practice that + complicates the maintenance and evolution of + software. Detecting duplicated code is a difficult + task because of the large amount of data to be + checked and the fact that a priori it is unknown + which code part has been duplicated. In this paper, + we present a tool called DUPLOC that supports code + duplication detection in a visual and exploratory or + an automatic way.}, + annote = {internationalworkshop}, + editor = {St\''ephane Ducasse and Joachim Weisbrod}, + keywords = {scg-pub skip-doi kzDuplication}, + number = {6/7/98}, + series = {FZI Report}} + +' +) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/aDoc.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/aDoc.st new file mode 100644 index 0000000..53f055b --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/aDoc.st @@ -0,0 +1,9 @@ +examples for tests +aDoc + + ^ CZAuthorFocusedDocBuilder new + bibset: self someArticles; + authorMatchingString: '*S*Ducasse*'; + noHeader; + build; + document \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/someArticles.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/someArticles.st new file mode 100644 index 0000000..6d08076 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/class/someArticles.st @@ -0,0 +1,92 @@ +examples for tests +someArticles + "self someArticles" +^ +(CZBibParser parse: +'@article{Abde10a, + Aeres = {ACL}, + Aeresstatus = {aeres12}, + Annote = {internationaljournal}, + Author = {Hani Abdeen and St\''ephane Ducasse and Damien Pollet and Ilham Alloui}, + Doi = {10.1016/j.infsof.2010.07.005}, + Hal-Id = {inria-00531496}, + Impactfactor = {ISI impact factor 1.821 (2010)}, + Inria = {RMOD}, + Inriareport = {2010}, + Journal = {Information and Software Technology Journal}, + Keywords = {moose remoose2 lse-pub cook kzVisualisation}, + Pages = {1312-1330}, + Secondurl = {http://rmod.lille.inria.fr/archives/papers/Abde10a-IST-packageFingerprints.pdf}, + Title = {Package Fingerprint: a visual summary of package interfaces and relationships}, + Url = {http://rmod.lille.inria.fr/archives/papers/Abde10a-IST-Official-packageFingerprints.pdf}, + Volume = {52}, + X-Editorial-Board = {yes}, + X-International-Audience = {yes}, + X-Proceedings = {yes}, + Year = {2010}, + Bdsk-Url-1 = {http://rmod.lille.inria.fr/archives/papers/Abde10a-IST-Official-packageFingerprints.pdf}, + Bdsk-Url-2 = {https://doi.org/10.1016/j.infsof.2010.07.005}} + + +@inproceedings{Denk08b, + Annote = {internationalconference}, + Author = {Marcus Denker and Mathieu Suen and St\''ephane + Ducasse}, + Booktitle = {Proceedings of TOOLS EUROPE 2008}, + peer = {yes}, + pages = {218--237}, + aeres = {ACT}, + aeresstatus = {aeres12}, + inria = {RMOD}, + selectif = {non}, + ISSN = {1865-1348}, + Keywords = {scg-pub jb08 fb08 snf08 reflectivity}, + labo = {dans}, + Publisher = {Springer-Verlag}, + Series = {LNBIP}, + Volume = 11, + Doi = {10.1007/978-3-540-69824-1_13}, + Url = {http://scg.unibe.ch/archive/papers/Denk08bMetaContextLNBIP.pdf}, + Title = {The Meta in Meta-object Architectures}, + hal = {inria-00271286,p56w09p}, + Year = {2008} +} + +@inproceedings{Chev11a, + author = {Chevalier-Boisvert, Maxime and Lavoie, Erick and Feeley, Marc and Dufour, Bruno}, + booktitle = {Dynamic Language Symposium}, + title = {Bootstrapping a Self-Hosted Research Virtual Machine for JavaScript}, + year = {2011} +} + +@article{Duca10a, +author = {St\''ephane Ducasse and Damien Pollet}, +keywords = {insubmission}, +title = {Fingerprints}, +journal = {Journal of Information System}, +year = {2010} +} + +@inproceedings{Abde08a, +author = {Hani Abdeen and Ilham Alloui and St\''ephane Ducasse and Damien Pollet and Mathieu Suen}, +title = {Package Reference Fingerprint: a Rich and Compact Visualization to Understand Package Relationships}, +booktitle = {European Conference on Software Maintenance and Reengineering (CSMR)}, +pages = {213--222}, +publisher = {IEEE Computer Society Press}, +year = {2008}, +acceptnum = {24}, +accepttotal = {87} +} + + +@article{Duca12a, + author = {St\''ephane Ducasse and Zork Ranger}, + annote = {internationaljournal}, + title = {Woa}, + journal = {Journal of Information System}, + Url = {obsoleteData.pdf}, + year = {2010} +} + +' +) diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/setUp.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/setUp.st new file mode 100644 index 0000000..77b0fe5 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/setUp.st @@ -0,0 +1,4 @@ +setUp +setUp + super setUp. + bibset := self someArticles. \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/someArticles.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/someArticles.st new file mode 100644 index 0000000..e0911e0 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/someArticles.st @@ -0,0 +1,4 @@ +setUp +someArticles + "self new someArticles" + ^ self class someArticles \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testAnEmptyDocumentWithATitleHasJustOneElement.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testAnEmptyDocumentWithATitleHasJustOneElement.st new file mode 100644 index 0000000..fa11ad0 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testAnEmptyDocumentWithATitleHasJustOneElement.st @@ -0,0 +1,9 @@ +tests +testAnEmptyDocumentWithATitleHasJustOneElement + "self debug: #testAnEmptyDocumentWithATitleHasJustOneElement" + + | builder | + builder := CZDocBuilder new bibset: bibset. + builder addTitle: CZTitle new. + builder document. + self assert: builder document elements size equals: 1 \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testAuthorMatchingSelectEntryWithCorrespondingAuthor.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testAuthorMatchingSelectEntryWithCorrespondingAuthor.st new file mode 100644 index 0000000..dd527be --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testAuthorMatchingSelectEntryWithCorrespondingAuthor.st @@ -0,0 +1,10 @@ +tests +testAuthorMatchingSelectEntryWithCorrespondingAuthor + "self debug: #testWithAuthor" + + | builder | + builder := CZDocBuilder new + authorMatchingString: '*S*Ducasse*'; + bibset: bibset. + self assert: builder workingBibSet size equals: 6. + self assert: (builder workingBibSet select: builder authorQuery) size equals: 5 \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testBlackListedEntriesAlsoFiltersInSubmission.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testBlackListedEntriesAlsoFiltersInSubmission.st new file mode 100644 index 0000000..2200cdc --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testBlackListedEntriesAlsoFiltersInSubmission.st @@ -0,0 +1,15 @@ +tests +testBlackListedEntriesAlsoFiltersInSubmission + "self debug: #testBlackListedEntriesAlsoFiltersInSubmission" + "it could be orthogonal but for now this is not the case." + + | builder | + builder := CZDocBuilder new bibset: bibset. + "filtering not invoked" + self assert: builder workingBibSet size equals: 6. + + "now testing that we removed the keys we do not want" + builder keysOfBlackListedEntries: #(Abde10a Chev11a). + builder filter. + "We removed the non author and the blacklisted" + self assert: builder workingBibSet size equals: 3. \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testInSubmissionPublicationAreRemovedWhenFilteringIsOn.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testInSubmissionPublicationAreRemovedWhenFilteringIsOn.st new file mode 100644 index 0000000..9b61f98 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testInSubmissionPublicationAreRemovedWhenFilteringIsOn.st @@ -0,0 +1,15 @@ +tests +testInSubmissionPublicationAreRemovedWhenFilteringIsOn + "self debug: #testBlackListedEntries" + + | builder | + builder := CZDocBuilder new bibset: bibset. + "filtering not invoked" + self assert: builder workingBibSet size equals: 6. + + "now testing that we remove the insubmission" + builder setFilteringOn. + builder filter. + self assert: builder workingBibSet size equals: 5. + + \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testIsNotEditor.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testIsNotEditor.st new file mode 100644 index 0000000..63189c9 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testIsNotEditor.st @@ -0,0 +1,11 @@ +tests +testIsNotEditor + "self debug: #testIsNotEditor" + + | builder | + builder := CZAuthorFocusedDocBuilder new + authorMatchingString: '*Ducasse*'; + bibset: self class Lanz02b. + self assert: builder workingBibSet size equals: 1. + + self assert: (builder workingBibSet select: builder editorQuery) size equals: 0 \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testIsNotEditorBecauseAuthorOfArticle.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testIsNotEditorBecauseAuthorOfArticle.st new file mode 100644 index 0000000..1c1f5f4 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testIsNotEditorBecauseAuthorOfArticle.st @@ -0,0 +1,11 @@ +tests +testIsNotEditorBecauseAuthorOfArticle + "self debug: #testIsNotEditor" + + | builder | + builder := CZAuthorFocusedDocBuilder new + authorMatchingString: '*Ducasse*'; + bibset: self class Rieg98a. + self assert: builder workingBibSet size equals: 1. + + self assert: (builder workingBibSet select: builder editorQuery) size equals: 0 \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testSelectingJournalEffectivelyReturnsOnlyJournals.st b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testSelectingJournalEffectivelyReturnsOnlyJournals.st new file mode 100644 index 0000000..d13264a --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/instance/testSelectingJournalEffectivelyReturnsOnlyJournals.st @@ -0,0 +1,8 @@ +tests +testSelectingJournalEffectivelyReturnsOnlyJournals + "self debug: #testSelectingJournalEffectivelyReturnsOnlyJournals" + + | builder | + builder := CZDocBuilder new bibset: bibset. + self assert: builder workingBibSet size equals: 6. + self assert: (builder workingBibSet select: builder internationalJournalQuery) size equals: 2 \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/properties.json b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/properties.json new file mode 100644 index 0000000..a31b954 --- /dev/null +++ b/src/Citezen-Reborn.package/CZAuthorFocusedDocBuilderTest.class/properties.json @@ -0,0 +1,13 @@ +{ + "commentStamp" : "", + "super" : "TestCase", + "category" : "Citezen-Reborn-Tests", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ ], + "instvars" : [ + "bibset" + ], + "name" : "CZAuthorFocusedDocBuilderTest", + "type" : "normal" +} \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZBblGeneratorTest.class/instance/testLatexAndCharacter.st b/src/Citezen-Reborn.package/CZBblGeneratorTest.class/instance/testLatexAndCharacter.st index 5fbfcdb..6ef36cc 100644 --- a/src/Citezen-Reborn.package/CZBblGeneratorTest.class/instance/testLatexAndCharacter.st +++ b/src/Citezen-Reborn.package/CZBblGeneratorTest.class/instance/testLatexAndCharacter.st @@ -4,9 +4,9 @@ testLatexAndCharacter | result | result := (self generatorClass new visit: uqui2) contents. - self assert: (self isString: result withSqueakLineEndings equalsTo: + self assert: (self isString: result withInternalLineEndings equalsTo: '\bibitem[1]{dias:hal-01093496}\czauthors{M. Dias, V. Uquillas G\''{o}mez, D. Cassou and S. Ducasse}, \newblock \cztitle{Software Integration Questions: A Quantitative Survey with \&}, 2014, \href{https://hal.inria.fr/hal-01093496}{[rmodUrl]} \newblock \href{http://hal.inria.fr/hal-01093496}{\path{[hal:hal-01093496]}} -' withSqueakLineEndings) +' withInternalLineEndings) diff --git a/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testMonth.st b/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testMonth.st index 09b8983..b1f18ad 100644 --- a/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testMonth.st +++ b/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testMonth.st @@ -15,7 +15,7 @@ testMonth Url = {http://rmod.inria.fr/archives/papers/Abde14a-Official-PackageBlueprint-SCP.pdf}, Year = {2014}}'. result := (self generatorClass new visit: entry) contents. - self assert: result trimBoth withSqueakLineEndings equals: + self assert: result trimBoth withInternalLineEndings equals: '@article{Abde14a, author = {Hani Abdeen and St\''ephane Ducasse and Damien Pollet and Ilham Alloui and Jean-R\''emy Falleri}, title = {The Package Blueprint: Visually analyzing and quantifying packages dependencies}, @@ -26,4 +26,4 @@ testMonth annote = {internationaljournal}, hal-id = {hal-00957695}, keywords = {lse-pub StefPub kzVisualization}, - month = feb}' withSqueakLineEndings \ No newline at end of file + month = feb}' withInternalLineEndings \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testTextContainCR.st b/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testTextContainCR.st index f1e4930..02340b1 100644 --- a/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testTextContainCR.st +++ b/src/Citezen-Reborn.package/CZBibGeneratorTest.class/instance/testTextContainCR.st @@ -41,5 +41,5 @@ testTextContainCR "The generated output is usually in lf" result := (self generatorClass new visit: withCR) contents. "now in the tests we should make sure that we only get cr but of course we do not cover well the problem." - self assert: (result withSqueakLineEndings includes: Character cr). + self assert: (result withInternalLineEndings includes: Character cr). diff --git a/src/Citezen-Reborn.package/CZBibTeXDocBuilder.class/properties.json b/src/Citezen-Reborn.package/CZBibTeXDocBuilder.class/properties.json index 80ade2b..975d342 100644 --- a/src/Citezen-Reborn.package/CZBibTeXDocBuilder.class/properties.json +++ b/src/Citezen-Reborn.package/CZBibTeXDocBuilder.class/properties.json @@ -1,6 +1,6 @@ { "commentStamp" : "StephaneDucasse 8/11/2016 08:12", - "super" : "CZBodyDocBuilder", + "super" : "CZAuthorFocusedDocBuilder", "category" : "Citezen-Reborn-DocumentBuilder", "classinstvars" : [ ], "pools" : [ ], diff --git a/src/Citezen-Reborn.package/CZDecoratedDocBuilder.class/properties.json b/src/Citezen-Reborn.package/CZDecoratedDocBuilder.class/properties.json index c535d99..459db02 100644 --- a/src/Citezen-Reborn.package/CZDecoratedDocBuilder.class/properties.json +++ b/src/Citezen-Reborn.package/CZDecoratedDocBuilder.class/properties.json @@ -1,6 +1,6 @@ { "commentStamp" : "StephaneDucasse 8/10/2016 10:45", - "super" : "CZBodyDocBuilder", + "super" : "CZAuthorFocusedDocBuilder", "category" : "Citezen-Reborn-DocumentBuilder", "classinstvars" : [ ], "pools" : [ ], diff --git a/src/Citezen-Reborn.package/CZDocBuilder.class/README.md b/src/Citezen-Reborn.package/CZDocBuilder.class/README.md index 66f7ef8..c92101c 100644 --- a/src/Citezen-Reborn.package/CZDocBuilder.class/README.md +++ b/src/Citezen-Reborn.package/CZDocBuilder.class/README.md @@ -1,4 +1,11 @@ -I'm responsible for building document. I work on a bib set and once all the filtering is done. +I'm responsible for building document (composite of instances of DocElement subclasses). + +I work on a bibset that is filtered. + - First we remove in submission, + - then black-listed entries. + +Subclasses may change the filtering specifying authorMatchingString: + I have a title and sections and for example, HTML subclasses also point to a bib file. My sections are built out of queries over the bibset that I use. I define many queries over my working bibset. @@ -6,5 +13,4 @@ I use visitors such as CZBibTexGenerator (such as subclasses of CZFileFormatGene Implementation notes. - -- workingSet is a private field. The public API is to use bibset: to specify the bib set to work with +- workingSet is a private field. The public API is to use bibset: to specify the bib set to work with. diff --git a/src/Citezen-Reborn.package/CZDocBuilder.class/instance/annotationWithType..st b/src/Citezen-Reborn.package/CZDocBuilder.class/instance/annotationWithType..st index b4a9d81..6081e3b 100644 --- a/src/Citezen-Reborn.package/CZDocBuilder.class/instance/annotationWithType..st +++ b/src/Citezen-Reborn.package/CZDocBuilder.class/instance/annotationWithType..st @@ -1,6 +1,4 @@ utility-queries annotationWithType: aString - ^ CZFieldQuery - named: #annote - checks: [ :value | aString match: value ] \ No newline at end of file + ^ CZQuery annotationWithType: aString \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZDocBuilder.class/instance/defaultFieldOrder.st b/src/Citezen-Reborn.package/CZDocBuilder.class/instance/defaultFieldOrder.st index e4c3a2f..1b45ee0 100644 --- a/src/Citezen-Reborn.package/CZDocBuilder.class/instance/defaultFieldOrder.st +++ b/src/Citezen-Reborn.package/CZDocBuilder.class/instance/defaultFieldOrder.st @@ -1,4 +1,4 @@ initialize defaultFieldOrder - ^ #(#author #title #chapter #journal #booktitle #volume #pages #publisher #school #year #url #doi). + ^ #(#author #title #chapter #journal #booktitle #volume #pages #publisher #school #year #pdf #url #doi). diff --git a/src/Citezen-Reborn.package/CZDocBuilder.class/instance/editorQuery.st b/src/Citezen-Reborn.package/CZDocBuilder.class/instance/editorQuery.st index f105181..ce684cd 100644 --- a/src/Citezen-Reborn.package/CZDocBuilder.class/instance/editorQuery.st +++ b/src/Citezen-Reborn.package/CZDocBuilder.class/instance/editorQuery.st @@ -1,4 +1,8 @@ queries editorQuery - ^ CZQuery editor - \ No newline at end of file + "We redefine the query to have a clear scope" + + ^ (CZFieldQuery + named: #editor + checks: [ :value | self authorMatchingString match: value ]) + OR: (self annotationWithType: '*workshopproceedings*') diff --git a/src/Citezen-Reborn.package/CZDocBuilder.class/properties.json b/src/Citezen-Reborn.package/CZDocBuilder.class/properties.json index 530c16b..8c3dbdf 100644 --- a/src/Citezen-Reborn.package/CZDocBuilder.class/properties.json +++ b/src/Citezen-Reborn.package/CZDocBuilder.class/properties.json @@ -1,5 +1,5 @@ { - "commentStamp" : "StephaneDucasse 5/6/2018 22:26", + "commentStamp" : "StephaneDucasse 9/28/2019 09:42", "super" : "Object", "category" : "Citezen-Reborn-DocumentBuilder", "classinstvars" : [ ], diff --git a/src/Citezen-Reborn.package/CZDocBuilderTest.class/class/aDoc.st b/src/Citezen-Reborn.package/CZDocBuilderTest.class/class/aDoc.st index 841dd22..8df38cf 100644 --- a/src/Citezen-Reborn.package/CZDocBuilderTest.class/class/aDoc.st +++ b/src/Citezen-Reborn.package/CZDocBuilderTest.class/class/aDoc.st @@ -1,7 +1,7 @@ examples for tests aDoc - ^ CZSingleAuthorDocBuilder new + ^ CZHackSingleAuthorDocBuilder new bibset: self someArticles; authorMatchingString: '*S*Ducasse*'; noHeader; diff --git a/src/Citezen-Reborn.package/CZDocBuilderTest.class/properties.json b/src/Citezen-Reborn.package/CZDocBuilderTest.class/properties.json index 31eb508..f3e2fb8 100644 --- a/src/Citezen-Reborn.package/CZDocBuilderTest.class/properties.json +++ b/src/Citezen-Reborn.package/CZDocBuilderTest.class/properties.json @@ -1,7 +1,7 @@ { "commentStamp" : "", "super" : "TestCase", - "category" : "Citezen-Reborn-DocumentBuilder", + "category" : "Citezen-Reborn-Tests", "classinstvars" : [ ], "pools" : [ ], "classvars" : [ ], diff --git a/src/Citezen-Reborn.package/CZFileFormatGenerator.class/README.md b/src/Citezen-Reborn.package/CZFileFormatGenerator.class/README.md index 3cd0215..20bc720 100644 --- a/src/Citezen-Reborn.package/CZFileFormatGenerator.class/README.md +++ b/src/Citezen-Reborn.package/CZFileFormatGenerator.class/README.md @@ -1,2 +1,3 @@ -A CZFileFormatGenerator is mainly generating text into a stream. +A CZFileFormatGeneratoris a visitor over a doc model (often generated by a DocBuilder) +is mainly generating text into a stream. Its subclasses are more interested. \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZFileFormatGenerator.class/properties.json b/src/Citezen-Reborn.package/CZFileFormatGenerator.class/properties.json index b05a4d4..dc78189 100644 --- a/src/Citezen-Reborn.package/CZFileFormatGenerator.class/properties.json +++ b/src/Citezen-Reborn.package/CZFileFormatGenerator.class/properties.json @@ -1,5 +1,5 @@ { - "commentStamp" : "StephaneDucasse 8/7/2016 10:18", + "commentStamp" : "StephaneDucasse 9/28/2019 09:37", "super" : "CZVisitor", "category" : "Citezen-Reborn-FormattingVisitors", "classinstvars" : [ ], diff --git a/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testSet.st b/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testSet.st index 859f658..5a99b88 100644 --- a/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testSet.st +++ b/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testSet.st @@ -5,9 +5,9 @@ testSet | visitor | visitor := self generatorClass new. visitor visit: bibset. - self assert: (self isString: visitor contents withSqueakLineEndings equalsTo: + self assert: (self isString: visitor contents withInternalLineEndings equalsTo: ' Ducasse, St\''ephane and Ducasse, Florence, La maledication de la fille de la femme crocodile, Journal of Hatred, 2012. Ducasse, St\''ephane, Botsinc: Learning programming in Squeak, Apress, 2005. -'withSqueakLineEndings) \ No newline at end of file +'withInternalLineEndings) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testVisitingDocumentWithSectionShouldProduceSections.st b/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testVisitingDocumentWithSectionShouldProduceSections.st index bee09a5..a6d37d2 100644 --- a/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testVisitingDocumentWithSectionShouldProduceSections.st +++ b/src/Citezen-Reborn.package/CZFileFormatGeneratorTest.class/instance/testVisitingDocumentWithSectionShouldProduceSections.st @@ -5,7 +5,7 @@ testVisitingDocumentWithSectionShouldProduceSections | visitor | visitor := self generatorClass new. visitor visit: CZDocBuilderTest aDoc. - self assert: (self isString: visitor contents withSqueakLineEndings equalsTo: + self assert: (self isString: visitor contents withInternalLineEndings equalsTo: ' Refereed Articles in International Journals @@ -16,4 +16,4 @@ Refereed Articles in International Conferences Denker, Marcus and Suen, Mathieu and Ducasse, St\''ephane, The Meta in Meta-object Architectures, Proceedings of TOOLS EUROPE 2008, 11, 218--237, Springer-Verlag, 2008, http://scg.unibe.ch/archive/papers/Denk08bMetaContextLNBIP.pdf, 10.1007/978-3-540-69824-1_13, internationalconference, yes, ACT, aeres12, RMOD, non, 1865-1348, scg-pub jb08 fb08 snf08 reflectivity, dans, LNBIP, inria-00271286,p56w09p. -' withSqueakLineEndings) \ No newline at end of file +' withInternalLineEndings) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitField..st b/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitField..st index 962cccb..ce59039 100644 --- a/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitField..st +++ b/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitField..st @@ -1,16 +1,20 @@ visiting visitField: aField - self outputStream nextPutAll: ''. - + self outputStream nextPutAll: ''. + (#(#pdf #url #doi) includes: aField key) ifTrue: [ Transcript show: aField; cr ]. + aField isPDF + ifTrue: [outputStream nextPutAll: 'PDF']. + ifTrue: [outputStream nextPutAll: '">URL']. aField isDoi ifTrue: [outputStream nextPutAll: '">DOI']. + aField isPDF + ifTrue: [outputStream nextPutAll: '">PDF']. outputStream nextPutAll: ''. diff --git a/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitSectionTitle..st b/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitSectionTitle..st index 3302ef6..a79f793 100644 --- a/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitSectionTitle..st +++ b/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitSectionTitle..st @@ -1,12 +1,9 @@ visiting visitSectionTitle: aCZString outputStream - nextPutAll: ''; - nextPutAll: - (self treatString: aCZString expanded); - nextPutAll: ''. + nextPutAll: '

'; + nextPutAll: (self treatString: aCZString expanded); + nextPutAll: '

'. self line; line \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitTitle..st b/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitTitle..st index 51aa112..72bdea2 100644 --- a/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitTitle..st +++ b/src/Citezen-Reborn.package/CZHTMLGenerator.class/instance/visitTitle..st @@ -3,9 +3,7 @@ visitTitle: aCZTitleElement "this is not the same title: here this is the still the legacy from CZDocument of adrian" outputStream - nextPutAll: ''; + nextPutAll: '

'; nextPutAll: (self treatString: aCZTitleElement title); - nextPutAll: ''. + nextPutAll: '

'. self line ; line. \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testArticle.st b/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testArticle.st index d16fe61..4f15000 100644 --- a/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testArticle.st +++ b/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testArticle.st @@ -6,8 +6,8 @@ testArticle result := (self generatorClass new visit: entry) contents. self assert: - (self isString: result withSqueakLineEndings equalsTo: + (self isString: result withInternalLineEndings equalsTo: '
  • Stéphane Ducasse and Damien Pollet, Fingerprints, Journal of Information System, 2010.
  • -' withSqueakLineEndings ) \ No newline at end of file +' withInternalLineEndings ) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLatexAndCharacter.st b/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLatexAndCharacter.st index 1bf262a..b94a51b 100644 --- a/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLatexAndCharacter.st +++ b/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLatexAndCharacter.st @@ -6,8 +6,8 @@ testLatexAndCharacter result := (self generatorClass new visit: uqui2) contents. self assert: - (self isString: result withSqueakLineEndings equalsTo: + (self isString: result withInternalLineEndings equalsTo: '
  • Martín Dias, Verónica Uquillas Gómez, Damien Cassou and Stéphane Ducasse, Software Integration Questions: A Quantitative Survey with &, 2014, PDF.
  • -' withSqueakLineEndings ) \ No newline at end of file +' withInternalLineEndings ) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLongArticle.st b/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLongArticle.st index 6a18621..fb71e55 100644 --- a/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLongArticle.st +++ b/src/Citezen-Reborn.package/CZHTMLGeneratorTest.class/instance/testLongArticle.st @@ -6,8 +6,8 @@ testLongArticle result := (self generatorClass new visit: entry2 clean) contents. self assert: - (self isString: result trimBoth withSqueakLineEndings equalsTo: + (self isString: result trimBoth withInternalLineEndings equalsTo: '
  • Hani Abdeen, Ilham Alloui, Stéphane Ducasse, Damien Pollet and Mathieu Suen, Package Reference Fingerprint: a Rich and Compact Visualization to Understand Package Relationships, European Conference on Software Maintenance and Reengineering (CSMR), 213–222, IEEE Computer Society Press, 2008, Acceptance rate: 24/87 = 27%, PDF.
  • -' withSqueakLineEndings ) \ No newline at end of file +' withInternalLineEndings ) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/README.md b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/README.md new file mode 100644 index 0000000..08e0a90 --- /dev/null +++ b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/README.md @@ -0,0 +1,5 @@ +I manage author filtering. +I look like a hack. And I do not remember why I'm simply a subclass of CZBodyDocBuilder since it filters for one author +and used by CZStef to generate CV, Web page. + +Now this is not easy to pass the settings to the visitor (like the order of the fields). \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/class/bibtex.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/class/bibtex.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/class/bibtex.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/class/bibtex.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/class/latex.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/class/latex.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/class/latex.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/class/latex.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/class/xhtml.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/class/xhtml.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/class/xhtml.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/class/xhtml.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/addFooter.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/addFooter.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/addFooter.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/addFooter.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/addHeader.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/addHeader.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/addHeader.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/addHeader.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/bibtexFileName.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/bibtexFileName.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/bibtexFileName.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/bibtexFileName.st diff --git a/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/buildBody.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/buildBody.st new file mode 100644 index 0000000..f51ac34 --- /dev/null +++ b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/buildBody.st @@ -0,0 +1,28 @@ +building +buildBody + self + addSectionFromQuery: self internationalJournalQuery + withTitle: localization internationalReviewedJournal; + addSectionFromQuery: self topConferenceQuery + withTitle: localization topConferences; + addSectionFromQuery: self nationalJournalQuery + withTitle: localization nationalReviewedJournal; + addSectionFromQuery: self internationalConferenceQuery + withTitle: localization internationalConference; + addSectionFromQuery: self nationalConferenceQuery + withTitle: localization nationalReviewedConference; + addSectionFromQuery: self invitedQuery + withTitle: localization invitedPapers; + addSectionFromQuery: self bookChapterQuery + withTitle: localization bookChapters; + addSectionFromQuery: self bookQuery withTitle: localization books; + addSectionFromQuery: self editorQuery + withTitle: localization editor; + addSectionFromQuery: self internationalWorkshopQuery + withTitle: localization internationalReviewedWorkshops; + addSectionFromQuery: self PhDAndHabilitationQuery + withTitle: localization phdAndHdr; + addSectionFromQuery: self toolDemoQuery + withTitle: localization toolDemo; + addSectionFromQuery: self vulgarisationQuery + withTitle: localization vulgarisation \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/filter.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/filter.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/filter.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/filter.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateBibtexFile.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateBibtexFile.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateBibtexFile.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateBibtexFile.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateBibtexFileFor..st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateBibtexFileFor..st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateBibtexFileFor..st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateBibtexFileFor..st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateFileNamed.withVisitor.for..st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateFileNamed.withVisitor.for..st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateFileNamed.withVisitor.for..st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateFileNamed.withVisitor.for..st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateLatexFile.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateLatexFile.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateLatexFile.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateLatexFile.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateLatexFileFor..st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateLatexFileFor..st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateLatexFileFor..st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateLatexFileFor..st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateXHTMLFile.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateXHTMLFile.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateXHTMLFile.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateXHTMLFile.st diff --git a/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateXHTMLFileFor..st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateXHTMLFileFor..st new file mode 100644 index 0000000..050be9b --- /dev/null +++ b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/generateXHTMLFileFor..st @@ -0,0 +1,7 @@ +utils +generateXHTMLFileFor: aDoc + + self + generateFileNamed: self htmlFileName + withVisitor: self htmlGeneratorClass new + for: aDoc \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/htmlFileName.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/htmlFileName.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/htmlFileName.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/htmlFileName.st diff --git a/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/htmlGeneratorClass.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/htmlGeneratorClass.st new file mode 100644 index 0000000..b2ae725 --- /dev/null +++ b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/htmlGeneratorClass.st @@ -0,0 +1,4 @@ +utils +htmlGeneratorClass + + ^ CZHTMLGenerator \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/initialize.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/initialize.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/initialize.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/initialize.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexFileName.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexFileName.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexFileName.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexFileName.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexFooter.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexFooter.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexFooter.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexFooter.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexHeader.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexHeader.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexHeader.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexHeader.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexName.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexName.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/latexName.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/latexName.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/noHeader.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/noHeader.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/noHeader.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/noHeader.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/toLatex.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/toLatex.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/toLatex.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/toLatex.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/toXhtml.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/toXhtml.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/toXhtml.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/toXhtml.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/withHeader.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/withHeader.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/withHeader.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/withHeader.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/xhtmlFooter.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/xhtmlFooter.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/xhtmlFooter.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/xhtmlFooter.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/xhtmlHeader.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/xhtmlHeader.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/xhtmlHeader.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/xhtmlHeader.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/xhtmlName.st b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/xhtmlName.st similarity index 100% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/xhtmlName.st rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/instance/xhtmlName.st diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/properties.json b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/properties.json similarity index 67% rename from src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/properties.json rename to src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/properties.json index e77f3a6..4c6638e 100644 --- a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/properties.json +++ b/src/Citezen-Reborn.package/CZHackSingleAuthorDocBuilder.class/properties.json @@ -1,5 +1,5 @@ { - "commentStamp" : "StephaneDucasse 5/6/2018 22:01", + "commentStamp" : "StephaneDucasse 9/28/2019 09:13", "super" : "CZDocBuilder", "category" : "Citezen-Reborn-DocumentBuilder", "classinstvars" : [ ], @@ -9,6 +9,6 @@ "noHeader", "xhtml" ], - "name" : "CZSingleAuthorDocBuilder", + "name" : "CZHackSingleAuthorDocBuilder", "type" : "normal" } \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZLaTeXDocBuilder.class/instance/defaultHeaderString.st b/src/Citezen-Reborn.package/CZLaTeXDocBuilder.class/instance/defaultHeaderString.st index 7779804..1adba33 100644 --- a/src/Citezen-Reborn.package/CZLaTeXDocBuilder.class/instance/defaultHeaderString.st +++ b/src/Citezen-Reborn.package/CZLaTeXDocBuilder.class/instance/defaultHeaderString.st @@ -3,7 +3,7 @@ defaultHeaderString ^ '\documentclass{article} \usepackage{times} - +\usepackage{hyperref} \newcommand{\czauthors}[1]{#1} \newcommand{\cztitle}[1]{\emph{``#1''''}} \newcommand{\czjournal}[1]{#1} diff --git a/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/defaultHeader.st b/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/defaultHeader.st index 6d441c8..80c14b6 100644 --- a/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/defaultHeader.st +++ b/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/defaultHeader.st @@ -2,6 +2,7 @@ configuration defaultHeader ^ '\documentclass{article} \usepackage{times} +\usepackage{hyperref} \newcommand{\czauthors}[1]{#1} \newcommand{\cztitle}[1]{\emph{``#1''''}} diff --git a/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitField..st b/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitField..st index a23fa69..b1f5fbe 100644 --- a/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitField..st +++ b/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitField..st @@ -6,8 +6,14 @@ visitField: aField aField key = CZPool pages ifTrue: [self outputStream nextPutAll: 'pp. ']. fieldEmbellishingTable at: aField key ifPresent: [:t | self outputStream nextPutAll: ' ', t]. + aField key = CZPool pdf + ifTrue: [ self outputStream nextPutAll: '\href{' ]. aField dispatchVisitor: self. "One day I have to think about this dispatch ugly point" fieldEmbellishingTable at: aField key ifPresent: [:t | self outputStream nextPutAll: '}']. aField key = CZPool editor - ifTrue: [ self outputStream nextPutAll: ' ed.']. \ No newline at end of file + ifTrue: [ self outputStream nextPutAll: ' ed.']. + aField key = CZPool pdf + ifTrue: [ self outputStream nextPutAll: '}{PDF}' ]. + + \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitPeople..st b/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitPeople..st index 4ccb536..eb0954f 100644 --- a/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitPeople..st +++ b/src/Citezen-Reborn.package/CZLaTeXGenerator.class/instance/visitPeople..st @@ -1,5 +1,5 @@ visiting visitPeople: aCZPeople - aCZPeople perform: expandOption. - self outputStream nextPutAll: aCZPeople notExpanded "so that we are sure that we get \'' for é" \ No newline at end of file + aCZPeople perform: expandOption. + self outputStream nextPutAll: aCZPeople expanded "so that we are sure that we get \'' for é" \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testArticle.st b/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testArticle.st index b4ee07d..b5516ca 100644 --- a/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testArticle.st +++ b/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testArticle.st @@ -4,7 +4,7 @@ testArticle | result | result := (CZLaTeXGenerator new visit: entry) contents. - self assert: result trimBoth withSqueakLineEndings + self assert: result trimBoth withInternalLineEndings equals: ' \pub \czauthors{St\''ephane Ducasse and Damien Pollet}, \cztitle{Fingerprints}, In \czjournal{Journal of Information System}, 2010. -' trimBoth withSqueakLineEndings \ No newline at end of file +' trimBoth withInternalLineEndings \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLatexAndCharacter.st b/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLatexAndCharacter.st index 2c5eb65..687058d 100644 --- a/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLatexAndCharacter.st +++ b/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLatexAndCharacter.st @@ -4,9 +4,6 @@ testLatexAndCharacter | result | result := (CZLaTeXGenerator new visit: uqui2) contents. - self - assert: - (self isString: result equalsTo: - ' - \pub \czauthors{Mart\''in Dias and Uquillas G\''{o}mez, Ver\''onica and Damien Cassou and St\''ephane Ducasse}, \cztitle{Software Integration Questions: A Quantitative Survey with \&}, 2014, https://hal.inria.fr/hal-01093496. -') \ No newline at end of file + self assert: result equals: ' + \pub \czauthors{Mart\''in Dias, Ver\''onica Uquillas G\''{o}mez, Damien Cassou and St\''ephane Ducasse}, \cztitle{Software Integration Questions: A Quantitative Survey with \&}, 2014, https://hal.inria.fr/hal-01093496. +' \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLongArticle.st b/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLongArticle.st index 1c1554c..5521561 100644 --- a/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLongArticle.st +++ b/src/Citezen-Reborn.package/CZLaTeXGeneratorTest.class/instance/testLongArticle.st @@ -5,5 +5,5 @@ testLongArticle | result | result := (CZLaTeXGenerator new visit: entry2 clean) contents. - self assert: result trimBoth withSqueakLineEndings equals: - '\pub \czauthors{Hani Abdeen and Ilham Alloui and St\''ephane Ducasse and Damien Pollet and Mathieu Suen}, \cztitle{Package Reference Fingerprint: a Rich and Compact Visualization to Understand Package Relationships}, In \czbooktitle{European Conference on Software Maintenance and Reengineering (CSMR)}, pp. 213--222, IEEE Computer Society Press, 2008, Acceptance rate: 24/87 = 27\%, http://scg.unibe.ch/archive/external/Abde08a.pdf.' withSqueakLineEndings \ No newline at end of file + self assert: result trimBoth withInternalLineEndings equals: + '\pub \czauthors{Hani Abdeen, Ilham Alloui, St\''ephane Ducasse, Damien Pollet and Mathieu Suen}, \cztitle{Package Reference Fingerprint: a Rich and Compact Visualization to Understand Package Relationships}, In \czbooktitle{European Conference on Software Maintenance and Reengineering (CSMR)}, pp. 213--222, IEEE Computer Society Press, 2008, Acceptance rate: 24/87 = 27\%, http://scg.unibe.ch/archive/external/Abde08a.pdf.' withInternalLineEndings \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/README.md b/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/README.md deleted file mode 100644 index 448fcc3..0000000 --- a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/README.md +++ /dev/null @@ -1,3 +0,0 @@ -I manage author filtering. - -Now this is not easy to pass the settings to the visitor (like the order of the fields). \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/buildBody.st b/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/buildBody.st deleted file mode 100644 index b712bd8..0000000 --- a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/buildBody.st +++ /dev/null @@ -1,17 +0,0 @@ -building -buildBody - - self addSectionFromQuery: (self internationalJournalQuery) withTitle: localization internationalReviewedJournal; - addSectionFromQuery: (self topConferenceQuery) withTitle: localization topConferences; - addSectionFromQuery: (self nationalJournalQuery) withTitle: localization nationalReviewedJournal; - addSectionFromQuery: (self internationalConferenceQuery) withTitle: localization internationalConference; - addSectionFromQuery: (self nationalConferenceQuery) withTitle: localization nationalReviewedConference; - addSectionFromQuery: (self invitedQuery) withTitle: localization invitedPapers; - addSectionFromQuery: (self bookChapterQuery) withTitle: localization bookChapters; - addSectionFromQuery: (self bookQuery) withTitle: localization books; - addSectionFromQuery: (self editorQuery) withTitle: localization editor; - addSectionFromQuery: (self internationalWorkshopQuery) withTitle: localization internationalReviewedWorkshops; - addSectionFromQuery: (self PhDAndHabilitationQuery) withTitle: localization phdAndHdr; - - addSectionFromQuery: (self toolDemoQuery) withTitle: localization toolDemo ; - addSectionFromQuery: (self vulgarisationQuery) withTitle: localization vulgarisation. \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateXHTMLFileFor..st b/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateXHTMLFileFor..st deleted file mode 100644 index 4de6a5a..0000000 --- a/src/Citezen-Reborn.package/CZSingleAuthorDocBuilder.class/instance/generateXHTMLFileFor..st +++ /dev/null @@ -1,3 +0,0 @@ -utils -generateXHTMLFileFor: aDoc - self generateFileNamed: self htmlFileName withVisitor: CZHTMLGenerator new for: aDoc \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZVisitor.class/README.md b/src/Citezen-Reborn.package/CZVisitor.class/README.md index 98425e7..997562a 100644 --- a/src/Citezen-Reborn.package/CZVisitor.class/README.md +++ b/src/Citezen-Reborn.package/CZVisitor.class/README.md @@ -1,7 +1,6 @@ A CZVisitor is visitor handling both CZEntries and CZDocuments. it is a new generation of visitor that should replace the Outputters package. - - what is the difference between visitSet: and visitBibSet: this should be addressed diff --git a/src/Citezen-Reborn.package/CZVisitor.class/instance/defaultFieldOrder.st b/src/Citezen-Reborn.package/CZVisitor.class/instance/defaultFieldOrder.st index 322d864..ef84cbe 100644 --- a/src/Citezen-Reborn.package/CZVisitor.class/instance/defaultFieldOrder.st +++ b/src/Citezen-Reborn.package/CZVisitor.class/instance/defaultFieldOrder.st @@ -1,4 +1,4 @@ configuration defaultFieldOrder - ^ #(#author #title #chapter #journal #booktitle #volume #pages #publisher #year #impactfactor #school #misc #url #doi) + ^ #(#author #title #chapter #journal #booktitle #volume #pages #publisher #year #impactfactor #school #misc #url #doi #pdf) "rate is bad because it does not have enough information" \ No newline at end of file diff --git a/src/Citezen-Reborn.package/CZVisitor.class/properties.json b/src/Citezen-Reborn.package/CZVisitor.class/properties.json index 9885db7..c7ac377 100644 --- a/src/Citezen-Reborn.package/CZVisitor.class/properties.json +++ b/src/Citezen-Reborn.package/CZVisitor.class/properties.json @@ -1,5 +1,5 @@ { - "commentStamp" : "", + "commentStamp" : "StephaneDucasse 9/28/2019 09:37", "super" : "Object", "category" : "Citezen-Reborn-Core-Visitor", "classinstvars" : [ ], diff --git a/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBBadMessageRuleV1FalsePositive.st b/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBBadMessageRuleV1FalsePositive.st index 0d9ee45..e2cb1a9 100644 --- a/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBBadMessageRuleV1FalsePositive.st +++ b/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBBadMessageRuleV1FalsePositive.st @@ -1,3 +1,3 @@ code-critics ruleRBBadMessageRuleV1FalsePositive - ^ #(#(#(#RGMethodDefinition #(#CZBodyDocBuilder #buildBody #false)) #'2018-05-06T15:45:29.963005+02:00') ) \ No newline at end of file + ^ #(#(#(#RGMethodDefinition #(#CZAuthorFocusedDocBuilder #buildBody #false)) #'2018-05-06T15:45:29.963005+02:00') ) \ No newline at end of file diff --git a/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBStringConcatenationRuleV1FalsePositive.st b/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBStringConcatenationRuleV1FalsePositive.st index 9f41573..360de46 100644 --- a/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBStringConcatenationRuleV1FalsePositive.st +++ b/src/Citezen-Reborn.package/ManifestCitezenReborn.class/class/ruleRBStringConcatenationRuleV1FalsePositive.st @@ -1,3 +1,3 @@ code-critics ruleRBStringConcatenationRuleV1FalsePositive - ^ #(#(#(#RGMethodDefinition #(#CZSmartSectionBuilder #generate #false)) #'2016-08-07T21:41:02.012082+02:00') #(#(#RGMethodDefinition #(#CZBodyDocBuilder #buildBody #false)) #'2018-05-06T15:45:35.42425+02:00') ) \ No newline at end of file + ^ #(#(#(#RGMethodDefinition #(#CZSmartSectionBuilder #generate #false)) #'2016-08-07T21:41:02.012082+02:00') #(#(#RGMethodDefinition #(#CZAuthorFocusedDocBuilder #buildBody #false)) #'2018-05-06T15:45:35.42425+02:00') ) \ No newline at end of file diff --git a/src/Citezen-Stef.package/CZStef.class/README.md b/src/Citezen-Stef.package/CZStef.class/README.md index 457b768..019f141 100644 --- a/src/Citezen-Stef.package/CZStef.class/README.md +++ b/src/Citezen-Stef.package/CZStef.class/README.md @@ -1,2 +1,15 @@ CZStef new latex; html; bib ; generate - \ No newline at end of file + + +CZStef new latex generate + +The previous expressions generate well the bib with the PDF. +But the html header is too generic so we should copy and paste the body and this is not really good. + +In adding the ref to pdf in html do not look good. + + + +In general there is a problem because I do not pass the correct header and footers to the exporters. +See users of CZXHTMLDocBuilder except for the Rescued class I do not see how this is made correctly +May be this is done in Kozen. \ No newline at end of file diff --git a/src/Citezen-Stef.package/CZStef.class/instance/generate.st b/src/Citezen-Stef.package/CZStef.class/instance/generate.st index bbe6621..5caa1aa 100644 --- a/src/Citezen-Stef.package/CZStef.class/instance/generate.st +++ b/src/Citezen-Stef.package/CZStef.class/instance/generate.st @@ -5,7 +5,8 @@ generate builder := genClass new fileNamed: 'rmod.bib'; authorMatchingString: '*', 'Ducasse', '*'; - bodySpecification: #( #PhDAndHabilitation #internationalJournal #nationalJournal #topConference #internationalConference #nationalConference #invitedPaper #bookChapter #book #editor #internationalWorkshop #toolDemo #vulgarisation); + fieldOrder: #(#author #editor #title #chapter #journal #booktitle #volume #pages #publisher #collection #school #year #pdf); + bodySpecification: #(#internationalJournal #topConference #internationalConference #nationalJournal #nationalConference #invitedPaper #bookChapter #book #editor #internationalWorkshop #toolDemo #vulgarisation #PhDAndHabilitation); setFilteringOn. builder generate. ] \ No newline at end of file diff --git a/src/Citezen-Stef.package/CZStef.class/properties.json b/src/Citezen-Stef.package/CZStef.class/properties.json index 37f2393..a3826b5 100644 --- a/src/Citezen-Stef.package/CZStef.class/properties.json +++ b/src/Citezen-Stef.package/CZStef.class/properties.json @@ -1,5 +1,5 @@ { - "commentStamp" : "StephaneDucasse 5/6/2018 22:33", + "commentStamp" : "StephaneDucasse 10/10/2020 10:31", "super" : "Object", "category" : "Citezen-Stef", "classinstvars" : [ ], @@ -7,7 +7,8 @@ "classvars" : [ ], "instvars" : [ "generators", - "bodySpecification" + "bodySpecification", + "fieldSpecification" ], "name" : "CZStef", "type" : "normal" diff --git a/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/instance/generateTeamBibliography.st b/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/instance/generateTeamBibliography.st index 605f834..14c432f 100644 --- a/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/instance/generateTeamBibliography.st +++ b/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/instance/generateTeamBibliography.st @@ -2,7 +2,7 @@ building generateTeamBibliography "with this we will be able to do a nocite{*} and get all the references in our lovely report" - | docBuilder builder | + | docBuilder | docBuilder := CZBblDocBuilder new bibset: self class query20122016 workingBibSet; bodySpecification: #(PhDAndHabilitation internationalJournal nationalJournal topConference internationalConference nationalConference invitedPaper bookChapter book editor internationalWorkshop toolDemo vulgarisation ) ; diff --git a/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/properties.json b/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/properties.json index 84ea0eb..9add4bc 100644 --- a/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/properties.json +++ b/src/Citezen-Stef.package/RMODPublicationsDocBuilder.class/properties.json @@ -1,6 +1,6 @@ { "commentStamp" : "StephaneDucasse 8/10/2016 17:35", - "super" : "CZSingleAuthorDocBuilder", + "super" : "CZHackSingleAuthorDocBuilder", "category" : "Citezen-Stef", "classinstvars" : [ ], "pools" : [ ], diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/README.md b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/README.md new file mode 100644 index 0000000..d4db779 --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/README.md @@ -0,0 +1,7 @@ +This is a class resuced from mc (but it was written that it should be discarded). + +``` +self new generate +``` + +CZStef uses the default and correct hyperref \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/bibtexFileName.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/bibtexFileName.st new file mode 100644 index 0000000..25d848d --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/bibtexFileName.st @@ -0,0 +1,4 @@ +utils +bibtexFileName + + ^ 'rmod.bib' \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/buildLatex.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/buildLatex.st new file mode 100644 index 0000000..f7ddef1 --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/buildLatex.st @@ -0,0 +1,24 @@ +as yet unclassified +buildLatex + "self new buildLatex" + + | builder | + builder := CZLaTeXDocBuilder new + fileNamed: 'rmod.bib'; + authorMatchingString: self pattern; + french; + fieldOrder: #(#author + #title + #journal + #booktitle + #volume + #pages + #publisher + #year + #school + #impactfactor + #misc + #pdf); + headerString: self latexHeaderString; + setFilteringOn. + builder generate. \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/buildXHTML.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/buildXHTML.st new file mode 100644 index 0000000..2ded140 --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/buildXHTML.st @@ -0,0 +1,27 @@ +as yet unclassified +buildXHTML + "self new buildXHTML" + + | builder | + builder := CZXHTMLDocBuilder new + fileNamed: 'rmod.bib'; + authorMatchingString: self pattern; + english; + fieldOrder: #(#author + #title + #journal + #booktitle + #volume + #pages + #publisher + #year + #school + #impactfactor + #misc + #url + #doi + #pdf ); "removed doi and url since they may contain _ and the generator does not handle that well for the moment." + headerString: self xmlHeaderString; + footerString: self xmlFooterString; + setFilteringOn. + builder generate. \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/generate.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/generate.st new file mode 100644 index 0000000..2bf7404 --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/generate.st @@ -0,0 +1,5 @@ +as yet unclassified +generate + "self new generate" + self buildLatex. + self buildXHTML. \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/latexHeaderString.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/latexHeaderString.st new file mode 100644 index 0000000..0b3051b --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/latexHeaderString.st @@ -0,0 +1,22 @@ +as yet unclassified +latexHeaderString + + ^ '\documentclass{article} +\usepackage{times} +\usepackage{hyperref} +\newcommand{\czauthors}[1]{#1} +\newcommand{\cztitle}[1]{\emph{``#1''''}} +\newcommand{\czjournal}[1]{#1} +\newcommand{\czbooktitle}[1]{#1} + +\title{{\bf Prof. Dr. St\''ephane Ducasse}\\[0.5cm] +{\bf }} +\author{} +\begin{document} +\maketitle +\newcounter{publi} +\newcommand{\pub}[0] + {\stepcounter{publi} + \item[\bf{[\arabic{publi}]}]} + + ' withInternalLineEndings \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/pattern.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/pattern.st new file mode 100644 index 0000000..5e1c58f --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/pattern.st @@ -0,0 +1,4 @@ +as yet unclassified +pattern + + ^ '*Ducasse*' \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xhtmlName.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xhtmlName.st new file mode 100644 index 0000000..d5dd30a --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xhtmlName.st @@ -0,0 +1,4 @@ +as yet unclassified +xhtmlName + + ^ 'Dr. S. Ducasse' \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xmlFooterString.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xmlFooterString.st new file mode 100644 index 0000000..ad004c6 --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xmlFooterString.st @@ -0,0 +1,9 @@ +as yet unclassified +xmlFooterString + + ^ '

    BibTex Files of the Publications

    +BibTex File + + + +' withUnixLineEndings \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xmlHeaderString.st b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xmlHeaderString.st new file mode 100644 index 0000000..a2217da --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/instance/xmlHeaderString.st @@ -0,0 +1,41 @@ +as yet unclassified +xmlHeaderString + ^ ' + + + + + ', self xhtmlName, ' + + +
    + ' withUnixLineEndings \ No newline at end of file diff --git a/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/properties.json b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/properties.json new file mode 100644 index 0000000..aa4959a --- /dev/null +++ b/src/Citezen-Stef.package/StefDocBuilderRescuedToSee.class/properties.json @@ -0,0 +1,11 @@ +{ + "commentStamp" : "StephaneDucasse 10/10/2020 10:27", + "super" : "Object", + "category" : "Citezen-Stef", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ ], + "instvars" : [ ], + "name" : "StefDocBuilderRescuedToSee", + "type" : "normal" +} \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorParserTest.class/instance/testComposedName.st b/src/Citezen-Tests.package/CZAuthorParserTest.class/instance/testComposedName.st new file mode 100644 index 0000000..be79be2 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorParserTest.class/instance/testComposedName.st @@ -0,0 +1,10 @@ +tests +testComposedName + | authorString author | + authorString := 'van den Papen, Wilfried Alfonse'. + author := (self parserClass parse: authorString) first. + self assert: author firstNames asArray equals: #('Wilfried' 'Alfonse'). + self + assert: author lastNames asArray + equals: #('Papen'). + self assert: author particles asArray equals: #('van' 'den') \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/README.md b/src/Citezen-Tests.package/CZAuthorTest.class/README.md new file mode 100644 index 0000000..e69de29 diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/parserClass.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/parserClass.st new file mode 100644 index 0000000..37990fb --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/parserClass.st @@ -0,0 +1,3 @@ +accessing +parserClass + ^ CZAuthorParser \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForComposedAuthor.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForComposedAuthor.st new file mode 100644 index 0000000..5bf61cb --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForComposedAuthor.st @@ -0,0 +1,8 @@ +tests +testAsBibKeyForComposedAuthor + | authorString authors author | + authorString := 'van der Papen, Wilfried'. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author asBibKey equals: 'papen'. + \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForMultipleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForMultipleName.st new file mode 100644 index 0000000..5b4bdf8 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForMultipleName.st @@ -0,0 +1,7 @@ +tests +testAsBibKeyForMultipleName + | authorString authors author | + authorString := ' Hern{\a}ndes Morales, Carla '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author asBibKey equals: 'hernandesmorales'. diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForSimpleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForSimpleName.st new file mode 100644 index 0000000..094f641 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testAsBibKeyForSimpleName.st @@ -0,0 +1,7 @@ +tests +testAsBibKeyForSimpleName + | authorString authors author | + authorString := ' Hern{\a}ndes, Carla '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author asBibKey equals: 'hernandes'. diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForComposedName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForComposedName.st new file mode 100644 index 0000000..3355502 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForComposedName.st @@ -0,0 +1,7 @@ +tests +testFullNameForComposedName + | authorString authors author | + authorString := 'van der Papen, Wilfried'. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author fullName equals: 'Wilfried van der Papen'. diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForMultipleFirstName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForMultipleFirstName.st new file mode 100644 index 0000000..23935a8 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForMultipleFirstName.st @@ -0,0 +1,7 @@ +tests +testFullNameForMultipleFirstName + | authorString authors author | + authorString := ' Nierstrasz, Oscar Arthur '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author fullName equals: 'Oscar Arthur Nierstrasz'. diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForMultipleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForMultipleName.st new file mode 100644 index 0000000..47e8918 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForMultipleName.st @@ -0,0 +1,7 @@ +tests +testFullNameForMultipleName + | authorString authors author | + authorString := ' Hernandes Morales, Carla '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author fullName equals: 'Carla Hernandes Morales'. diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForSimpleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForSimpleName.st new file mode 100644 index 0000000..9db0ec6 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testFullNameForSimpleName.st @@ -0,0 +1,8 @@ +tests +testFullNameForSimpleName + | authorString authors author | + authorString := ' Nierstrasz, Oscar'. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author fullName equals: 'Oscar Nierstrasz'. + \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNameForMultipleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNameForMultipleName.st new file mode 100644 index 0000000..993ae34 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNameForMultipleName.st @@ -0,0 +1,7 @@ +tests +testNormalizedNameForMultipleName + | authorString authors author | + authorString := ' Hernandes Morales, Carla '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author normalizedName equals: 'Hernandes Morales, Carla'. diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForComposedName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForComposedName.st new file mode 100644 index 0000000..b4d137a --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForComposedName.st @@ -0,0 +1,7 @@ +tests +testNormalizedNamedForComposedName + | authorString authors author | + authorString := 'van der Papen, Wilfried'. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author normalizedName equals: 'van der Papen, Wilfried'. \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForMultipleFirstName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForMultipleFirstName.st new file mode 100644 index 0000000..a5c4d18 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForMultipleFirstName.st @@ -0,0 +1,7 @@ +tests +testNormalizedNamedForMultipleFirstName + | authorString authors author | + authorString := ' Nierstrasz, Oscar Arthur '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author normalizedName equals: 'Nierstrasz, Oscar Arthur'. \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForSimpleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForSimpleName.st new file mode 100644 index 0000000..f09ab17 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testNormalizedNamedForSimpleName.st @@ -0,0 +1,7 @@ +tests +testNormalizedNamedForSimpleName + | authorString authors author | + authorString := ' Nierstrasz, Oscar '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author normalizedName equals: 'Nierstrasz, Oscar'. \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForComposedAuthor.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForComposedAuthor.st new file mode 100644 index 0000000..d6b861e --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForComposedAuthor.st @@ -0,0 +1,8 @@ +tests +testShortenedNameForComposedAuthor + | authorString authors author | + authorString := 'van der Papen, Wilfried'. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author shortenedName equals: 'W. van der Papen'. + \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForMultipleFirstName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForMultipleFirstName.st new file mode 100644 index 0000000..6189d31 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForMultipleFirstName.st @@ -0,0 +1,8 @@ +tests +testShortenedNameForMultipleFirstName + | authorString authors author | + authorString := ' Nierstrasz, Oscar Arthur'. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author shortenedName equals: 'O. A. Nierstrasz'. + \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForMultipleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForMultipleName.st new file mode 100644 index 0000000..c2718e9 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForMultipleName.st @@ -0,0 +1,7 @@ +tests +testShortenedNameForMultipleName + | authorString authors author | + authorString := ' Hernandes Morales, Carla '. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author shortenedName equals: 'C. Hernandes Morales'. diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForSimpleName.st b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForSimpleName.st new file mode 100644 index 0000000..ba2b3d0 --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/instance/testShortenedNameForSimpleName.st @@ -0,0 +1,8 @@ +tests +testShortenedNameForSimpleName + | authorString authors author | + authorString := ' Nierstrasz, Oscar'. + authors := self parserClass parse: authorString. + author := authors first. + self assert: author shortenedName equals: 'O. Nierstrasz'. + \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZAuthorTest.class/properties.json b/src/Citezen-Tests.package/CZAuthorTest.class/properties.json new file mode 100644 index 0000000..2665a8d --- /dev/null +++ b/src/Citezen-Tests.package/CZAuthorTest.class/properties.json @@ -0,0 +1,11 @@ +{ + "commentStamp" : "", + "super" : "TestCase", + "category" : "Citezen-Tests-Parser", + "classinstvars" : [ ], + "pools" : [ ], + "classvars" : [ ], + "instvars" : [ ], + "name" : "CZAuthorTest", + "type" : "normal" +} \ No newline at end of file diff --git a/src/Citezen-Tests.package/CZEntryTest.class/instance/testExpandedName.st b/src/Citezen-Tests.package/CZEntryTest.class/instance/testExpandedName.st new file mode 100644 index 0000000..6d34ab9 --- /dev/null +++ b/src/Citezen-Tests.package/CZEntryTest.class/instance/testExpandedName.st @@ -0,0 +1,17 @@ +tests +testExpandedName + "self debug: #testExpandedName" + + self + assert: dirty author value + equals: + 'Abdeen, Hani and Alloui, Ilham and Ducasse, St\''ephane and Pollet, Damien and Suen, Mathieu'. + + self + assert: dirty author rawValueObject shortenedName + equals: 'H. Abdeen, I. Alloui, S. Ducasse, D. Pollet and M. Suen'. + + self + assert: dirty author rawValueObject normalizedName + equals: + 'Abdeen, Hani and Alloui, Ilham and Ducasse, St\''ephane and Pollet, Damien and Suen, Mathieu' \ No newline at end of file diff --git a/src/Citezen-Tools.package/CZRMODCommiter.class/README.md b/src/Citezen-Tools.package/CZRMODCommiter.class/README.md deleted file mode 100644 index f0a2099..0000000 --- a/src/Citezen-Tools.package/CZRMODCommiter.class/README.md +++ /dev/null @@ -1 +0,0 @@ -Uunderway. \ No newline at end of file diff --git a/src/Citezen-Tools.package/CZRMODCommiter.class/instance/checkFile..st b/src/Citezen-Tools.package/CZRMODCommiter.class/instance/checkFile..st deleted file mode 100644 index f2376b5..0000000 --- a/src/Citezen-Tools.package/CZRMODCommiter.class/instance/checkFile..st +++ /dev/null @@ -1,7 +0,0 @@ -interface -checkFile: aString - - | bs | - bs := CZBibParser bibFromFileNamed: FileLocator image parent / aString. - "first we should make sure that the " - bs size \ No newline at end of file diff --git a/src/Citezen-Tools.package/CZURLChecker.class/README.md b/src/Citezen-Tools.package/CZURLChecker.class/README.md new file mode 100644 index 0000000..7a32eca --- /dev/null +++ b/src/Citezen-Tools.package/CZURLChecker.class/README.md @@ -0,0 +1,11 @@ +I check if I can reach the pdf in the entries + + +| b | +Transcript open. +Transcript clear. +b := (CZBibParser + parse: (FileSystem workingDirectory / 'rmod.bib') readStream contents). +CZURLChecker new bibset: (b sortBy: [:x :y | x key > y key]); checkWrongEntries; yourself. + + \ No newline at end of file diff --git a/src/Citezen-Tools.package/CZURLChecker.class/instance/checkWrongEntries.st b/src/Citezen-Tools.package/CZURLChecker.class/instance/checkWrongEntries.st new file mode 100644 index 0000000..dd23f65 --- /dev/null +++ b/src/Citezen-Tools.package/CZURLChecker.class/instance/checkWrongEntries.st @@ -0,0 +1,16 @@ +accessing +checkWrongEntries + + self bibset do: [ :each | + Transcript show: each printString. + each pdf value ifNotEmpty: [ :s | + World doOneCycle. + World refreshWorld. + (Delay forMilliseconds: 100) wait. + (ZnClient new + url: each pdf value ; + get ; + isSuccess) + ifFalse: [ wrongEntries add: each. Transcript show: ' w'. + ]. + Transcript cr ]] \ No newline at end of file diff --git a/src/Citezen-Tools.package/CZURLChecker.class/instance/initialize.st b/src/Citezen-Tools.package/CZURLChecker.class/instance/initialize.st new file mode 100644 index 0000000..f0a3def --- /dev/null +++ b/src/Citezen-Tools.package/CZURLChecker.class/instance/initialize.st @@ -0,0 +1,4 @@ +initialization +initialize + super initialize. + wrongEntries := OrderedCollection new \ No newline at end of file diff --git a/src/Citezen-Tools.package/CZURLChecker.class/instance/wrongEntries.st b/src/Citezen-Tools.package/CZURLChecker.class/instance/wrongEntries.st new file mode 100644 index 0000000..a937535 --- /dev/null +++ b/src/Citezen-Tools.package/CZURLChecker.class/instance/wrongEntries.st @@ -0,0 +1,4 @@ +accessing +wrongEntries + + ^ wrongEntries \ No newline at end of file diff --git a/src/Citezen-Tools.package/CZRMODCommiter.class/properties.json b/src/Citezen-Tools.package/CZURLChecker.class/properties.json similarity index 53% rename from src/Citezen-Tools.package/CZRMODCommiter.class/properties.json rename to src/Citezen-Tools.package/CZURLChecker.class/properties.json index 46edc0c..cd9b27f 100644 --- a/src/Citezen-Tools.package/CZRMODCommiter.class/properties.json +++ b/src/Citezen-Tools.package/CZURLChecker.class/properties.json @@ -1,11 +1,13 @@ { - "commentStamp" : "StephaneDucasse 4/28/2019 21:55", + "commentStamp" : "StephaneDucasse 9/28/2019 20:43", "super" : "CZTool", "category" : "Citezen-Tools", "classinstvars" : [ ], "pools" : [ ], "classvars" : [ ], - "instvars" : [ ], - "name" : "CZRMODCommiter", + "instvars" : [ + "wrongEntries" + ], + "name" : "CZURLChecker", "type" : "normal" } \ No newline at end of file