{"id":129,"date":"2014-10-02T11:22:50","date_gmt":"2014-10-02T11:22:50","guid":{"rendered":"http:\/\/192.168.2.32:8082\/?p=129"},"modified":"2014-10-04T09:38:04","modified_gmt":"2014-10-04T09:38:04","slug":"alfresco-bibliothek-liste-von-buechern-erstellen","status":"publish","type":"post","link":"https:\/\/www.dev-metal.ch\/?p=129","title":{"rendered":"Alfresco Bibliothek (Liste von B\u00fcchern) erstellen"},"content":{"rendered":"<p><!--more--><\/p>\n<h1>Eine Bibliothek (Liste von B\u00fcchern) erstellen<\/h1>\n<h2>Eine BilblithekDatalistModel f\u00fcr Share erstellen<\/h2>\n<pre class=\"lang:default decode:true \">vi .\/tomcat\/shared\/classes\/alfresco\/extension\/bibliothekDatalistModel.xml\r\n<\/pre>\n<p>Mit folgendem Inhalt f\u00fcllen<\/p>\n<pre class=\"lang:default decode:true \">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n    &lt;!-- Definition of new Model --&gt;\r\n    &lt;model name=\"gc:bibliothekDatalist\" xmlns=\"http:\/\/www.alfresco.org\/model\/dictionary\/1.0\"&gt;\r\n\r\n       &lt;!-- Optional meta-data about the model --&gt;\r\n       &lt;description&gt;Custom Bibliothek Datalist&lt;\/description&gt;\r\n       &lt;author&gt;Ralph Wetter&lt;\/author&gt;\r\n       &lt;version&gt;1.0&lt;\/version&gt;\r\n\r\n       &lt;!-- Imports are required to allow references to definitions in other models --&gt;\r\n       &lt;imports&gt;\r\n            &lt;!-- Import Alfresco Dictionary Definitions --&gt;\r\n          &lt;import uri=\"http:\/\/www.alfresco.org\/model\/dictionary\/1.0\" prefix=\"d\"\/&gt;\r\n          &lt;!-- Import Alfresco Content Domain Model Definitions --&gt;\r\n          &lt;import uri=\"http:\/\/www.alfresco.org\/model\/content\/1.0\" prefix=\"cm\"\/&gt;\r\n         &lt;!-- Import Alfresco Data List Model Definitions --&gt;\r\n          &lt;import uri=\"http:\/\/www.alfresco.org\/model\/datalist\/1.0\" prefix=\"dl\"\/&gt;\r\n       &lt;\/imports&gt;\r\n\r\n       &lt;!-- Introduction of new namespaces defined by this model --&gt;\r\n       &lt;namespaces&gt;\r\n           &lt;namespace uri=\"gc.customlists.com\" prefix=\"gc\"\/&gt;\r\n       &lt;\/namespaces&gt;\r\n\r\n\r\n       &lt;!--      T Y P E   D E F I N I T I O N S      --&gt;\r\n       &lt;types&gt;\r\n         &lt;!--   Data list defintions For this model go here --&gt;\r\n          &lt;type name=\"gc:bibliothek\"&gt;\r\n           &lt;title&gt;Bibliothek&lt;\/title&gt;\r\n           &lt;description&gt;Buecherliste - Bibliothek&lt;\/description&gt;\r\n           &lt;parent&gt;dl:dataListItem&lt;\/parent&gt;\r\n           &lt;properties&gt;\r\n             &lt;property name=\"gc:bibliothekTitle\"&gt;\r\n                &lt;title&gt;Buchtitel&lt;\/title&gt;\r\n                &lt;type&gt;d:text&lt;\/type&gt;\r\n                &lt;mandatory&gt;true&lt;\/mandatory&gt;\r\n             &lt;\/property&gt;\r\n             &lt;property name=\"gc:bibliothekSprache\"&gt;\r\n                &lt;title&gt;Sprache&lt;\/title&gt;\r\n                &lt;type&gt;d:text&lt;\/type&gt;\r\n                &lt;mandatory&gt;true&lt;\/mandatory&gt;\r\n             &lt;\/property&gt;\r\n             &lt;property name=\"gc:bibliothekISBN\"&gt;\r\n                &lt;title&gt;ISBN&lt;\/title&gt;\r\n                &lt;type&gt;d:text&lt;\/type&gt;\r\n                &lt;mandatory&gt;false&lt;\/mandatory&gt;\r\n             &lt;\/property&gt;\r\n             &lt;property name=\"gc:bibliothekPage\"&gt;\r\n                &lt;title&gt;Seitenanzahl&lt;\/title&gt;\r\n                &lt;type&gt;d:text&lt;\/type&gt;\r\n                &lt;mandatory&gt;false&lt;\/mandatory&gt;\r\n             &lt;\/property&gt;\r\n             &lt;property name=\"gc:bibliothekContent\"&gt;\r\n                &lt;title&gt;Kurzbeschreibung&lt;\/title&gt;\r\n                &lt;type&gt;d:text&lt;\/type&gt;\r\n                &lt;mandatory&gt;false&lt;\/mandatory&gt;\r\n             &lt;\/property&gt;\r\n             &lt;property name=\"gc:bibliothekComment\"&gt;\r\n                &lt;title&gt;Kommentar&lt;\/title&gt;\r\n                &lt;type&gt;d:text&lt;\/type&gt;\r\n                &lt;mandatory&gt;false&lt;\/mandatory&gt;\r\n             &lt;\/property&gt;\r\n             &lt;property name=\"gc:bibliothekAusgeliehen\"&gt;\r\n                &lt;title&gt;Standort&lt;\/title&gt;\r\n                &lt;type&gt;d:text&lt;\/type&gt;\r\n                &lt;mandatory&gt;true&lt;\/mandatory&gt;\r\n             &lt;\/property&gt;\r\n          &lt;\/properties&gt;\r\n\r\n           &lt;associations&gt;\r\n             &lt;association name=\"gc:bibliothekAttachments\"&gt;\r\n                &lt;title&gt;Attachements&lt;\/title&gt;\r\n                &lt;source&gt;\r\n                  &lt;mandatory&gt;false&lt;\/mandatory&gt;\r\n                  &lt;many&gt;true&lt;\/many&gt;\r\n                &lt;\/source&gt;\r\n                &lt;target&gt;\r\n                  &lt;class&gt;cm:content&lt;\/class&gt;\r\n                  &lt;mandatory&gt;false&lt;\/mandatory&gt;\r\n                  &lt;many&gt;true&lt;\/many&gt;\r\n                &lt;\/target&gt;\r\n             &lt;\/association&gt;\r\n           &lt;\/associations&gt;\r\n         &lt;\/type&gt;\r\n       &lt;\/types&gt;\r\n&lt;\/model&gt;\r\n<\/pre>\n<h2>Eine BilblithekDatalistModel f\u00fcr Alfresco-Repository erstellen<\/h2>\n<pre class=\"lang:default decode:true \">vi .\/tomcat\/shared\/classes\/alfresco\/extension\/customDatalist-model-context.xml\r\n<\/pre>\n<p>Mit folgendem Inhalt f\u00fcllen<\/p>\n<pre class=\"lang:default decode:true \">&lt;?xml version='1.0' encoding='UTF-8'?&gt;\r\n&lt;!DOCTYPE beans PUBLIC '-\/\/SPRING\/\/DTD BEAN\/\/EN' 'http:\/\/www.springframework.org\/dtd\/spring-beans.dtd'&gt;\r\n\r\n&lt;beans&gt;\r\n        &lt;!-- Registration of new models --&gt;\r\n    &lt;bean id=\"extension.gc.dictionaryBootstrap\" parent=\"dictionaryModelBootstrap\" depends-on=\"dictionaryBootstrap\"&gt;\r\n            &lt;property name=\"models\"&gt;\r\n                &lt;list&gt;\r\n                    &lt;value&gt;alfresco\/extension\/bibliothekDatalistModel.xml&lt;\/value&gt;\r\n                &lt;\/list&gt;\r\n            &lt;\/property&gt;\r\n        &lt;\/bean&gt;\r\n\r\n&lt;\/beans&gt;\r\n<\/pre>\n<h2>share-config-custom mit Bibliothek erweitern<\/h2>\n<pre class=\"lang:default decode:true \">.\/tomcat\/shared\/classes\/alfresco\/web-extension\/share-config-custom.xml\r\n<\/pre>\n<p>Mit folgendem Inhalt <strong>erweitern<\/strong>:<\/p>\n<pre class=\"lang:default decode:true\">&lt;!-- Bibliothek DataList --&gt;\r\n\r\n       &lt;config evaluator=\"model-type\" condition=\"gc:bibliothek\"&gt;\r\n          &lt;forms&gt;\r\n             &lt;!-- Create item form --&gt;\r\n             &lt;form&gt;\r\n                &lt;field-visibility&gt;\r\n                   &lt;!-- for the form creation we are showing everything except approved date --&gt;\r\n                   &lt;show id=\"gc:bibliothekTitle\" \/&gt;\r\n                   &lt;show id=\"gc:bibliothekSprache\" \/&gt;\r\n                   &lt;show id=\"gc:bibliothekISBN\" \/&gt;\r\n                   &lt;show id=\"gc:bibliothekPage\" \/&gt;\r\n                   &lt;show id=\"gc:bibliothekContent\" \/&gt;\r\n                   &lt;show id=\"gc:bibliothekComment\" \/&gt;\r\n                   &lt;show id=\"gc:bibliothekAusgeliehen\" \/&gt;\r\n                   &lt;show id=\"gc:gcAttachments\" \/&gt;\r\n                &lt;\/field-visibility&gt;\r\n                &lt;create-form template=\"\/org\/alfresco\/components\/data-lists\/forms\/dataitem.ftl\" \/&gt;\r\n                &lt;appearance&gt;\r\n                   &lt;field id=\"gc:bibliothekTitle\"&gt;\r\n                      &lt;control template=\"\/org\/alfresco\/components\/form\/controls\/textarea.ftl\" \/&gt;\r\n                   &lt;\/field&gt;\r\n\r\n                   &lt;field id=\"gc:bibliothekContent\"&gt;\r\n                      &lt;control template=\"\/org\/alfresco\/components\/form\/controls\/textarea.ftl\" \/&gt;\r\n                   &lt;\/field&gt;\r\n                   &lt;field id=\"gc:gcAttachments\"&gt;\r\n                      &lt;control&gt;\r\n                       &lt;control-param name=\"startLocation\"&gt;{doclib}&lt;\/control-param&gt;\r\n                      &lt;\/control&gt;\r\n                       &lt;\/field&gt;\r\n                &lt;\/appearance&gt;\r\n             &lt;\/form&gt;\r\n\r\n                   &lt;!-- Data Grid view --&gt;\r\n                   &lt;form id=\"datagrid\"&gt;\r\n                   &lt;field-visibility&gt;\r\n                     &lt;show id=\"gc:bibliothekTitle\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekSprache\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekISBN\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekPage\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekContent\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekAusgeliehen\" \/&gt;\r\n                     &lt;show id=\"gc:gcAttachments\" \/&gt;\r\n                   &lt;\/field-visibility&gt;\r\n                   &lt;\/form&gt;\r\n             &lt;\/forms&gt;\r\n          &lt;\/config&gt;\r\n     \r\n          &lt;!-- Edit view --&gt;\r\n       &lt;config evaluator=\"node-type\" condition=\"gc:bibliothek\"&gt;\r\n          &lt;forms&gt;\r\n             &lt;!-- Edit marketing item form --&gt;\r\n             &lt;form&gt;\r\n                &lt;field-visibility&gt;\r\n                     &lt;show id=\"gc:bibliothekTitle\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekSprache\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekISBN\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekPage\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekContent\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekComment\" \/&gt;\r\n                     &lt;show id=\"gc:bibliothekAusgeliehen\" \/&gt;\r\n                     &lt;show id=\"gc:gcAttachments\" \/&gt;\r\n                &lt;\/field-visibility&gt;\r\n                &lt;create-form template=\"\/org\/alfresco\/components\/data-lists\/forms\/dataitem.ftl\" \/&gt;\r\n                &lt;appearance&gt;\r\n                   &lt;field id=\"gc:bibliothekTitle\"&gt;\r\n                      &lt;control template=\"\/org\/alfresco\/components\/form\/controls\/textarea.ftl\" \/&gt;\r\n                   &lt;\/field&gt;\r\n\r\n                   &lt;field id=\"gc:bibliothekContent\"&gt;\r\n                      &lt;control template=\"\/org\/alfresco\/components\/form\/controls\/textarea.ftl\" \/&gt;\r\n                   &lt;\/field&gt;\r\n                   &lt;field id=\"gc:gcAttachments\"&gt;\r\n                      &lt;control&gt;\r\n                       &lt;control-param name=\"startLocation\"&gt;{doclib}&lt;\/control-param&gt;\r\n                      &lt;\/control&gt;\r\n                       &lt;\/field&gt;\r\n                &lt;\/appearance&gt;\r\n\r\n             &lt;\/form&gt;\r\n          &lt;\/forms&gt;\r\n       &lt;\/config&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-alfresco"],"modified_by":"ralph","_links":{"self":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":2,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}