diff --git a/public/js/components/searchbar/result/dms.js b/public/js/components/searchbar/result/dms.js new file mode 100644 index 000000000..74fc9440b --- /dev/null +++ b/public/js/components/searchbar/result/dms.js @@ -0,0 +1,77 @@ +import TemplateFrame from "./template/frame.js"; + +export default { + components: { + TemplateFrame + }, + emits: [ 'actionexecuted' ], + props: { + res: Object, + actions: Object + }, + inject: [ + 'query' + ], + computed: { + icon() { + switch (this.res.mimetype) { + case 'application/pdf': + return 'file-pdf'; + case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': + case 'application/msword': + return 'file-word'; + case 'application/vnd.openxmlformats-officedocument.presentationml.presentation': + case 'application/mspowerpoint': + return 'file-powerpoint'; + case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': + case 'application/vnd.ms-excel': + return 'file-excel'; + case 'application/x-zip': + case 'application/zip': + return 'file-zipper'; + case 'image/jpeg': + case 'image/gif': + case 'image/png': + return 'file-image'; + default: + return 'file'; + } + } + }, + template: ` + +
+
+
DMS ID
+
+ {{ res.dms_id }} +
+
+
+
Version
+
+ {{ res.version }} +
+
+
+
Keywords
+
+ {{ res.keywords }} +
+
+
+
Description
+
+ {{ res.description }} +
+
+
+
` +}; \ No newline at end of file