Publication: Difference between revisions

From Dreams Knowledge Platform
Jump to: navigation, search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
|form-page-name=Publications
|form-page-name=Publications
|form-unique-number=Yes
|form-unique-number=Yes
|rows=title,category,authors,date,description,file,external-link
|rows=title,category,authors,date,description,file
|list-headers=publication-title,publication-category,publication-description
|list-headers=publication-title,publication-category,publication-description
|template-fields={{semorg-generator-field
|template-fields={{semorg-generator-field
Line 36: Line 36:
|property-id=FI
|property-id=FI
|name=File
|name=File
|type=wpg
|type=txt
}}{{semorg-generator-field
}}{{semorg-generator-field
|id=external-link
|id=external-link
|property-id=EL
|property-id=EL
|name=External link
|name=External Link
|type=uri
|type=uri
|input-type=textarea
}}
}}
}}
}}

Latest revision as of 11:45, 4 March 2026


Messages

"semorg-publication-template": "semorg-publication",
"semorg-publication-category": "semorg-publication",
"semorg-publication-form": "semorg-publication",
"semorg-publication-page-name": "Publications",
"semorg-publication-entity-name": "Publication",
"semorg-form-publication-create-title": "Create Publication",
"semorg-form-publication-edit-title": "Edit Publication", 
"semorg-form-publication-page-name": "Publications",

"semorg-form-publication-template": "publication",
"semorg-form-publication-rows": "title,category,authors,date,description,file",
"semorg-list-publication-headers": "publication-title,publication-category,publication-description",
"semorg-field-publication-authors-name": "Authors", 
"semorg-field-publication-authors-parameters": "",
"semorg-field-publication-category-name": "Category", 
"semorg-field-publication-category-parameters": "",
"semorg-field-publication-date-name": "Date", 
"semorg-field-publication-date-parameters": "",
"semorg-field-publication-description-name": "Description", 
"semorg-field-publication-description-parameters": "",
"semorg-field-publication-external-link-name": "External Link", 
"semorg-field-publication-external-link-parameters": "", 
"semorg-field-publication-external-link-input-type": "textarea",
"semorg-field-publication-file-name": "File", 
"semorg-field-publication-file-parameters": "",
"semorg-field-publication-title-name": "Title", 
"semorg-field-publication-title-parameters": "",

Form

Form:Semorg-publication

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-publication-create-title}}
   |edit title={{int:semorg-form-publication-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-publication-page-name}}/<unique number;start=1>
}}}

{{semorg-form-template|publication}}
 
{{semorg-form-standard-inputs}}
</includeonly>

as embedded:

Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template. The second parameter of the semorg-form-template-embed call should be the target field, specified with <feature>[<field>] (e.g. meeting-group[files] or {{int:semorg-meeting-group-template}}[files] to respect template customization).

{{semorg-form-template-embed|publication|}}

Category

Category:Semorg-publication

{{semorg-category}}

Template

Template:Semorg-publication

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-publication-category}}]]{{#semorg-set:publication 
  |title={{{title|}}} 
  |external-link={{{external-link|}}} 
  |authors={{{authors|}}} 
  |description={{{description|}}} 
  |category={{{category|}}} 
  |file={{{file|}}} 
  |date={{{date|}}}
}}{{#semorg-detail:publication}}{{#semorg-table:publication 
  |title={{{title|}}} 
  |external-link={{{external-link|}}} 
  |authors={{{authors|}}} 
  |description={{{description|}}} 
  |category={{{category|}}} 
  |file={{{file|}}} 
  |date={{{date|}}}
}}</includeonly>

Row Template

Template:Semorg-publication-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{title|}}}</td> 
<td>{{{external-link|}}}</td> 
<td>{{{authors|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{category|}}}</td> 
<td>{{{file|}}}</td> 
<td>{{{date|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-publication-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:publication
  |heading={{int:semorg-publication-page-name}}
  |formlink={{#semorg-formlink:publication}}
  |links={{{links|}}}
  |query={{{query|}}}
  |sort={{{sort|}}}
  |order={{{order|}}}
  |limit={{{limit|}}}
  |filter links={{{filter links|}}}
  |filters={{{filters|}}}
  |category={{{category|}}}
  |headers={{{headers|}}}
  |row template={{{row template|}}}
  |tableclass={{{tableclass|}}}
  |title={{{title|}}}
  |sums={{{sums|}}}
  |csv={{{csv|}}}
  |default={{{default|}}}
  |returnto={{{returnto|}}}
  |help={{{help|}}}
}}</includeonly>

Overview Page

Publications

{{semorg-publication-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['publication'] = [ "id" => "PB","fields" => ["title" => [ "id" => "TI","type" => "txt" ],"external-link" => [ "id" => "EL","type" => "uri" ],"authors" => [ "id" => "AU","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ],"category" => [ "id" => "CA","type" => "txt" ],"file" => [ "id" => "FI","type" => "txt" ],"date" => [ "id" => "DA","type" => "dat" ], ] ];