Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query bibliography by menu entry #200

Open
dasch124 opened this issue Dec 16, 2024 · 6 comments
Open

Query bibliography by menu entry #200

dasch124 opened this issue Dec 16, 2024 · 6 comments
Assignees
Labels

Comments

@dasch124
Copy link
Member

Currently, we can issue a query to the bibligraphy either explicitly by a input field or by a "magic href", e.g. javascript:getDBSnippet("zotid:EY56FXZI") c.f. here

It would be great, that we have the same "magic href" from an menu entry, so users can open a pre-factored bibliography query by clicking on a menu entry.

User story: In the TUNOCENT instance of VICAV we potentially would like to display three extracts from one bibligraphy: 1) the research bibligraphy used by the project ("everything which has been written on tunesian arabic so far"); 2) the publications which have been written within the project; 3) presentations held by the project members. (the entries of the three sub-bibliographies have been tagged in Zotero)

@katharinawuensche
Copy link
Member

If I understood it correctly, the javascript:getDBSnippet("zotid:EY56FXZI") part is just there for legacy reasons and the magic links are actually built using data attributes coming from the XSLT. After adding the right targetType and params to the menu items in the config, the links should work as expected. Do I see this correctly, @simar0at?

@simar0at
Copy link
Member

simar0at commented Jan 8, 2025

Yes, they will open a BiblQuery. But we I don't know the status of automated query in that window.

@dasch124
Copy link
Member Author

Dear @katharinawuensche, are you able to estimate if/when this could work? (Just to know whether we need a quick workaround or not)

@katharinawuensche
Copy link
Member

From what I have seen in the frontend code, I think it should already be working once the required data attributes are set (see #208). But to be on the safe side, should we discuss this in person, @dasch124 and @ctot-nondef?

@dasch124
Copy link
Member Author

great, thanks! Looking from the VICAV-vue3 staging instance, I find links like this:

<a class="aVicText" href="javascript:getDBSnippet(&quot;zotid:96YK24BH&quot;)" data-target-type="BiblioEntries" data-label="Siagh (1976)" data-query-string="zotid:96YK24BH">Siagh (1976)</a>

So blindly guessing I imagine that the attributes to be add would be x-data-target-type="BiblioEntries" x-data-label="TUNOCENT Research Bibliography" x-data-query-string="prj:TUNOCENT" Does this look allright, @ctot-nondef ?

@ctot-nondef
Copy link
Member

yes, exactly, once these are set the link should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants