Commit graph

15 commits

Author SHA1 Message Date
81d567447b
feat(article): add display of article keywords
Introduced functionality to display article keywords on single article pages by retrieving metadata and rendering it alongside the abstract. This enriches article content with relevant keyword information, enhancing SEO and user navigation.
2024-09-17 15:54:00 +02:00
a5bcb0342b
fix: remove duplicate author display logic
Removed redundant fallback to `the_author()` when displaying article authors. The authors are already sourced from post meta, ensuring accurate and consistent author data presentation. Streamlined code for better readability and maintainability.
2024-09-17 15:51:56 +02:00
c738ed6f89
refactor: extract publication status formatting
Moved code for fetching and displaying publication status terms into a reusable function `display_publication_status_terms`. This simplifies template files by reducing redundancy and enhances maintainability. The new function also supports displaying terms with associated colors.
2024-08-03 17:12:13 +02:00
f2a32cf134
style(layout): widen content columns in article and letter pages
Increased the column width from col-lg-8 to col-lg-10 in both article and letter templates to improve readability and make better use of screen real estate on larger devices. This change enhances the visual presentation of content without compromising layout integrity.
2024-08-02 23:13:53 +02:00
d901010399
feat: add PDF generation and download feature
- Introduced dependency management with Composer for easier package handling.
- Added TCPDF library to generate PDFs of articles.
- Implemented PDF download functionality via a custom endpoint.
- Included admin notices to ensure Composer dependencies are installed.
- Updated single article view with a download button for PDFs.
2024-08-02 21:48:07 +02:00
1ce2fc1332
fix: update attachment URL handling for better security
Changed the logic for generating attachment URLs to use a sanitized URL via `esc_url` and a custom `/download/` path. This improves security by avoiding direct links to attachments and provides a more controlled download path. This change ensures URLs are correctly sanitized to prevent potential security vulnerabilities.
2024-06-22 09:50:04 +02:00
5c8cb16515
fix(style): add muted text class for note to subscribers
Improves readability by applying the `text-muted` class to the note about subscriber-only content. This change ensures the note does not overshadow other important content.
2024-06-22 09:26:09 +02:00
7e94c6758b
feat(meta-boxes): add file attachment and open access options
Added two new meta boxes for articles: 'File Attachment' and 'Open Access'. The 'File Attachment' box allows users to upload and manage article attachments, while the 'Open Access' box indicates if an article is open access.

Updated the single article template to display the abstract, attachment links, and access restrictions based on user login status or open access flag.

This enhances content management and access control for articles.
2024-06-22 09:18:59 +02:00
3bd51e66ed
feat: add DOI copy-to-clipboard functionality
Introduced a new JavaScript file to handle the DOI copy-to-clipboard feature. Updated the 'single-article.php' template to include a clickable DOI link that copies the DOI to the clipboard and displays a confirmation message. Enhances user convenience by simplifying the process of copying DOIs.
2024-06-20 15:24:22 +02:00
98a3faf4ed
fix(article): add status label in article metadata
Included a "Status:" label in the article metadata section to clearly indicate the publication status. This improves readability and user experience by explicitly naming the metadata field. No functional changes to the data retrieval process.
2024-06-20 14:54:40 +02:00
33f4d65bed
feat: add DOI functionality to articles
Introduced DOI meta box with a generator button in the article editor to assign and display DOIs for articles. Added functionality to save DOI values and correspondingly set up rewrite rules and redirections based on DOI queries. Display DOI on the article single view page for enhanced article identification and accessibility.
2024-06-20 14:44:20 +02:00
ca3417643a
fix(article): disable post thumbnail display conditionally
Disable the display of post thumbnails by adding a conditional `false` check. This adjustment helps to address potential layout issues or performance concerns when thumbnails are not required for individual articles.
2024-06-20 11:31:08 +02:00
93ceb845aa
feat: add publication status taxonomy to articles
Introduced a hierarchical 'publication status' taxonomy for the 'article' post type, providing a structured way to categorize publication states. Updated front-end views to display the publication status of articles both in listings and on the single article page.

This enhancement improves the classification and visibility of articles based on their publication status, aiding in better content organization and user navigation.
2024-06-20 11:28:29 +02:00
625a2f0639
feat: add excerpt and author removal functionality
Enhanced article previews with excerpts and cleaned up date rendering. Implemented option to remove authors in meta box for better user control. Improves overall usability and experience.
2024-06-20 11:10:31 +02:00
f6e4824fe5
feat: introduce custom post type for articles
Added a custom post type 'article' including templates for index, archive, and single views. Enhanced article metadata handling with a custom meta box for authors. Updated homepage to feature articles instead of generic posts. This provides a more specialized structure and better organization for journal content.
2024-06-20 10:52:49 +02:00